Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bhawks
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
bhawks
1y ago
Sadly I would imagine that this would give the legal department nightmares.
32.
▲
by
bhawks
1y ago
Can't wait to sign into my web browser with my driver's license.
33.
▲
by
bhawks
1y ago
Since interop is such a big design goal I wonder if fn was chosen after analyzing the impact of alternative keywords present in large c++ code based that would impact interop in a negative way (eg requiring more escaping).
34.
▲
by
bhawks
1y ago
Optimizing struct layouts is cool. but if your motivation is to pack more monsters in your game definitely consider transposing your row oriented monster struct into a column oriented entity using Entity Component System. Example framework:
35.
▲
by
bhawks
1y ago
A whole separate register? That is quite expensive. Obviously you need to physically add the register to the chip. After that the real work comes. You need to change your ISA to make the register addressible by machine code. Pdp11 had 8 gen
36.
▲
by
bhawks
1y ago
Typed try/catch was tried in Java. The typing was not well liked and people voted with their feet to untyped exceptions. Euphoria turned to misery and golang emerged with returning errors explicitly. Overall I would say that the retur
37.
▲
by
bhawks
1y ago
Implicit parameter smuggling by any mechanism is just too much magic in my experience. Golang's context.Context solves the same problem, but explicitly in a way that has been widely adopted through their language ecosystem. That said -
38.
▲
by
bhawks
1y ago
The uncertainty is not in the US. The uncertainty is in the global reserve currency that is used to price every transaction and structure terms of every contract. The tariff panic is the straw that broke the back of an already over stressed
39.
▲
by
bhawks
1y ago
| For example, one time while working on my kernel module, I accidentally put --i instead of ++i in the iterator of my for loop. I inserted that module into my kernel to test it, and my mouse cursor disappeared, and my music stopped playing
40.
▲
by
bhawks
2y ago
The temporarily embarrassed millionaire meme is a punchline to a joke (look at those stupid greedy people they don't know how stupid they are). Inheritance taxes don't sit well for many reasons that are actually interesting to di
41.
▲
by
bhawks
2y ago
Calling setsid in pre_exec isn't exactly correct, you'd do this to daemonize a process in order to prevent it from getting signals from the process which spawned you exited or its terminal disconnected. If you read exit(3) you
42.
▲
by
bhawks
2y ago
Normally I'd stay away from job control posix APIs - but since HyperQueue is a job control system, it might be appropriate if the worker was a session leader. If it dies than all its subprocesses would receive SIGHUP - which is fatal b
43.
▲
by
bhawks
2y ago
So it is fine for OpenAI to train on data from artists and other creators who don't want their works used that way and are also hurt by AI making copycat works.... But it is bad when another AI company does the same. This is the weakes
44.
▲
by
bhawks
2y ago
The most prolific drug dealers who sold on silk road have served their sentences and are out of prison. Ross was given a life sentence without possibility of parole an incomparable sentence in relation to all other parties that were involve
45.
▲
by
bhawks
2y ago
Magic Wormhole gives you secure file transmission for free. Give one of the implementations a try: https://github.com/psanford/wormhole-william
46.
▲
by
bhawks
2y ago
There are plenty of contexts where you won't have a compiler today - embedded (optimize for space) and very security hardened deployments (minimize attack surface). Historically people used to sell compilers - so minimizing installatio
47.
▲
by
bhawks
2y ago
Files exist in a different universe of abstractions from language features. Heck a language should work in a universe where files don't exist at all. A file is a stream of bytes that a process can get by giving the os a string (name) t
48.
▲
by
bhawks
2y ago
This feels like a feel good headline for DoJ that doesn't materially impact the Search/Ads ecosystem nor improve things for the end consumer. Chromium exists - literally as a baseline for several other corporations to build a brow
49.
▲
by
bhawks
2y ago
There exists a ton of working code that does not fiddle with setenv and now would have memory leaks if they don't change their code? Plus I would now need to test if my stdlib requires freeing memory or not because if I try to free on
50.
▲
by
bhawks
2y ago
Yes the proper way to do that is execve, not by changing global variables in your parent process. https://man7.org/linux/man-pages/man2/execve.2.html Using setenv is mostly always a hack that relies on a bunc
51.
▲
by
bhawks
2y ago
FWIW the decision to leak memory on Mac actually goes back ~26 years to FreeBSD - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=5604 which OSX inherited. I would not be surprised that Windows setenv has BSD roots d
52.
▲
by
bhawks
2y ago
1) java shell starts 2) read getenv into a java hashmap 3) evaluate shell input - any sets update the hashmap, any gets read from the hashmap 4) when you get to a point where you need to exec a process you use the hashmap to pass envvars in
53.
▲
by
bhawks
2y ago
One of the things I love about gen ai is that all it's problems are solved with using more gen ai.
54.
▲
by
bhawks
2y ago
The browser should have been the distribution mechanism and user agent sandbox for mobile apps. Unfortunately both OS platforms owned their own browsers and would benefit from controlling app distribution under the guise of protecting app q
55.
▲
by
bhawks
2y ago
Spending nearly 1/6th of Japan's GDP to clean up 0.45% of the nuclear waste dumped into the ocean is worth consideration. If the earthquake had happened 20 years earlier (nothing on tectonic timescales) this wouldn't be up to
56.
▲
by
bhawks
2y ago
Even the rural and poor parts of California can't have cheap taco bell.
57.
▲
by
bhawks
2y ago
Western society today, but it didn't start this way. The nanny state is really only a couple decades old. Government has realized it can take significant powers if it can convince a subset of the populace that it is the only way to pro
58.
▲
by
bhawks
2y ago
According to the article there is no law in Australia regarding this - but EU and US (probably specifically California) laws cause them to offer the option to citizens of those countries.
59.
▲
by
bhawks
2y ago
What if the goal of the site is to monetize views so it is economically viable to produce content? Then GP's point towards 'it should work better' implies it works over the long-term and not a single interaction. I find ads f
60.
▲
by
bhawks
2y ago
Alternatively at request ingress time you could take all original header names and save them, and at egress time you could use that list to drive which keys to emit? Then you wouldn't need to maintain a list of what is internal and you
More ›