Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
norir
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
271.
▲
by
norir
3y ago
The single exit style works great in a language with TCO, nested functions and no looping primitive at all. No such language is widely available. But the style works really well and can be simulated in languages like scala if you ignore the
272.
▲
by
norir
3y ago
Judge not, lest ye be judged.
273.
▲
by
norir
3y ago
Sure, but if you live in the bay, you'd be forgiven for assuming that 80% of developers use macs, 17% linux and 3% windows. Developing mac first makes perfect sense to me.
274.
▲
by
norir
3y ago
Sure, I didn't really mean the general public but meant scientific/mathematically oriented public. When I studied math in college, I found Euler everywhere to the point that it was hard not to stop and wonder how the hell this guy
275.
▲
by
norir
3y ago
To be clear, I am not saying that Erdos and Tao are less talented than Euler. That seems impossible to say. But the magic of Euler is that his fingerprints are all over so many of the fundamental things that can be understood by a bright hi
276.
▲
by
norir
3y ago
It's interesting to me that I can't think of anyone remotely comparable to Euler in the public consciousness today. Even the work of someone like Erdos seems very esoteric by comparison and also was largely done in collaboration.
277.
▲
by
norir
3y ago
I prefer explicit blocks for automatic object destruction to RAII. For example, withThing { thing => doStuffWith(thing) } This makes it clear to me that the object is only valid within this block. There is no copy constructor madn
278.
▲
by
norir
3y ago
I don't know. This is becoming conventional wisdom but I think a reverse argument is equally true: aspiring language designers get too bogged down in bytecode generation or gc that they are unable to make a compelling language that ade
279.
▲
by
norir
3y ago
There is something deeply attractive about writing an ast-free single pass compiler. It's a great exercise to write a compiler that targets a scripting language like lua or js in a single pass. I think though that there are significant
280.
▲
by
norir
3y ago
I don't think the original paper by Knuth ( https://dl.acm.org/doi/10.1145/356635.356640 ) supports this interpretation. In the paper, Knuth describes how as one develops as a programmer one learns how to write
281.
▲
by
norir
3y ago
It would be nice to have actual benchmarks of compilation speed of equivalent programs in different languages rather than just the runtime performance as is typical in language shootouts. Go has to me a surprisingly high time to compile a s
282.
▲
by
norir
3y ago
Nice overview. They didn't get to the hideous self-referential (and largely undocumented) trie that is used for the symbol name mappings in mach-o. Not fun to implement. And frustrating because there is so much wasted space in typical
283.
▲
by
norir
3y ago
Hejlsberg is an interesting example. Did he do the original typescript type system that was unsound or was that someone else and he cleaned up the mess?
284.
▲
by
norir
3y ago
I suspect the OP expected something like: struct Array{void *ptr; uint64_t len; uint64_t cap;} sizeof(struct Array) //24 At any rate, a simple way to get to 16 bytes is the following: struct Array{void *ptr; uint32_t
285.
▲
by
norir
3y ago
> And a REPL wasn't necessary because Go compiled so quickly you could just write a program and run it (no, that misses the point of a repl, which is that it builds up state and lets you call new functions with that built-up state).
286.
▲
by
norir
3y ago
> Also, writing a compiler in its own language, while simultaneously developing the language, tends to result in a language that is good for writing compilers, but that was not the kind of language we were after. I have seen this sentime
287.
▲
by
norir
3y ago
I feel like to some extent the problem here is the dynamic linking model that is almost universally used. If programs were designed from the perspective of the linker, then the linker could maintain a graph of function dependencies and have
288.
▲
by
norir
3y ago
When you start, your language is just for you so the question is are syntax highlighting and auto-formatting table stakes for you? If yes, then I'd suggest you learn how to write a tree-sitter grammar and integrate with your editor of
289.
▲
by
norir
3y ago
I am not a fan of the fuckcars crowd because I think their abrasive approach is doomed to fail. At the same time, I'm sorry but I just don't buy that there is a human right to a car centric lifestyle. I'll take it more seriou
290.
▲
by
norir
3y ago
I think another way of framing this is that many people rely on extrinsic motivation and are lost without institutional structure[1]. The question is whether there are other ways to channel that energy without our more traditional work inst
291.
▲
by
norir
3y ago
Yes, I think it's even less than 0.1%. Assembly should mostly be written as a target for a compiler backend or to inline a hotspot only when it is proven that the compiler can't do it for you. Very few are in either of these two s
292.
▲
by
norir
3y ago
Sure, but now you're perpetually stuck with the visual noise of unnecessary brackets _all_ the time. Maybe it's because I use vim, but I don't see this use case as terribly important because I can easily reindent with >>
293.
▲
by
norir
3y ago
I get what you are saying but I still think fast compilation is essential to a pleasant dev experience. Regardless of how fast the compiler is, there will always be time when we are just sitting there thinking, not typing. But when I am imp
294.
▲
by
norir
3y ago
I am uncomfortable buying them because I find working at a desk with a large monitor uncomfortable and I don't see any personal advantage to the extra real estate for coding. I have plenty of space on a 16" laptop for three vertic
295.
▲
by
norir
3y ago
If you spend 20 hours per week playing music, you're a musician.
296.
▲
by
norir
3y ago
I actually think this isn't a bad idea. I really don't want an automaker treating consumer updates like a developer repeatedly pushing nearly empty commits to github to get ci green.
297.
▲
by
norir
3y ago
As one develops as a programmer, the performance floor of your code should increase. In those early years, you might waste inordinate time squeezing out a 3% performance improvement in an existing feature when you could instead focus on bui
298.
▲
by
norir
3y ago
The Understory by Richard Powers is a beautiful novel that tells a part of the story of the chestnut tree and certainly deepened my appreciation for it.
299.
▲
by
norir
3y ago
I personally prefer a direct strategy: state that you don't understand and what your (possibly) unenlightened concerns are. Or ask something like, "that sounds good, but what are we missing that might cause someone to be paged at
300.
▲
by
norir
3y ago
I can't speak for your father of course, but I do think he likely had a valid concern that he may not have effectively communicated that all of this time with the computer was directly at the expense of time spent with the family. He m
More ›