Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pubby
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
211.
▲
by
pubby
7y ago
The "Dragon" compiler book is pretty comprehensive on regex.
212.
▲
by
pubby
7y ago
That was my first thought too. You can see it on google maps here: https://www.google.com/maps/@38.6369944,-90.2886515,3a,75y,2...
213.
▲
by
pubby
7y ago
Does it handle endianness?
214.
▲
by
pubby
7y ago
Cropping ruined the "Sneed's Feed and Seed" joke.
215.
▲
by
pubby
7y ago
Woah, bransonf? I met you at OpenSTL a few weeks ago! What a funny coincidence. And yeah, I agree. Even Carmack had something to say on this: http://number-none.com/blow/john_carmack_on_inlined_code.htm...
216.
▲
by
pubby
7y ago
I've seen this idea cargo-culted way too often. There's nothing wrong with long functions. In fact, long functions are often easier to grok than ones split apart into dozens of pieces. Create useful abstractions. Don't create
217.
▲
by
pubby
7y ago
Everything here can be earned elsewhere for far less money. In fact, if you get an entry-level job you can learn all this while getting paid! IMO the advantages of CS college are this: - You can reach a higher salary. - It's easier to
218.
▲
by
pubby
7y ago
To me, the core of FRP is hiding state. You couldn't look at a FRP program and say, "Yeah, here's where we define value X". Instead, you'd see various time-varying functions and the manner in which these functions a
219.
▲
by
pubby
7y ago
Yeah okay. Then why does nobody use it? Even languages like Elm ditched it for easier to understand concepts. Let's face it. FRP kinda sucks. It's awkward as hell to use and takes way to many brain-cells to achieve simple results.
220.
▲
by
pubby
7y ago
Especially the Chromium logo, which is blue.
221.
▲
by
pubby
7y ago
I was hoping they'd poke some humor at what modern websites do to the scrollbar. Scrollbars have worked well for so many years, why must web developers change it to an un-standardized mess? I'm talking about features like css-enab
222.
▲
by
pubby
7y ago
TL;DR: rounding up to a multiple of 2 requires an addition and an AND, but rounding down only requires the AND. So you save 1 instruction by allocating downwards, and you save 2 if you insist on checking for overflow. But honestly, does any
223.
▲
by
pubby
7y ago
Video: https://www.youtube.com/watch?v=DINEwuxbI-E
224.
▲
by
pubby
7y ago
Fixed, thanks.
225.
▲
by
pubby
7y ago
Here's my layman explanation: Pick a frequency. Let's say you picked 400 hertz. If you multiply this frequency by a simple fraction (1/2, 1/3, 2/5, etc) you get a new frequency that harmonizes with your original f
226.
▲
by
pubby
7y ago
I've seen plotters made out of old CD drive parts. https://www.youtube.com/watch?v=E3vuzb_KL5c
227.
▲
by
pubby
7y ago
Ha, I don't think you realized what the article was about.
228.
▲
by
pubby
7y ago
The areas of Haskell they show haven't really changed in the time since. If you enjoy reading it, I say it's a useful tutorial.
229.
▲
by
pubby
7y ago
What will be the cause?
230.
▲
by
pubby
7y ago
I wouldn't recommend Colemak to programmers suffering from RSI. It favors the right hand way too much. For writing English this is fine, but when you have to type programming symbols and use Vi keys it really does a number to your righ
231.
▲
by
pubby
7y ago
I'm curious how you use irrational numbers in any language. I'm not aware of any mainstream languages that support them.
232.
▲
by
pubby
7y ago
Those benchmarks are for hashing data in the billions of bytes range. Hash tables typically use data in the 1-20 byte range. Pretty big difference! As it turns out, hash functions optimized for billions of bytes don't work so well when
233.
▲
by
pubby
7y ago
Wow as someone who knows the NES well this article contains an error in almost every paragraph. They really got all the technical stuff wrong! So many made-up numbers everywhere! To explain Super Mario a bit better, it's really not usi
234.
▲
by
pubby
7y ago
I haven't been following the project. How do you know they have webdev mentality?
235.
▲
by
pubby
7y ago
Mazes can teach graph traversal.
236.
▲
by
pubby
7y ago
The universe is 1D. When you plot the universe over time you get a 2D image.
237.
▲
by
pubby
7y ago
Female sexual attraction favors secure men who don't talk feelings. This results in men feeling unable to express their emotions around their significant other. On the other side, male sexuality selects based on looks more than anythin
238.
▲
by
pubby
7y ago
That's what I did :) I coded my maze generators in 6502 assembly - the same CPU the Atari uses. Mine was for the NES, which is more powerful than the Atari (2KB vs 128B of RAM, for example), but I think I know what I'm talking abo
239.
▲
by
pubby
7y ago
I hate to be a party pooper but I don't see any mystery here. The maze generator is a cellular automata with small amounts randomness thrown in. The rules were picked by hand and tweaked to get the desired look. The rules were encode i
240.
▲
by
pubby
7y ago
I don't see this change breaking the examples you have given. You can always modify non-const objects. What you can't do is modify const objects through a pointer to non-const. e.g. ((char*)"fooo")[0] = 1 is bro
More ›