Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nmilo
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
181.
▲
by
nmilo
4y ago
I mean, of course they're slow, it's varargs (on the heap, garbage collected), dynamic function closures (on the heap, garbage collected), and a series of indirect function calls. You really don't need a bunch of benchmarks t
182.
▲
by
nmilo
4y ago
That sounds absolutely insane, no way people care that much about their programming languages. Do you have some evidence or is this a pipe dream?
183.
▲
by
nmilo
4y ago
Rust's approach is definitely safer, but my point is that the concerns are overblown. The Go compiler raise an error if a variable (error) goes unused, and just ignoring this error by naming it "_" is obviously dangerous. Yes
184.
▲
by
nmilo
4y ago
I see this point everywhere about Rust's union types and it always kind of irks me: > The point is, this [Result type] makes it impossible for us to access an invalid/uninitialized/null Metadata. With a Go function, if you
185.
▲
by
nmilo
4y ago
I can't even begin to follow this line of thought. Is 'billionaire' offensive because it distinguishes those who own billions of dollars versus those who don't? How, by your logic, is 'property owner' not offen
186.
▲
by
nmilo
4y ago
I think you're misreading. Nowhere in the article did the author say she "liked the tool" for removing whitelist/blacklist.
187.
▲
by
nmilo
4y ago
Youtube-dl's site is yt-dl.org, not youtube-dl.org. Not surprised the second one doesn't show up. Not sure why this blogspam is here on HN either.
188.
▲
by
nmilo
4y ago
Generally I find if you're writing code like that, your code is too high level. Okay, you've propagated errors, but what is the calling code going to do with those errors? I find large functions like that usually have enough conte
189.
▲
by
nmilo
4y ago
Don't split hairs; it says "GOP", same thing. And words in the title and lead paragraph hold about 10x the weird.
190.
▲
by
nmilo
4y ago
So, yes, it is nothing more than a consulting firm with the Republican party as one of their clients. The other questions still stand: > What's the point of making "Republican" so prominent in the article? Is it just to us
191.
▲
by
nmilo
4y ago
What is a "Republican strategy firm?" A consulting firm with the Republican party as one of their clients? What's the point of making "Republican" so prominent in the article? Is it just to use the negative connotat
192.
▲
by
nmilo
4y ago
Unsafe isn't too bad in any code. The point of unsafe is that it is a declaration that the programmer has verified the code is safe. It is certainly easier to verify something along the lines of: unsafe { transmute::<u32, Erro
193.
▲
by
nmilo
4y ago
An unsafe block is significantly better than the code proposed in the article.
194.
▲
by
nmilo
4y ago
Who's we? The great thing about text files is that they're editor agnostic. If there already exists 1000 editors that work, should that really be stopping me from making the 1001st that works for me better? Also I disagree with th
195.
▲
by
nmilo
5y ago
How is that ironic?
196.
▲
by
nmilo
5y ago
But which bank are you trusting in a time of war? We've seen countries have the power to subvert savings accounts, e.g. Greece limited bank withdrawls to £5000/month. Do you trust these banks more than a distributed ledger? This i
197.
▲
by
nmilo
5y ago
Agreed, the (2001) is almost a little ridiculous---we all know 9/11 happened in 2001, and the year in the title is supposed to refer to publication date.
198.
▲
by
nmilo
5y ago
Not really, it's on github, they can't control that. I guess they could make a static github pages, but a github repo gives hosting and community contribution for free.
199.
▲
by
nmilo
5y ago
> And before someone says Go doesn't have exceptions: It does, 100%, in all but name. But here the name actually matters. They're called "panic"s, not exceptions. When you panic, you signal a fatal error that should i
200.
▲
by
nmilo
5y ago
Why? Isn't one of the ideas of C++ that every constructed object is in a valid state? Even the STL has constructors that can fail, and it does it through member variables/flags, which doesn't seem like a very good solution:
201.
▲
by
nmilo
5y ago
But then you would need a local dt for each time-dependent function, and shaders don't really have packaged-up member variables in structs like you think they would if you come from Rust. That means you would have to maintain a massive
202.
▲
by
nmilo
5y ago
It's not great, it just has the most users, so it's better just due to the network effect. From a usability standpoint it sucks.
203.
▲
by
nmilo
5y ago
Not sure what your point is. C doesn't have labelled loops, so a goto signals intent better than the weird exitloop=1 thing in the article. This isn't to say C shouldn't have labelled loops; I think they're better than g
204.
▲
by
nmilo
5y ago
What a weird post. There's so many cool things Fortran does better than C-like languages, but instead the post focuses on superficial syntax like labelled loops and dangling elses. The labelled loops thing particularly irks me because
205.
▲
by
nmilo
5y ago
But here the pieces aren't infinitesimal. They're fractals, but still measurable.
206.
▲
by
nmilo
5y ago
Yeah you're right, it seems like the article is misleading. Still, unless I'm reading it wrong it seems like the patent is just describing the hardware translation of this algorithm, it's not really adding anything new. It&#x
207.
▲
by
nmilo
5y ago
There’s another algorithm that doesn’t depend on knowing which value is larger, the U.S. patent for which expired in 2016: unsigned average(unsigned a, unsigned b) { return (a / 2) + (b / 2) + (a & b &a
208.
▲
by
nmilo
5y ago
One thing that isn't often mentioned is that complicated programming languages nearly always come with complicated tooling. C++ has cmake, which is self-explanatory, and even cargo is pretty complicated. I'm still not sure what is
209.
▲
by
nmilo
5y ago
There's a pretty big difference between doing dynamic memory allocation for string concatenation on ALL systems, and doing software addition on some embedded processors. Even on your embedded system, floating point addition is simpler
210.
▲
by
nmilo
5y ago
What is a case where floating-point addition is more complicated than a string concatenation? Are you referring to some obscure architecture?
More ›