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 Offline UX Patterns
The names of patterns are extremely useful when you want to express to your coworkers "just update the view first and revert if the API fails" concisely.
qbane··on The First HTML LSP That Reports Syntax Errors
Like what most linters do? Linters are supposedly more strict on the syntax so that programmers can enforce their own rules.
qbane··on Old GitHub Feed (Fork)
This is a self promotion, also a fork based on Gerrit0's work [0]. But I think there are still people thinking the old feed more informative. This fork features a fancier loading banner and an improved caching mechanism by account UID.

[0]: https://news.ycombinator.com/item?id=37433652

qbane··on Toasts are bad UX
To me, toast is a mobile-first design concept, where all information on screen can be perceived in a glance. The assumption which supports this concept is no longer true on a larger screens.
qbane··on JavaScript garbage collection and closures
Can reproduce in latest Firefox and Chromium. I wonder whether this is an actual leak or there is a good reason for JS engines to retain the array buffer.
qbane··on CalcGPT
The two sliders at the top are the best. The most customizable calculator to my knowledge.
qbane··on SQLite: 35% Faster Than the Filesystem
> As my app matured, I found that I often wanted hierarchical folder-like functionality.

In the process of prototyping some "remote" collaborating file systems, I always wonder whether it is a good idea maintaining a flat map from path concatenated with "/" like an S3 to the file content, in term of efficiency or elegancy.

qbane··on A Linux kernel syscall implementation tracker
Yes. My primary use case was to allow only some syscalls and block all others. Until I had to support multiple architectures and executables having different runtime behavior. I ended up attaching an debugger and searching every syscall I met one by one. My understanding to kernels then was not enough to reduce the development friction.
qbane··on A Linux kernel syscall implementation tracker
I wish this site could have existed earlier when I was writing eBPF filters for my sandbox and had to check how specific syscalls were implemented in different archs here and there. Thanks for your great work.
qbane··on Syd the perhaps most sophisticated sandbox for Linux
I found this document hard to follow. Perhaps the repo is more informative: https://gitlab.exherbo.org/sydbox/sydbox
qbane··on Detecting a PS2 Emulator: When 1*X does not equal X
That is why emulating, when targeting 100% accuracy, is a craftsmanship in our industry. Not only do you need to know each and every quirk the original hardware/software has, but you also need to replicate it, however peculiar it is. Consider the potential performance impact if itself is not challenging enough.
qbane··on Mp3tag – Universal Tag Editor
I remembered that taking care of metadata of 1000+ mp3 music and syncing them between music players and backing up with CD-RWs were time filler. They still are, but I enjoyed doing so. Digital garden in web 1.0 era I could say.
qbane··on Change the default temp file prefix to be "SQLite" spelled backwards
Previous discussion: https://news.ycombinator.com/item?id=36302805
qbane··on The problem with new URL(), and how URL.parse() fixes that
Thanks for the reference. I am surprised that Java already has a solution and the choice of keyword "final" is a nice one.
qbane··on The problem with new URL(), and how URL.parse() fixes that
I kinda agree that `new URL()` need not bail out when the URL is invalid. Both practices exist in the spec: `new Date('foo')` returns invalid date, `parseInt('foo')` returns NaN, while `new Array(-1)` throws a `RangeError`. Probably there is a need of URL instances for invalid ones? Then we come back at an Either<x, y> return type.

However, it is the `try...catch` pattern that messes up with the `const`, not the URL constructor. It is very annoying every time when I have to wrap an existing block with a try...catch, and inevitably lose the const-ness to some variables, unless I wrap everything again into a function and `return` in the try block if things go normally.

qbane··on You probably don't need to validate UTF-8 strings
My guess is that the reality is "98% of websites are valid UTF-8 documents". A large portions contain only ASCIIs so they happen to be, just indistinguishable with truly UTF8 encoded ones until they break.
qbane··on The last days of my type checker for JavaScript
JavaScript is inherently untyped. Either the programmer tries to be very careful to make it type safe, or someone invents a programming language that can only compile to a sound subset of it. TS heads for the latter way. But things quickly go out of control when you introduce dependencies, and even a dependency without interface file can pollute your codebase with "any". I do not think TS would be mainstream if there were not many packages on npm that had included a type definition. On the other hand, a type checker/inferencer that "does less things" like Jedi has proved great success in Python community.
qbane··on The last days of my type checker for JavaScript
This project, along with TernJS, really inspired me to dig into the wild world of type inferencing of JavaScript with minimal annotation. TypeScript, or even JS with JSDoc comes with learning overhead. Pure JavaScript projects often cannot be easily typed in TypeScript's way without major refactoring, and sometimes a lightweight editor plugin suffices to provide enough insight for ease of development. There is no one-size-fit-all solution, and I wonder how far can something like context-aware autocompletion can go without TypeScript.
qbane··on Redis re-implemented with SQLite
SQLite does allow one to keep the entire database in memory: https://www.sqlite.org/inmemorydb.html
qbane··on File Formats Debunk – Why you should stop rendering to PNG (and use EXR instead)
I don't think that any random image format can really replace PNG for web in terms of browser support...
qbane··on S32 Unix Clock
I tend to imagine the clock wraparound when the shortest needle points to the top. Initutively this is doable by speeding up that needle by a factor of two. But of course the there would be another set of ticks.
qbane··on A currently maintained fork of SSHFS
I think SFTP is a good but underrated protocol, when mirroring a file tree bidirectionally makes more sense than cloning one to another. Having forked and studied from SSHFS' code, I am currently maintaining a list of resources and some personal thoughts on https://hackmd.io/@q/sftp-over-ws.
qbane··on HDR QR Code
I mean that a designer may think, hey just give me the brightest white, but the most obvious way to do so is not “correct”. But is it impossible? No. It is just insane.
qbane··on HDR QR Code
It's when I realize that you cannot simply have the screen (of Apple devices at least) display "white" by demanding a color "white".
qbane··on If I died tomorrow, how long would my webapp keep running?
How about the bank or even the national finance? Although more unlikely then the cloud provider or the DNS registrar (verification needed), the bank or the fiat could also cease to function. I would like to remark that, a single point of failure also applies for financial systems, but often overlooked by people.
qbane··on Fcitx5: Add ibus im module support. (2017)
The commit message is commenting with: "I'm pretty unhappy with the situation. So, in order to fight against the evil, we need to become the evil."
qbane··on Prevent DoS by large int-str conversions
Yeah, we must prevent DoS at all costs. It seems that Python should not have integers at arbitrary size for "performance" reason in the beginning. Aren't int32/int64/int128 nice? Number of operations are all bounded. We should stick to them.
qbane··on Ask HN: GitHub caches acting up in region BOM?
Me too
qbane··on Sshfs Is Orphaned
Shameless plug: I used sshfs at work for about 3 years, and I made a fork for myself, featuring a persistent cache layer on metadata caches... I really appreciate the project, but I am not confident enough to maintain it.

https://github.com/andy0130tw/sshfs

← PreviousPage 4 of 4