HNHacker News
TopNewBestAskShowJobs

jjnoakes

2,661 karma · joined June 30, 2014

submissionscomments
jjnoakes··on NASA inspector general gives damning assessment of Boeing's quality control
The underqualified non-diversity hire is also a thing. There is no reason to bring identity into it. Just discuss underqualified workers in general.
jjnoakes··on Please do not attempt to simplify this code
The why can also go out of date. Maybe not as frequently? I don't have a great intuition for the ratio, but it is certainly more often than never.
jjnoakes··on Clang vs. Clang
They are different by definition.
jjnoakes··on Clang vs. Clang
> The standards left things undefined in the hopes that the language would be more widely applicable and implementers would give those areas thought themselves and decide the right thing.

That sounds like implementation-defined behavior, not undefined behavior.

jjnoakes··on A Clone of Deluxe Paint II Written in Python
The art is great on its own, but knowing the constraints it runs under and how one image can look so different, or even animated, based solely on the palette, elevates the art to a whole new level.
jjnoakes··on Microsoft removes documentation for switching to a local account in Windows 11
Any enterprise install I've ever used has the annoying stuff removed. Small businesses are most likely the ones suffering though.
jjnoakes··on Circle C++ with memory safety
Care to share your Vector implementation that is "stack safe" and "UB safe"?
jjnoakes··on Circle C++ with memory safety
Does Carbon have any undefined behavior? Some of the wording in their goals document suggests that they do/will, but it isn't clear to me.
jjnoakes··on Exact binary vector search for RAG in 100 lines of Julia
Some (not all) of your questions may be answered by the linked article near the top of the submitted article, which goes into more detail about how much is lost quantizing to 1 bit (and 1 byte): https://huggingface.co/blog/embedding-quantization
jjnoakes··on How to recover lost Python source code if it's still resident in a running inter (2017)
I have a similar habit. I usually do "echo rm ..." or "echo destructive command ..." first, check the output (so wildcards are expanded, etc), and if I'm happy I bring the command back in the history and edit out the echo.
jjnoakes··on Show HN: Serverless collaborative notion-level note editor using CRDT in GO
I think plain text files also integrate nicely with other tools. Desktop search, external editors, etc.
jjnoakes··on Small Things
The box isn't the only justification for the higher price. It's just an example. If apple cares that much about the box, imagine the effort they put into the rest of the hardware, software, and experience.

I'm not an apple user but it is obvious to me that apple users aren't paying more just for the box.

jjnoakes··on Borgo is a statically typed language that compiles to Go
What's the license?
jjnoakes··on Did we lose our way in making efficient software?
Once I get a project to "actual customers" I don't mind paying and signing my binaries.
jjnoakes··on Why Zig When There Is Already C++, D, and Rust?
The problem with blocks is that you can forget them.
jjnoakes··on Why Zig When There Is Already C++, D, and Rust?
That still doesn't show you at the call site.
jjnoakes··on Winding down Google Sync and Less Secure Apps support
It would be if Google's app password hash database was leaked.
jjnoakes··on The surprising genius of sewing machines [video]
For me the realization that the top thread's loop goes AROUND the bottom thread's entire spool is what made it click for me originally.
jjnoakes··on Veritasium: The SAT Question Everyone Got Wrong [video]
I should have been more specific. I didn't mind that part as a teaching aid in general, but I thought it was contrived as a possible explanation for what the question authors expected students to visualize when they made the correct answer 3.
jjnoakes··on Veritasium: The SAT Question Everyone Got Wrong [video]
I'm not convinced that the intended meaning was to consider a rotating reference frame. I think it was simply an oversight that the straight-line answer and the around-a-circle answer aren't the same. A rotating reference frame is one way to explain that oversight, but it isn't the only one.
jjnoakes··on Veritasium: The SAT Question Everyone Got Wrong [video]
I actually didn't think that part belonged in there. Considering a rotating point of view seemed contrived to me.
jjnoakes··on Veritasium: The SAT Question Everyone Got Wrong [video]
The video does go further - it contains some interesting content around how this concept relates to the earth's orbit around the sun, the discrepancy between the duration of an earth day and a 360 degree rotation about the earth's axis, and why astronomy days are not the same length as earth days.
jjnoakes··on Japan to crack down on Apple and Google app store monopolies
I've downloaded just the command-line tools before and used 'sdkmanager' to list and download sdk versions and virtual machines, so it is definitely doable without Android Studio, although it isn't obvious (or at least it wasn't to me).
jjnoakes··on Show HN: Convert any screenshot into clean HTML code using GPT Vision (OSS tool)
Sorry if I'm being dense, but how is this quicker than using the original site's HTML and css directly?
jjnoakes··on Firmware Software Bill of Materials (SBoM) Proposal
> Back in the day, we used to embed strings into the translation units that would report the original name and version of the file.

We still do this today. We rely on some tooling-added information and add our own custom information on top (git hash, hash of direct dependencies, compiler version and flags, etc).

jjnoakes··on CTF Writeup: Abusing select() to factor RSA
select() ought to just fail with EINVAL if nfds is too large. There's probably an argument for the macros as well to fail by default if the file descriptor given is too large.
jjnoakes··on MISRA C
Lots of replies kind of missed my point (my fault, probably) - I think there are cases where 'int' is the correct type to use, and cases where it is not. I think using 'int' everywhere is probably a mistake, and using 'int' nowhere is probably also a mistake.

Sometimes you are working within the guaranteed bounds of an 'int' in the C standard, so portability isn't an issue. Sometimes you are mixing different types and want to capture intermediate values in the promoted type, which is dictated by the C standard. Sometimes you want to use the native machine word for a good reason. And sometimes it is just easier to read and reason about (printf-like conversion specifications, code that interfaces with POSIX APIs frequently, etc).

jjnoakes··on Why Golang instead of Rust to develop the Krater desktop app
The best advice I can give is: go for it, and if you get stuck or feel like something in Rust is more difficult than it should be, reach out for help. Once in a while you may really be hitting an unpolished piece of the language, but in most cases I find that expert advice can clear up a lot of pain and make things much more ergonomic across the board. Having the proper types and lifetimes at API boundaries, for example, can make a big difference, and folks new to Rust don't often have the right intuition for some of that stuff.
jjnoakes··on MISRA C
> Well that is the correct thing to do.

Is it? I can think of quite a few cases where using 'int' is fine; why is that a problem?

jjnoakes··on Banging errors in Go
I wear two hats when I develop in go. One is for robust long-lived systems and for those I don't mind verbose error handling. The other is small quick scripts and for those I really wish I had a non-verbose option.
← PreviousPage 2 of 34Next →