Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
atilaneves
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
atilaneves
7mo ago
> You don't need Emacs Yes, I do.
2.
▲
by
atilaneves
7mo ago
> and lose access to most things What "most things" are these?
3.
▲
by
atilaneves
7mo ago
No, you can just write D. It'll have the same performance as C, if you write C-like code. It might have better performance than C if you use templates (just like in C++).
4.
▲
by
atilaneves
9mo ago
Yes, that's my point. I'm replying to claims that "if it compiles it probably works". My limited experience with both is "nah".
5.
▲
by
atilaneves
9mo ago
Because it is also possible to write tests that don't adequately capture real-life requirements. It was an MQTT server, and the tests basically went "if we have these subscriptions, then...", but no subscriptions ever got act
6.
▲
by
atilaneves
9mo ago
Every language with a GC drastically reduces the chance of memory errors.
7.
▲
by
atilaneves
9mo ago
I hear this about both Haskell and Rust, and yet, when I tried both in the former I wrote a useless program because I didn't handle state (and yet passed all tests!) while in the latter I immediately wrote a deadlock. So...yeah.
8.
▲
by
atilaneves
9mo ago
I made the same comment last week upon learning of a redis clone entirely vibe coded in IIRC ~70k lines of Rust. Why Rust? Why does a computer need a memory safe language?
9.
▲
by
atilaneves
2y ago
I'm still figuring out why anyone would want to write a shell script in C. That sounds like torture to me.
10.
▲
by
atilaneves
2y ago
Wouldn't the instance state here be "was constructed"? That is: you should always be able to call `Read` because the constructor opened the file, and you shouldn't have to call `Close` anyway because the destructor did.
11.
▲
by
atilaneves
3y ago
I just posted on the forum about it, I didn't do it before because of surgery (I'm still nowhere near 100%). What changes would you like to see happen?
12.
▲
by
atilaneves
3y ago
FWIW, I just posted this on the D forum: https://forum.dlang.org/post/vwnefgsszqxobssylhmc@forum.dlan...
13.
▲
by
atilaneves
3y ago
Proof of the fact that this works is that D does exactly this.
14.
▲
by
atilaneves
5y ago
> What do you think, is there a potential niche for like NeoEmacs, a test editor written in a modern Lisp / Scheme I think that's a non-starter because you instantly lose the entire ecosystem of elisp packages out there and nob
15.
▲
by
atilaneves
5y ago
Switzerland has a population of 8.6M, isn't part of the EU, and yet... The problem there has been getting enough doses delivered.
16.
▲
by
atilaneves
6y ago
If the array fits in the cache, deleting from the middle of an array and copying all the subsequent elements one to the left is actually faster than a linked list. And most arrays fit in the cache.
17.
▲
by
atilaneves
6y ago
dpp* can't do function definitions yet but for declarations it's as easy as #including a C header file natively. * https://github.com/atilaneves/dpp
18.
▲
by
atilaneves
6y ago
I think you missed the point where they mentioned you can change any and all keybindings in Emacs.
19.
▲
by
atilaneves
6y ago
1. That's a rare use case 2. There are ways of measuring that without hampering readability. I mean, are programmers supposed to add all the variables' sizes up in their head??
20.
▲
by
atilaneves
6y ago
And yet, it's worse than both.
21.
▲
by
atilaneves
6y ago
> Source code is for humans The reason why making the scope as local as possible is important is for humans , not compilers. > Put all the vars at the top to tell the humans "here's all the scratch space I'll be needin
22.
▲
by
atilaneves
6y ago
That would be satan's language.
23.
▲
by
atilaneves
6y ago
No need to imagine, it happens all the time in D, and it's not that bad.
24.
▲
by
atilaneves
6y ago
Simple is better. People however tend to not agree on what's simple.
25.
▲
by
atilaneves
6y ago
Not really - the concrete type isn't important, but what you can do with it is. One could argue that instead we'd use a concept in place of `auto`, and Bjarne has argued exactly that for C++.
26.
▲
by
atilaneves
6y ago
> > It takes an input range > Which should have a type. It does. That'd the `Range` here: https://dlang.org/phobos/std_algorithm_iteration.html#.map.m... > > and returns a type that iterates through
27.
▲
by
atilaneves
6y ago
Not in D, it isn't, for performance reasons. It takes an input range and returns a type that iterates through that range applying the callable (doesn't have to be a function!) to each element as requested .
28.
▲
by
atilaneves
6y ago
> Are there any downsides beyond the niggle the author mentioned? For me, using a GC is just a lot easier than making the borrow checker happy. Given that in practice it's rare that the GC is the bottleneck (and when it is I write a
29.
▲
by
atilaneves
6y ago
I got given it as a child in the form of coffee.
30.
▲
by
atilaneves
7y ago
> Compile time generic programming is not a replacement for runtime reflection. Yes, it is, especially since the former can be used to implement the latter.
More ›