Better HN
topnewbestaskshowjobs
Log inSign up

binary132

1,656 karma · joined Mar 24, 2014 (12y ago) · 1,717 submissions

Submissions

comment 2y ago · link · parent

The real performance depends on the runtime behavior of the machine as well as compiler optimizations. I thought this talk was very interesting on this subject.

https://youtu.be/i5MAXAxp_Tw

comment 2y ago · link · parent

Maybe there’s something I don’t understand, but it seems to me that it would just be a streaming-next-token input instead of a batch input.

comment 2y ago · link · parent

If you were an Emacs user you would find this to be a good and useful default. ;)

comment 2y ago · link · parent

I think that’s the joke

comment 2y ago · link · parent

Nice! Something I’ve been noticing lately is that I’ll see something interesting like this, maybe leave a comment or try it out, and tab away and it’s as good as gone, even if I save it to my Telegram saves, or any other list — there’s just so much time-linear content coming in and past my mind that’s very easy to lose again unless something really grabs my attention and energy for a while, and offers something to look forward to tomorrow. Call it ADD or whatever you want, but there is simply too much content / information, even if it’s all useful and good and non-spammy.

Something along the lines of your app could possibly help “de-linearize” (?) things into a daily timeline or mindspace — I think everyone’s become so used to the timeline conditioning that it can be pretty harmful, really. Not sure what to do with all that.

comment 2y ago · link · parent

Beeminder reliably makes me spend money on Beeminder. :)

comment 2y ago · link · parent

I choose to interpret this as humor. Funny joke! I laugh.

comment 2y ago · link · parent

curl and git are amazing but they aren’t skyscrapers. Building a skyscraper, space shuttle, or integrated circuit is hard to organize even once, let alone to abstract over the process of organizing and building it so that it can be reproduced. I don’t think that problem is solved at all. And it’s not at all as simple as “just take the open source legos and slap a few of them together!”

comment 2y ago · link · parent

It’s crazy how I assumed this was some kind of digital screen device for a solid 20-30 seconds before scrolling far enough to see the actual design.

comment 2y ago · link · parent

I think at some level in their heads there is an intent to convey some kind of meaning, but it doesn’t get through the layers of forming (correct) phonemes and grammatically sane phrases. It’s not like little kids don’t have thoughts and feelings before they’re able to articulate them, and merely create random noises, but more of a gradual process of learning to create those coherent and correct articulations.

comment 2y ago · link · parent

I too am highly perplexed

comment 2y ago · link · parent

It’s not like you have to pick. Both are facile to pick up over a weekend. :)

comment 2y ago · link · parent

Buried lede: software engineering doesn’t scale.

comment 2y ago · link · parent

I’m not sure there is really more to say here. A lot of people don’t seem to like strong type systems very much either, but that doesn’t mean they’re not wrong. ;)

That said, it clearly has some interesting ideas! I’m just not sure I understand why the database needs to be the compiler. It seems like an awful lot of design decisions baked into the stack instead of offered as APIs or protocols. And it’s obvious that we can consider the filesystem itself to be a sort of database — Git famously is implemented entirely in filesystem semantics, for example, so it’s also not clear to me why this content addressing can’t simply be done in a cache dir, or some such, the way many build systems do for their compilation units.

comment 2y ago · link · parent

Ok, but if you’re comfortable using it, Perl is really fun, pleasant, and easy to quickly express ideas in. One of its conscious design decisions is to be flexible enough to rapidly bang out some quick hack you’ll never look at again in absolute incomprehensible gibberish shorthand, or to use in a very methodical, disciplined, and structured way — so if you write something unmaintainable, that’s because you chose to.

I haven’t turned to it as my first choice in years, but it still has a place in my back pocket for if I ever need a quick and dirty text munging Swiss Army knife.

comment 2y ago · link · parent

Let me know when the mainstream distros have switched their kernel builds to Clang.

comment 2y ago · link · parent

I wrote a portable Lua based build tool for C and C++ that I use pretty religiously. I have no plans to publish it.

comment 2y ago · link · parent

ISTM that packing all that goodness (?) into the compiler stack itself is moving away from what I want where the compiler is a plain-Jane source transform and its inputs and outputs are very well specified and predictable. That’s where the ecosystem of tools comes in, and when done right I think tools should be very easy and straightforward to use and create. I often feel modern languages get this wrong by “including” too many “batteries” instead of specifying and documenting their build / dependency semantics clearly and providing good tools or libraries for working with and composing those elements of build.

Far too few language ecosystems provide any kind of libraries for it whatsoever, even for working with syntax / AST. I really can only think of Clang and Go, and Go’s tool libraries aren’t very accessible IMO.

comment 2y ago · link · parent

Those C libraries that have initializers which take ** and do the allocation for you drive me nuts! I’m sure there’s some good reason, but can’t you trust me to allocate for myself, you know?

comment 2y ago · link · parent

You cannot use Wikipedia as a source, everyone knows this.

comment 2y ago · link · parent

[EDIT] Apologies for the formatting, iOS OCR isn’t the greatest and neither is HN block-quote formatting (or I just don’t know how to use it correctly.)

Now now, we all know we can’t just cite Wikipedia as a source. I hardly think this is as settled a matter as you and the author of the article say it is, and I’m sure that after reviewing the following evidence, you will agree with me!

