Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
qalmakka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
481.
▲
by
qalmakka
5y ago
I kind of understand why Rust made buffered IO explicit and on-demand instead of going down the C route and making it the default, but still I think there's a significant risk lots of programs are going to be suboptimal due to develope
482.
▲
by
qalmakka
5y ago
> They could still have been case sensitive (C was), so I don't understand how that's relevant to the idea that "case insensitivity is a problem". The point here is that case insensitivity is only a viable option if y
483.
▲
by
qalmakka
5y ago
> Pascal and old basic (among other languages) have been case insensitive for decades ... because back then Unicode was still a pipe dream in the mind of some visionary. Everything used 8 bit encoding, and everyone assumed ASCII or at le
484.
▲
by
qalmakka
5y ago
This is quite bad. Relying on uppercase/lowercase equivalences in a Unicode world is by definition a code smell, no matter if they force the comparison to be based on ASCII. This whole ordeal causes any sort of issue if Unicode letters
485.
▲
by
qalmakka
5y ago
They kind of occupy two different niches, IMHO. I see Nim more as a competitor to Go, whole Zig wants to replace C mostly and somewhat competes with Rust in that regard.
486.
▲
by
qalmakka
5y ago
Yeah Windows UI really took a turn for the worse with Windows XP. People now praise it mostly due to a nostalgia factor, but when it came out its UI was derided due to resembling something out of a Fisher Price toy. Still given that it fina
487.
▲
by
qalmakka
5y ago
Even if this was properly written C++ this wouldn't have worked, i.e. if the authors had used a std::vector instead of a hodgepodge of new and malloc. Even if you had overflowed the integer and used it to reserve some capacity in a vec
488.
▲
by
qalmakka
5y ago
The situation you describe is arguably different, if you eval() code you just fetched from an HTTP server you are deliberately, knowingly doing something very dangerous and it's only your fault. You are the one loading and cocking the
489.
▲
by
qalmakka
5y ago
This, exactly. Rosetta 2 emulates x86_64 Darwin binaries on AArch64 Darwin - it means that tricks like jumping to native code as soon as possible are feasible. For instance, you can call a native counterpart of a system library instead of e
490.
▲
by
qalmakka
5y ago
Unless Apple implements some kind of support for the x86 ISA in its CPUs (which is unrealistic), hvf will always only support arm and aarch64 guests. Running a non-native architecture requires emulation, which will always be slower than ju
491.
▲
by
qalmakka
5y ago
The fact that people don't read or use your specifications should ring a bell in someone's ears. I shouldn't have to care about the Security Manager unless I'm writing an app that might do stuff that covers its use cases
492.
▲
by
qalmakka
5y ago
It's simple, you simply implement some sort of code signing feature, or you only let people run arbitrary code in a sandbox or some sort of similarly limited environment. Letting people load code from a remote source into the same ad
493.
▲
by
qalmakka
5y ago
There's a difference between providing a way to call the interpreter and giving people a convenient way to download code and execute it. No matter how you spin it, it's basically the same as standardizing `curl | sh`. PS: eval() i
494.
▲
by
qalmakka
5y ago
The difference is that being pwned by a random memory corruption, while unfortunate, is an unintended feature. This on the other hand provides a deliberate, standardized and convenient way to allow anyone to download *any* arbitrary code
495.
▲
by
qalmakka
5y ago
(Maybe) Unpopular opinion: this whole ordeal is also due to the JRE being a clusterfuck of legacy and poor ideas. I understand it was the 90s but allowing to download arbitrary .class files from a server is _insane_, no matter how you spin
496.
▲
by
qalmakka
5y ago
It would also be great to have a standard API to create QUIC sockets, like BSD sockets on POSIX. It would make easy to swap implementations and port applications using QUIC to other systems, avoiding balcanization. I can see OSes integratin
497.
▲
by
qalmakka
5y ago
As the adage goes, "A language is a dialect with a flag and an army"
498.
▲
by
qalmakka
5y ago
I think the main culprit for the whole situation - that is, the fact that building anything on Windows is a byzantine and convoluted process - is the fact the whole OS was designed with CLI as an afterthought. On UNIX the CLI is always fore
499.
▲
by
qalmakka
5y ago
Also it had sane strings. Strings with sizes, withouth the whole null-terminated madness of C which still haunts us nowadays.
500.
▲
by
qalmakka
5y ago
I personally much rather prefer using utilities written in Go, Rust or C/C++ because they do not depend on a specific version of an interpreter/module so they are quite easier to install and it's way less likely to bork them.
501.
▲
by
qalmakka
5y ago
I have _never_ had any issue with C++ templates on _modern_ µControllers such as the ESP32. Unless you have an incredibly minuscule flash, modern GCC or LLVM are very good at deleting unused code when you compile everything with -Os. Even -
502.
▲
by
qalmakka
5y ago
Most applications look very weird on Windows 10 dark mode, especially some older Win32 apps that were not clearly designed around a dark theme. Windows Explorer looks particularly bad IMHO, it's just too dark and the icons clash badly
503.
▲
by
qalmakka
5y ago
I think that one reason is often that a film is way longer than a single TV series episode, so it requires a bigger "commitment". I can potentially watch 3 episodes of different TV series in a single evening or either 3 episodes o
504.
▲
by
qalmakka
5y ago
So it's not only me then. Fair enough, English isn't my first language but I have been studying it since I was very little, and usually in the real world I tend to have close to zero issues at understanding speech, be it in first
505.
▲
by
qalmakka
5y ago
Would peaches replace bananas? The comparison makes IMHO very little sense. They are different tools that solve different issues in different ways. It's true that Docker is often abused in very creative ways to do what Nix does, but it
506.
▲
by
qalmakka
5y ago
Since I started using font ligatures everywhere (terminals, text editors) they just feel right to me. I don't care (usually) about seeing the exact bytes in text - after all, since we adopted Unicode we also got multi bye characters an
507.
▲
by
qalmakka
5y ago
I have always heard people warning about adapters, because they have a tendency of causing discolouration on black induction hobs due to how unevenly they heat up. I guess that switching to a stainless steel pot isn't the end of the wo
508.
▲
by
qalmakka
5y ago
You could argue that basically everything has the potential of being harmful in the long term. Red meat, gas hobs, living in a polluted city, plastic, ... People are exposed to so many substances that we actually know for a fact they are ei
509.
▲
by
qalmakka
5y ago
Every day, twice a day, I grind my coffee and put my trusty old aluminium Bialetti Moka pot on the hob. It's my ritual, and no crappy pods can ever take that away from me. As long as I remember to swap out its rubber gasket, I know for
510.
▲
by
qalmakka
5y ago
It's the proper English term to refer to what Portuguese call "marmelada". Yeah English is funny sometimes.
More ›