Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nonsince
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
nonsince
8y ago
I do systems programming professionally, there are many reasons that Go is unsuitable for systems programming but all of them come down to having very little control over the resultant assembly that your program generates and very little po
62.
▲
by
nonsince
8y ago
I’d like to congratulate the brain trust at silicon valley for inventing public education and taxes
63.
▲
by
nonsince
8y ago
Mashed potatoes, being made of starch, are a kind of toast
64.
▲
by
nonsince
8y ago
The main reason the way I see it is that a lot of people who still use C and C++ need maximum speed, and D is only memory-safe with its garbage collector enabled. This affects latency and adds overhead. For many cases using a garbage collec
65.
▲
by
nonsince
8y ago
A legitimately very talented developer that I worked with showed me some of his first code at the company that contained `function post_document_load_do_shit` and `var turd`
66.
▲
by
nonsince
8y ago
Loop unrolling is useful only when it enables other optimisations. The most common is constant folding.
67.
▲
by
nonsince
8y ago
The only thing they could do for Wasm would be to allow sub-process-granularity hardware memory access virtualisation and easily-enforceable float rounding modes afaik
68.
▲
by
nonsince
8y ago
C is a very difficult-to-parse language for both humans and computers and its syntax family got popular as much from circumstance as anything else. JavaScript stole Java syntax to court Jaca developers, Java stole C++ syntax to court C++ pr
69.
▲
by
nonsince
8y ago
That doesn’t mean that all load-bearing parts are lego. It has a steel frame, as the article states.
70.
▲
by
nonsince
8y ago
The “less harmful alternatives” are simpler only in a surface-level way. Go is “simpler” than Python in that the language has less features, but that leads to more complex code since there is less possibility to abstract things away. It is
71.
▲
by
nonsince
8y ago
Any restrictions you put on what is and isn’t art will be contradicted by something, somewhere. A large number of pieces of art exist only to raise the question of what art even is.
72.
▲
by
nonsince
8y ago
I don't know about the others (reportedly Cling for C++ is good) but the Rust repl doesn't work properly and is basically just a frontend for incrementally writing a Rust file.
73.
▲
Concatenating `&’static str`s at compile-time using black magic
(github.com)
2 points
by
nonsince
8y ago
|
0 comments
74.
▲
by
nonsince
8y ago
Yes, because you get told about problems at compile-time rather than at runtime.
75.
▲
by
nonsince
8y ago
For completeness, to scale relative complement up to N lists you would need to repeat the last list 2^N times. So it'd look something like: rel_com() { for i in $(seq 1 $#); do for j in $(seq 1 $(bc <<&l
76.
▲
In which the CPU changes my data under my nose
(troubles.md)
13 points
by
nonsince
8y ago
|
3 comments
77.
▲
by
nonsince
8y ago
If you use Rust's equivalent of `-march=native` you get faster code that can target modern hardware. We would have to get another factor-of-two speedup for the maintainance burden of using inline assembly to be worthwhile. https:/
78.
▲
by
nonsince
8y ago
If you use `-C target-cpu=native` (Rust's equivalent of `-march=native`) you get code that uses `mulxq` in order to avoid `pushf`/`popf`. https://gist.github.com/Vurich/5cb83c773e90fc7a463ccb58e1dad...
79.
▲
by
nonsince
8y ago
It's possible that `pushfq`+`popfq` get turned into a `mov` from the flag register into a the output register due to microcode-level optimisations.
80.
▲
by
nonsince
8y ago
Great catch, you're absolutely right. LLVM is smarter than me once again.
81.
▲
by
nonsince
8y ago
They're certainly familiar with assembly itself, but the `asm!` macro and the related constructs in Clang/GCC is its own beast and has a lot of footguns (like GCC allocating registers as overlapping by default). I don't begru
82.
▲
by
nonsince
8y ago
Higher-precision arithmetic is important but is not our primary product. The existing code was performant enough for our usecase (although the increased speed is helpful). Rust has many benefits and I find it hard to imagine how anyone mana
83.
▲
by
nonsince
8y ago
C has had strong support for inline assembly for a long time, and in fact for a short period we called out to C in order to use inline assembly on stable (the function call overhead was worthwhile compared to how much faster the assembly im
84.
▲
How Rust 1.26 more than tripled the speed of my code
(troubles.md)
305 points
by
nonsince
8y ago
|
60 comments
85.
▲
by
nonsince
9y ago
I really like that you have to use `env` in fish, since it's cross-shell - it works in bash/zsh/dash/whatever. The `A=b foo` syntax is an unnecessary appendix in the syntax that complicates matters while only saving 4 ch
86.
▲
by
nonsince
9y ago
It's funny that Fortnite is being called a PUBG clone when I remember hearing about it years before even DayZ Battle Royale was released
87.
▲
by
nonsince
9y ago
Yes, but that still means that the price _per bitcoin_ will keep increasing.
88.
▲
by
nonsince
9y ago
Ideally there would be a better way to choose locale on a per-site basis rather than having it be baked into each app individually. Many apps have no settings page, and those that do often require you to log in to change the settings. I hav
89.
▲
by
nonsince
9y ago
One problem with internationalisation attempts is that most of the committees that have control over these things are from the Americas or Europe and so speak a Romance language natively and almost certainly speak English well (if not nativ
90.
▲
by
nonsince
9y ago
When I opened that page my laptop's fan started audibly spinning at maximum speed. I can't imagine what it's doing to my battery.
More ›