Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simias
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
113 ms
·
961.
▲
by
simias
6y ago
I don't even try to make sense of bitcoin trends anymore. You might as well try to interpret shapes is clouds. Bitcoin has been in an upward trend since early September for no discernible reason (to me at least).
962.
▲
by
simias
6y ago
Then you'll have one of these "fancy" modern websites that load their content entirely through js and it'll fail because the HTML is the same on all pages. A URL match is probably good enough the vast majority of the tim
963.
▲
by
simias
6y ago
You're right of course, I just mean that it makes it a bit verbose and error-prone to write in full "(i >> (32 - shift)) | (i << shift))". I need to triple check that I'm not off-by-one and that all the opera
964.
▲
by
simias
6y ago
I'm not really seeing it, at least not in this opcode list. As far as I can tell the C operands are fairly simple and basic (add, subtract, complement, and, or, xor etc...). They would almost always map to a single instruction in MIPS,
965.
▲
by
simias
6y ago
Seems like an interesting method but at this point why not just use Firefox?
966.
▲
by
simias
6y ago
Those are some rose tinted glasses you must be wearing. All these animated gifs and visitor counters were not here to convey valuable information but rather to make the website more popular. If people back then could've played full scr
967.
▲
by
simias
6y ago
I also find that vim defaults are very lackluster, I could spend all day listing its faults: - hjkl is not a reasonable default mapping for motion, for one it doesn't make it obvious that j is down and l is up since the keys are next t
968.
▲
by
simias
6y ago
It is well known that Sperm Whales have long ago figured out how to unify quantum physics and general relativity. They could tell us small-brained humans but apparently they enjoy watching us struggle.
969.
▲
by
simias
6y ago
I've noticed that the latest trend on social networks is to have ultra-sped up mini-videos, I think because it's popular on Instagram or TikTok (or both?). It's as if our entire civilization had suddenly caught ADHD. Frankly
970.
▲
by
simias
6y ago
The mednafen PSX emulator uses this trick to implement some of the modules (the MDEC and SPU use it IIRC). I always found it hard to follow and personally prefer simpler, more verbose code with explicit state management.
971.
▲
by
simias
6y ago
I sorta see where you're coming from, but I can't really see myself avoiding switch entirely in C. I do agree that it's very poorly designed since it makes it very easy to shoot yourself in the foot. It does make it very nice
972.
▲
by
simias
6y ago
I agree that it's not the worst but it definitely leaves a lot of interpersonal drama unresolved. It makes the effective ending very bittersweet, which might indeed be fitting for this particular show.
973.
▲
by
simias
6y ago
If you ask yourself this question, then 100%. You need to exist to even consider the unlikelihood of your existence. But as far as I know the existence of naturally occurring superconductors is a completely independent probability, so it do
974.
▲
by
simias
6y ago
That's a good point, but I wonder what's the cost of leaving shows completely unfinished in the long run. I know that I'm very unlikely to start watching a show if I know that it never reaches a satisfying conclusion. This in
975.
▲
by
simias
6y ago
>First, bit field descriptors is a huge pain - where, in C, you would define an enum for the task, there isn't a real equal in vanilla Rust, other than a litany of constant variables. Have a look at the bitlags crate, I use it a lot
976.
▲
by
simias
6y ago
I guess the problem is that the arms race needs to reach a bottom at some point. Sure if prices lag around the world by a few hours, then I can see how it's bad. Here we're talking about boring holes through mountains to shave mic
977.
▲
by
simias
6y ago
Your comment reminded me of the classic Ken Thompson quote: >Ken Thompson was once asked what he would do differently if he were redesigning the UNIX system. His reply: "I'd spell creat with an e." There was definitely a m
978.
▲
by
simias
6y ago
The only practical issue with "out of control" includes is still compilation time though, especially if modifying a single file causes many other files to rebuild because they include it directly or indirectly. Beyond that I reall
979.
▲
by
simias
6y ago
I very rarely encounter #pragma once in the wild personally, and I still always use old school #ifndef guards myself. I can't really see a reason to change: it's not a huge amount of typing, it works everywhere, it's very exp
980.
▲
by
simias
6y ago
I would strongly recommend that people new to C and reading this comment do not follow this advice. It might have made sense back when it was written but it's not how modern C is typically written, and it would be very annoying for mod
981.
▲
by
simias
6y ago
I'm not denying this at all, but again this is not the point I'm discussing. All companies have a political agenda one way or the other, even if it's just driven by profit. As a thought experiment: imagine if Twitter did the
982.
▲
by
simias
6y ago
I don't see how that has anything to do with the topic at hand. We're not talking about Twitter's success, we're talking about its influence on elections. If anything it's because it's been very successful (by
983.
▲
by
simias
6y ago
That makes no sense to me. Do you think social networks would be less toxic and less abused if all the devs at Facebook or Twitter were apolitical? How would that work? It's the quest for "engagement" and getting always more
984.
▲
by
simias
6y ago
Interesting that I missed clap when I wrote that program a few years ago then. In my defence "argparse" is a lot more explicit than "clap" for a such a library. Also argparse's last update was 2 years ago, so there&
985.
▲
by
simias
6y ago
Most applications are not supposed to survive a panic!(), to the point where I personally tend to use "panic = 'abort'" for any code where performance matters. As such it's not really a mental overhead, and definite
986.
▲
by
simias
6y ago
You could argue the same thing for many big monolithic C projects though. How many of the original authors/maintainers are left in OpenSSL or the Linux kernel? My main worry about Rust dependencies is not so much the number, it's
987.
▲
by
simias
6y ago
I don't really understand the author's stance to be honest. I agree that it's silly to blame them but at the same time the author explicitly acknowledges that the tool is meant to mass-scan the internet and that it's a
988.
▲
by
simias
6y ago
I've given it a try but I found it really half-baked. For one thing I don't really believe you can successfully tack a type system as an afterthought onto a dynamic language but beyond that the fact that the default Python impleme
989.
▲
by
simias
6y ago
I'm currently rewriting the "industry" application I started 4 years ago in Python into Rust. At the time I wasn't sure if Rust was mature enough to use it for a critical application, and I needed to get started quickly
990.
▲
by
simias
6y ago
Array sizes are static and can be used for optimization, that's a very significant advantage in some situations. As an example, if I'm emulating some RAM module of a console, I'd much rather use a cheap [u8; RAM_LEN] than a V
More ›