Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
levodelellis
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
levodelellis
6mo ago
Great. C++20 has been my favorite and I was wasn't sure what the standards says since it's been a while. I'll be reading the C++26 standard soon
2.
▲
by
levodelellis
6mo ago
I have no faith in anyone doing AI to accomplish anything (especially relative to how much money they spend) except John Carmack. People should be trying to throw money at him
3.
▲
by
levodelellis
6mo ago
Haha, yes
4.
▲
by
levodelellis
7mo ago
You don't really need to deal with gcc backend. Most languages are expressible in C89. It'll obviously be less readable since generated lines look nothing like source lines but C89 beats llvm in most cases, especially if the C com
5.
▲
by
levodelellis
7mo ago
I don't know what point you're trying to make but your question was what's an alternative to llvm. People writing compilers always used C89 or a version of it (C11 allows an easier atomic implementation). There's a lot m
6.
▲
by
levodelellis
7mo ago
I never heard of hardware without one
7.
▲
by
levodelellis
7mo ago
Many compilers including my own uses C89
8.
▲
by
levodelellis
7mo ago
Yes. I also written a compiler and I also complained about LLVM. LLVM is - Slow to compile - Breaks compilers/doesn't have a stable ABI - Optimizes poorly (at least, worse than GCC) Swift I never used but I tried compil
9.
▲
by
levodelellis
7mo ago
A 200ms difference is adding or removing 200lines lines of implementation, and spliting it up into a file can make it slower because of include overhead. You completely made up C being twice as fast as C++.
10.
▲
by
levodelellis
7mo ago
Oh? I use a boring old $5 VPS (using nginx for https). There's no cloudflare or anything else involved. I wonder why that's happening. I may look into that this week
11.
▲
by
levodelellis
7mo ago
tcc is 8x faster, twice as fast isn't doing it justice. As for the header thing, that'd could potentially be true if the compile time was something like 450ms -> 220ms, but why bother saying it when you're only saving a fe
12.
▲
by
levodelellis
7mo ago
IIRC go wasn't that fast but can feel like it in vscode. IIRC vscode compiles go using the lsp which is faster than launching a process because for some reason, vscode stalls for a second or more before launching a process. I can'
13.
▲
by
levodelellis
7mo ago
I don't believe you, I measured compile times in c compilers and my own. If you provide more information I'd be more likely to believe you
14.
▲
by
levodelellis
7mo ago
I measured once and to my surprise templates aren't (directly) the reason for long compile times. It's function bodies in headers, and obviously templates are in headers and they call other templated functions/classes which e
15.
▲
Code Comments – Cain on Games [video]
(youtube.com)
1 points
by
levodelellis
8mo ago
|
0 comments
16.
▲
by
levodelellis
8mo ago
Not sure, I'd like that too You could use io_uring but IMO that API is annoying and I remember hitting limitations. One thing you could do with io_uring is using openat (the op not the syscall) with the dir fd (which you get from the s
17.
▲
by
levodelellis
10mo ago
Correct, I'm saying public domain never requires that which is different from open source licenses, which may require it (and other stipulations)
18.
▲
by
levodelellis
10mo ago
It's not open source when you disallow people and companies from using it. One big difference between open source and public domain is that code in the public domain doesn't force anyone to redistribute the changes. I have had sev
19.
▲
by
levodelellis
10mo ago
Every time I read his article I regret it. I literally mean every time, 100% of it. Judging by the title of the article, I didn't expect his reason to be "engineers working outside their area of expertise". I've seen goo
20.
▲
by
levodelellis
11mo ago
Isn't this what Joel wrote 25 years ago? Don't rewrite your software? I wrote a compiler/language, and I was expecting something different from the article after my experiences Like many of the other commenters, I didn't
21.
▲
by
levodelellis
11mo ago
I use a high-level async framework. It works extremely well so far. I do need to add code occasionally, but that's because it's an in-house lib that isn't a year old yet
22.
▲
by
levodelellis
11mo ago
I do write code that uses multi-threading every day and usually I write a few lockless functions every month for the in-house library I use. I was considering writing an article on atomics after all the mistakes and bad code I've seen.
23.
▲
by
levodelellis
11mo ago
Would you rather have a gc or unsafe? In just about every language I seen people use .clone rather than deal with problems so I suspect a lot of cases a GC can be just fine or faster. Although I'm comfortable with memory management and
24.
▲
by
levodelellis
11mo ago
I find it funny AF that Fil-C is safer than languages with the unsafe keyword. Who knew C could be so safe with a proper compiler
25.
▲
by
levodelellis
11mo ago
I completely disagree with you and I do write performance code (but not specifically HPC) and my current day job is highly async code with a GUI
26.
▲
by
levodelellis
11mo ago
People mess up the order all the time. When you mess up locks you get a deadlock, when you mess up an atomic you have items in the queue drop or processed twice, or some other weird behavior (waking up the wrong thread) you didn't expe
27.
▲
by
levodelellis
11mo ago
To clarify by "your code" I mean your code excluding a library. A good library would make it impossible to deadlock. When I wrote mine I never called outside code during a lock so it was impossible for it to deadlock. My atomic co
28.
▲
by
levodelellis
11mo ago
From my understanding this talk describes how he implemented a solution for a similar problem https://www.youtube.com/watch?v=Kvsvd67XUKw I'm saying if you're not writing multi-threaded code everyday, use a librar
29.
▲
by
levodelellis
11mo ago
In October alone I seen 5+ articles and comments about multi-threading and I don't know why I always said if your code locks or use atomics, it's wrong. Everyone says I'm wrong but you get things like what's described in
30.
▲
by
levodelellis
11mo ago
That's the best answer. Just wondering because you have a lot of experience and many people disagree with me. How realistic is a C++ compiler that's 50x faster than clang for debug builds? Assuming 1) there's enough work for
More ›