HNHacker News
TopNewBestAskShowJobs

qbane

420 karma · joined July 29, 2019

my public key: https://keybase.io/qbane; my proof: https://keybase.io/qbane/sigs/ULx4Dm2OvusekP9oFVCaRSrNh_WuRQaCoRCkBdx8Er4
submissionscomments
qbane··on Why should a Trace-ID be 128 bits? (A Surprisingly Long Answer)
tl;dr we reinvented UUID and it works well
qbane··on How do I inform Windows that I'm writing a binary file?
It's C library taking care of the "b" part for you according to the article.
qbane··on Rewriting Every Syscall in a Linux Binary at Load Time
There is even a table copy-pasted into a paragraph without noticing.

> What’s needed is something different:

> Requirement ptrace seccomp eBPF Binary rewrite Low overhead per syscall No (~10-20µs) Yes Yes Yes [...]

qbane··on Nothing Ever Happens: Polymarket bot that always buys No on non-sports markets
null hypothesis bot
qbane··on The End of Eleventy
Reminding me of the Shoelace [0] project, which was rebranded as Web Awesome. The original (v2) repository was then archived.

[0]: https://shoelace.style/

qbane··on The Last Quiet Thing
The watch is interactive! Nice detail
qbane··on GitHub is once again down
Productivity is finite. If you pivot entirely to the AI stack, you're going to lose bandwidth for everything else. It's an opportunity cost problem.
qbane··on Ask ChatGPT to pick a number from 1-10000, it generally selects from 7200-7500
A better example would be to use LLMs to generate passwords or secret keys. Then even if it looks random to human, the inherent bias would make it a security disaster.
qbane··on Making WebAssembly a first-class language on the Web
You can still obfuscate JS heavily and make a VM that executes also obfuscated code calling arbitrary browser APIs. At least In WASM everything is sandboxed so the attack surface is smaller.
qbane··on Hacker News.love – 22 projects Hacker News didn't love
cf. Kagi is a good take
qbane··on Anthropic's original take home assignment open sourced
Remember: It is a company that keep saying how much production code can be written by AI in xx years, but at the same time recruiting new engineers.
qbane··on Show HN: Pdfwithlove – PDF tools that run 100% locally (no uploads, no back end)
The "source" link at the footer seems to point to the author's GitHub profile, not source repository. The repo under it contains no code either.
qbane··on C++ std::move doesn't move anything: A deep dive into Value Categories
I read Effective Modern C++ years ago and was confused exactly like what you describe.
qbane··on A production bug that made me care about undefined behavior
icc's result is interesting too
qbane··on Show HN: Minimalist editor that lives in browser, stores everything in the URL
Just started making my own recently with CodeMirror 6 during holidays. No saving function for now: https://qbane.github.io/cgm
qbane··on Fabrice Bellard Releases MicroQuickJS
Not likely:

> It only supports a subset of Javascript close to ES5 [...]

I have not read the code of the solver, but solving YouTube's JS challenge is so demanding that the team behind yt-dlp ditched their JS emulator written in Python.

qbane··on Making Google Sans Flex
To declare "open source", you have to provide a way for the public to get access to the source code. But there seems to be none at least for the time being.
qbane··on Put a ring on it: a lock-free MPMC ring buffer
That is a fair assessment. Maintaining read/write pos and peek them at every operation is a big performance hit. The impact is amplified if each invocation needs a syscall. That is exactly what futexes address: Allowing spin locks to remain in user space and avoid entering the kernel as long as contention is low.

In JavaScript, atomic operations are relatively lightweight, so their overhead is likely acceptable. Given that, I am open to adjusting my code to your suggested approach and seeing how it performs in practice.

qbane··on Put a ring on it: a lock-free MPMC ring buffer
By a quick glance, yes, this is what I want: a channel to communicate between processes via a piece of shared memory, protected by a pair of futexes.

In JS ecosystem, buffers that allow data loss is more common (aka ring buffers), but ringbuf.js [1] is the only complete implementation to my knowledge. In my use case on I/O between WASM modules where data must be transferred as-is, the process must block on buffer overrun/underrun in a synchronous manner. Therefore a circular buffer is required. I could not find such a niche library written in JS, so I decided to bite the bullet and reinvent the wheel [2].

[1]: https://github.com/padenot/ringbuf.js

[2]: https://github.com/andy0130tw/spsc

qbane··on Put a ring on it: a lock-free MPMC ring buffer
I wrote my first SPSC circular buffer implementation in TS upon reading the previous post on futex [0] from the same author. It was more intricate than it had seemed, until I finally sat down and wrote my own code.

[0]: https://h4x0r.org/futex/ discussion: https://news.ycombinator.com/item?id=44951563

qbane··on Shai-Hulud Returns: Over 300 NPM Packages Infected
`--ignore-scripts` should be the default behavior.
qbane··on Boa: A standard-conforming embeddable JavaScript engine written in Rust
I really appreciate the clear and detailed project description, the only concern is the title on HN. Failing on tests is fine, especially when it demands huge efforts to triage and reiterate on the project structure for them.
qbane··on Boa: A standard-conforming embeddable JavaScript engine written in Rust
If you mean "latest" ECMAScript then that is true. Even latest gcc or clang does not support all features from C++23: https://en.cppreference.com/w/cpp/compiler_support.html.
qbane··on Boa: A standard-conforming embeddable JavaScript engine written in Rust
I am not meant to be harsh, but note that it fails on a small number of test cases, on v0.21 that is ~900 out of ~50k. Strictly speaking it cannot be described as standard-comforming unless there is some reason behind every failed test. A better way to strive on standard conformance, like QuickJS takes, is to pin down the ecma262 revision and make it 100% compliant.
qbane··on What Dynamic Typing Is For
Nitpick: SQL is a programming language. But for most CRUD tasks you should rely less on SQL's programming capabilities until processing information is too expensive outside the SQL server/engine. The advice is also for maintainability.
qbane··on The least amount of CSS for a decent looking site (2023)
I prefer the following to ensure the interoperability of external libraries:

`body, html { box-sizing: border-box } * { box-sizing: inherit }`

qbane··on I’m Not a Robot
I reply "..." each time and it works similarly.
qbane··on I’m Not a Robot
Cannot even park a Waymo… Robots are definitely better at this than me
qbane··on Next.js is infuriating
As a JavaScript developer, combining/consolidating middlewares manually just defeats the design of middleware. I would rather call it a callback function.
qbane··on The web does not need gatekeepers: Cloudflare’s new “signed agents” pitch
Then that is a good reason to deny the requests from those IPs
← PreviousPage 2 of 4Next →