Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
drbawb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
271.
▲
by
drbawb
14y ago
This is a fairly minor point: but I also like how idiomatic error handling in Go only indents the block that handles the problem. Because of multiple returns, the normal flow of execution isn't indented. I find that this makes it easier to
272.
▲
by
drbawb
14y ago
I was thinking you might have a function that operates on some fixed length vector. For e.g: `fn foo(bar: ~[int, ..3]) { ... }`, and the compiler would enforce that you only pass vectors of length 3 to that function. But since I can't get `
273.
▲
by
drbawb
14y ago
This isn't a tutorial, but I found pcwalton's explanation of memory management in rust[0] to be an excellent primer for the different allocation techniques in rust. Learning the different types of pointers was a real pain point for me; so I
274.
▲
by
drbawb
14y ago
Whoops, I did botch up the syntax on my listed example. I compiled release-0.6; and sure enough `let numbers: [int, ..3] = [1,2,3];` compiles. `let numbers: ~[int, ..3] = ~[1,2,3];` does not compile on my system though. Ditto for the @ sigi
275.
▲
by
drbawb
14y ago
Awesome! I'm going to compile `release-0.6` right now, because I've been having some issues w/ trunk these past few days. Simple things like declaring fixed vectors won't compile for me: `let numbers: ~[int, ..3] = [1,2,3];` fails to compil
276.
▲
by
drbawb
14y ago
Just checked again. I have no such option. Their support docs mention something about a "backup e-mail address", which I can't setup w/o verifying my account, which I can't verify w/o answering these questions. -___-; I'm just going to call
277.
▲
by
drbawb
14y ago
I've been playing w/ Rust this past week, and I've had something of an enlightening experience related to the pointer semantics you describe. Rust's memory management works similarly to what you describe in C++[0], but things like unique_pt
278.
▲
by
drbawb
14y ago
Oh... boy... I'm guessing the 2-factor auth is tucked away under "Password and Security." Which is hidden behind a bunch of inane "security questions" that I dreamt up years ago. Not only am I unable to setup 2-factor auth, I can't even cha
279.
▲
by
drbawb
14y ago
Yes it is!
280.
▲
by
drbawb
14y ago
I agree that the GUI is the likely culprit. Though, as far as hacking goes, I'd almost prefer a BASIC prompt [or `irb`, `idle`, or any other number of modern REPLs] as opposed to a shell prompt. I can hack away at bash scripts... but bash j
281.
▲
by
drbawb
14y ago
You're absolutely right, this was on the front page. I think it's worth nothing though: this is an update: when it was on the front page it still needed backers. -- Now the project has met it's goal, and the author has added some stretch go
282.
▲
by
drbawb
14y ago
40 seconds on my MacBook Pro. Most of the time was spent downloading "AppKit.sj" which is ~2.6MiB, though, and my internet is pretty slow.
283.
▲
by
drbawb
14y ago
To avoid the nil pointer dereference panic, could you use an idiom borrowed from Go's map implementation? A library could take advantage of multiple assignment, a la maps: `i, ok := m["route"]` If the map has no entry for key "route", i wil
284.
▲
by
drbawb
14y ago
Their concerns may be similar, but EVs still have it far worse for range anxiety. Diesel drivers have the advantage of their fuel being quite portable once you've found a source. The energy input required to move a diesel truck 100mi. is st
285.
▲
by
drbawb
14y ago
>when it's 10 degrees outside. Not too long ago we had a week or so of 0-10deg [F] weather in the midwest, and my _petrol_ car didn't give me heat for most of my commutes. What little heat I did have, I voluntarily left to the engine so
286.
▲
by
drbawb
14y ago
I'll third Gandi. The transfer from GoDaddy went smoothly. (The longest part was waiting on GoDaddy.) The free SSL cert is quite a nice bonus, and their customer service is great. I'm considering purchasing hosting from them in the near fut
287.
▲
by
drbawb
14y ago
I remember an early PSP jailbreak (SKU PSP-1000/-2000) being based on an exploit in libtiff through an image loaded in the browser. I wonder if it was the same exploit.
288.
▲
by
drbawb
14y ago
It's quite true. I do pay most of my bills online. (Including my TWC Internet bill, actually.) However there are some bills that _require_ me to use a checkbook, primarily my rent and housing related expenses [water, sewage, garbage, mainte
289.
▲
by
drbawb
14y ago
Even using that feature [e.g: to select Google] it doesn't seem to return the same result set that Google's own application does. I'm not sure if this is an issue with Waze itself, or possibly some limitations built in to Google's 3rd-party
290.
▲
by
drbawb
14y ago
I haven't heard of NXC! It looks like NXC is basically NQC ( http://en.wikipedia.org/wiki/Not_Quite_C ) for the current-gen Mindstorms products? (I only got a chance to play with the new Mindstorms kit briefly in college to setup a small de
291.
▲
by
drbawb
14y ago
I have f.lux on my [jailbroken] iPhone 4S and my desktop. On the desktop I like it simply because it helps automatically "dim" my display in the evening. I don't use much artificial light in my room [it's basically a mancave after 5:00] so
292.
▲
by
drbawb
14y ago
I used to love Waze, because of the clever rerouting and the UI was pretty slick for a free GPS app. I'm thinking of switching to Google Maps though because their search is quite frankly _better._ Which doesn't make sense to me, because my
293.
▲
by
drbawb
14y ago
At least for me: the major difference between the two [implementation wise] is currently the core and standard libraries. Go may not have the most efficient stdlib, but it covers _such a wide breadth_ of features, and the code is all very r
294.
▲
by
drbawb
14y ago
>what if we made an OS where everything was a file? Shameless Plan 9 plug. http://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs#Design_co...
295.
▲
by
drbawb
14y ago
Exactly. I'd sooner attribute kernel panics to faulty hardware or a corrupt install than a problem with Rails. (Sure, running a web-server might _exacerbate_ the problem, simply by exercising the hardware -- but it's unfair to attribute tha
296.
▲
by
drbawb
14y ago
I can _personally_ attest that it runs on SuSE (SLES), Debian, Arch, Fedora, [and Ubuntu]. I have no idea what this team was trying to do, but I imagine there _had_ to be more than what they wrote in this gist. That, or they simply ran out
297.
▲
by
drbawb
14y ago
I've talked to him on #plan9chan, and I was quite fond of the conviction with which he held his various viewpoints. More recently I've been following his Go related posts. The word of his passing came as quite a shock, he will be missed by
298.
▲
by
drbawb
14y ago
>Does it matter . . . To you, no; to me? No. The same thing happened to me: Rails 3 came along. My web applications weren't so large that the port would be unreasonable, so I gritted my teeth and came out feeling like I had gained somet
299.
▲
by
drbawb
14y ago
Ditto for the social aspect. For me, I was a bit older [6th-8th graders], but my social experience was FIRST Lego League [FLL]. Basically, the FIRST robotics competition also sponsors competitions for middle schoolers to build LEGO robots u
300.
▲
by
drbawb
14y ago
>simply not trained . . . Which is something I've never understood, personally. Granted I'm a bit more concerned with another car flying through and ripping my door off; but you bet I'm worried about traffic when I open my door. No matt
More ›