In fact, the author of the book on symbiosis (ironically cited by the Wikipedia article as evidence that the broad definition is “widely accepted by biologists,” even though it actually says the opposite!) actually says: while “many symbiosis researchers use this [broader] definition”, “the [broader] definition is not accepted by most general biologists and nonbiologists today, and so fails to communicate effectively,” and “the definition of symbiosis widely accepted among both general biologists and the lexicographers who prepare English dictionaries is an association between different species from which all participating organisms benefit.” (Emphasis author’s.)

As cited by the Wikipedia article:

> The definition of symbiosis was a matter of debate for 130 years.

> [...]

> In the 21st century, the latter has become the definition widely accepted by biologists.[13]

[13] Douglas 2010, pp 5-12:

> This brings me to the most frustrating difficulty in the field of symbiosis - the lack of a single universally accepted definition. Disagreement [...] has led to [...] a lack of consensus. Two alternative definitions of symbiosis, neither fully satisfactory, have dominated the literature for many decades: "symbiosis as any association" and "symbiosis as a persistent mutualism."

> [...]

> 1.3 DEFINITIONS OF SYMBIOSIS

> 1.3.1 Symbiosis As Any Association

> The term symbiosis was coined originally by Anton de Bary in 1879 to mean any association between different species, with the implication that the organisms are in persistent contact but that the relationship need not be advantageous to all the participants. De Bary explicitly included pathogenic and parasitic associations as examples of symbioses. Many symbiosis researchers use this definition and, without doubt, some colleagues steeped in the symbiosis literature will have objected to the opening two sentences of this book.

> One key advantage of the definition of de Bary is that it promotes a broad context for research into symbioses. It acts as a reminder that it is important to investigate both the costs and the benefits to an organism of entering into a symbiosis (see figure 1-1a); and it is reasonable to expect some of the processes underlying relationships that are classified as mutualistic and antagonistic to be similar. For example, just as the persistence of certain antagonistic interactions depends on one organism failing to recognize the antagonist as a foreign organism, so some organisms may be accepted into symbioses because they fail to trigger the defense systems of their partner and not because they are positively recognized as mutualists. Nevertheless, the definition of de Bary has two serious shortcomings. First and very importantly, the definition is not accepted by most general biologists or nonbiologists today, and so fails to communicate effectively. Most people do not describe the current malaria pandemic or the potato blight that caused the Irish famine of the 1840s as examples of symbiosis. Second, there are few principles generally applicable to symbioses, as defined by de Bary, but inapplicable to other biological systems. As a result, the "symbiosis as any association" definition is something of a catch-all category. Although this definition does promote further enquiry and insight into symbioses, any insights obtained are unlikely to be common to all symbioses defined in this way.

>

> 1.3.2 Symbiosis As a Persistent Mutualism

> The definition of symbiosis widely accepted among both general biologists and the lexicographers who prepare English dictionaries is an association between different species from which all participating organisms benefit. I subscribe to this definition even though it is not without difficulties.

“The Symbiotic Habit”, Angela E. Douglas

https://books.google.com/books/about/The_Symbiotic_Habit.htm...

If anything, I would think perhaps that we might be able to agree that the Wikipedia article you referenced should be fixed to correctly represent the author’s conclusion, or the offending section excised. :)

comment 2y ago · link · parent

In my eyes an ideal library should not contain state, internally allocate (unless very obviously), or manage processes. The application should do that, or provide primitives for doing it which the library can make use of. That makes applications and libraries very very different in my mind.

comment 2y ago · link · parent

Correct me if I’m wrong, but would another way of saying this be: write parsers in terms of a buffer, not in terms of IO?

comment 2y ago · link · parent

FWIW, I’ve never heard of any meaning of symbiosis other than mutually beneficial. I’m not able to cite this but I believe the prefix sym- may imply this.

comment 2y ago · link · parent

“Open source” was literally conceived and organized in its inception as a corporate-sponsored competitor to the threat of Free Software.

comment 2y ago · link · parent

Is a PlayStation user a FreeBSD user? Yes, clearly. Can he see the source code of the FreeBSD derivative he is using? No, obviously not. Did FreeBSD make this possible? Yes, obviously.

comment 2y ago · link · parent

IMO zig is neat but not that much different (for better or for worse) than C and C++. I do really like the comptime concept and wish C had it, and I like it that allocators are explicit in interfaces. There are other things I don’t like about it and I don’t think it has much chance to supplant C or C++.

comment 2y ago · link · parent

It is always weird to me when people have a big problem with C++ smart pointers but think that Rust smart pointers are the bee’s knees.

It is just a different syntax for the same thing.

I honestly think people just find the words “unique ptr” scary or syntactically overwhelming. If that is true, fortunately we also have using aliases :)

comment 2y ago · link · parent

Princeton NJ.

Remote or local only, no NYC / Philadelphia.

Perf / static / dynamic analysis, C or C++, Lua, Go, roughly in that order — willing and able to use Python, Lisps, and Perl in anger when it makes sense.

https://docs.google.com/document/d/1ZzdR3fPBA6WfprwEo8s_Wi98...

bodie at synapsegarden dot net.

comment 2y ago · link · parent

Error: I’m afraid I can’t let you compile that.
1
434445
58