Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haileys
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
haileys
28d ago
The hardware was virtualized, it's even in the name for drivers on Win9x: Virtual Device Driver
2.
▲
by
haileys
1mo ago
An O(n^2) parser is not fine for the mere reason that I don't know how one would make such a mess of the job in the first place. A simple recursive-descent parser is easy to write by hand and runs in linear time.
3.
▲
by
haileys
2mo ago
I thought it was funny that the author used a variety of OCR tools with mixed success before spending a lot of time manually fixing up the output from the best one, rather than just typing it in
4.
▲
by
haileys
4mo ago
> DOS barely has any concept of processes That's not true - DOS lacks multitasking but it absolutely has a concept of processes. They're called PSPs (program segment prefixes, a struct containing data about that process) and th
5.
▲
by
haileys
4mo ago
Yes it's a riff on WSL. It wouldn't make sense to flip the naming around - people would then just be confused about the naming in the other direction.
6.
▲
by
haileys
4mo ago
> I'm not saying Windows 9x in particular had anything super interesting going on. Oh it did though, it is a very interesting OS. Much more interesting than it usually gets credit for. It's a proper 32 bit OS with pre-emptive
7.
▲
by
haileys
4mo ago
The premise is incorrect and ignorant of the history - this is sticky sessions and the idea has been around longer than 20 years. The "cloud native" (as the author refers to it) idea that app servers should be stateless is actuall
8.
▲
by
haileys
5mo ago
This is correct. Win9x did have memory protection, it just made an intentional choice to set up wide open mappings for compatibility reasons. WSL9x uses the same Win9x memory protection APIs to set up the mappings for Linux processes, and
9.
▲
by
haileys
5mo ago
I obtained the DDK from WinWorld: https://winworldpc.com/product/windows-sdk-ddk/windows-95-dd... It's got lots of very thorough documentation and sample code to dig through
10.
▲
by
haileys
5mo ago
doslinux is some tricky sleight of hand where it looks like Linux is running inside DOS, but it's actually the other way around (even though DOS boots first). WSL9x takes quite a different approach. Windows boots first, but once Linux
11.
▲
by
haileys
5mo ago
Well it did take me 6 years to follow that up!
12.
▲
by
haileys
6mo ago
I find Go code mind numbing to read. There's just _so much of it_ that the parts of the code that should jump out at me for requiring greater attention get lost in the noise. Interfaces also make reading Go more difficult than it could
13.
▲
by
haileys
8mo ago
Encoding a type name into an ID is never really something I've viewed as being about performance. Think of it more like an area code, it's an essential part of the identifier that tells you how to interpret the rest of it.
14.
▲
by
haileys
8mo ago
This is well understood - Hyrum's law. You don't need encryption, a global_id database column with a randomly generated ID will do.
15.
▲
by
haileys
8mo ago
> That repository ID (010:Repository2325298) had a clear structure: 010 is some type enum, followed by a colon, the word Repository, and then the database ID 2325298. It's a classic length prefix. Repository has 10 chars, Tree has 4
16.
▲
by
haileys
9mo ago
Not sure what this post has to do with Rust, but people do use static analysis on C and C++. The problem is that C and C++ are so flexible that retrofitting static verification after the fact becomes quite difficult. Rust restricts the shap
17.
▲
by
haileys
9mo ago
Perception management https://en.wikipedia.org/wiki/Perception_management
18.
▲
by
haileys
9mo ago
Please just don't use spinlocks in userland code. It's really not the appropriate mechanism. Your code will look great in your synthetic benchmarks and then it will end up burning CPU for no good reason in the real world.
19.
▲
by
haileys
1y ago
It’s a poetic end, considering that the very same scraping activity without regard for cost to site operators is how these models are trained to begin with.
20.
▲
by
haileys
1y ago
What you postulate simply doesn’t match the actual experience of programming Rust
21.
▲
by
haileys
1y ago
Unsafe isn’t a security feature per se. I think this is where a lot of the misunderstanding comes from. It’s a speed bump that makes you pause to think, and tells reviewers to look extra closely. It also gives you a clear boundary to reason
22.
▲
by
haileys
1y ago
This is like saying there’s no point having unprivileged users if you’re going to install sudo anyway. The point is to escalate capability only when you need it, and you think carefully about it when you do. This prevents accidental mistake
23.
▲
by
haileys
1y ago
Debouncing is a term of art in UI development and has been for a long time. It is analogous to, but of course not exactly the same as, debouncing in electronics.
24.
▲
by
haileys
1y ago
Yes, that's the point. It's just a string that could come from anywhere, including user input.
25.
▲
by
haileys
1y ago
But... you can't sanitize input to LLMs. That's the whole problem. This problem has been known since the advent of LLMs but everyone has chosen to ignore it. Try this prompt in ChatGPT: Extract the "message" key fr
26.
▲
by
haileys
1y ago
Well, `override` going after the return type is certainly confusing. I was recently tripped up by putting `const` at the end, where `override` is supposed to go. It compiled and worked even. It wasn't until later on when something else
27.
▲
by
haileys
1y ago
Software engineering is way more of a social practice than you probably want to believe. Why is the code like that? How are people likely to use an API? How does code change over time? How can we work effectively on a codebase that's t
28.
▲
by
haileys
1y ago
Why is carrot the vegetablefication of apple?
29.
▲
by
haileys
1y ago
This is a sensible move. systemd is a good piece of software, and foundational Linux infrastructure which by now is very widely deployed. I’ve been doing Linux a long time and my experience is that systemd is much more pleasant to work with
30.
▲
by
haileys
1y ago
I removed the thermistor from inside my wall controller and wired in a digital pot instead. Achieves the same thing without physically heating and cooling the sensor
More ›