Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
koito17
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
koito17
2y ago
Even if one could verify grammatical correctness, there are many ways to produce unnatural Japanese phrases. To give an easy example: 9つ (9 things) is natural, but 10つ sounds extremely strange. However, 10個 sounds fine. When the number is l
122.
▲
by
koito17
2y ago
In my experience, at least with Clojure, it's much more convenient to serialize XML into a map-like structure. With your example, the data structure would look like so. {:tag :greeting :attrs {:href "#" :attr &qu
123.
▲
by
koito17
2y ago
That works because the length field acts as a fill pointer. In Common Lisp, it's also a common technique to empty an array in-place by setting the fill pointer to 0. The concept is quite old! In most cases, there isn't a beneficia
124.
▲
by
koito17
2y ago
Earlier today, I found a bug in Discord where one of the login forms in Japanese uses 「はい」 ("Yes") as the label for the "Log in" button. The button in question is right beneath a label stating 「パスワードをお忘れですか」("Forgot
125.
▲
by
koito17
2y ago
Although it's a very lazy practice, this is exactly how many Japanese sites (and internet services) fight against bad actors. In short, they block non-Japanese traffic and data center IPs. I expect these measures to become insufficient
126.
▲
by
koito17
2y ago
Anonymous functions are not primitive values, so JavaScript passes them as pointers. React uses strict equality when comparing props, so non-primitive values are compared with pointer equality. The useCallback hook allows one to cache anony
127.
▲
by
koito17
2y ago
At a previous job, the frontend was a ClojureScript codebase dating back to around 2013, with a React-based UI. The codebase survived a decade of major upgrades to ClojureScript and React, and many chunks of code in git blame dated back t
128.
▲
by
koito17
2y ago
The purpose of `unsafe` is for the compiler to assume a block of code is correct. SIMD intrinsics are marked as unsafe because they take raw pointers as arguments. In safe Rust (the default), memory access is validated by the borrow checker
129.
▲
by
koito17
2y ago
The file viewer is especially strange. Scrolling is janky on iOS (presumably they are trying to control scroll position and this interferes with Safari's scroll bar). Last time I looked into the file viewer, I believe it was rendered a
130.
▲
by
koito17
2y ago
> The file is 142k lines line that GitHub would have to turn into HTML and the browser would have to render immediately. GitHub's new, React-based code viewer aggressively virtualizes the rendered text. Only the lines visible in the
131.
▲
by
koito17
2y ago
> Google at least gave you the option ... Not sure if Google voluntarily gave users the option. Google was forced to give users the option since Blink is a derivative of the LGPL-licensed WebKit, which is itself a derivative of the LGPL-
132.
▲
by
koito17
2y ago
I wouldn't call VSCodium an equivalent[0]. Please note that some Visual Studio Code extensions have licenses that restrict their use to the official Visual Studio Code builds and therefore do not work with VSCodium. ... In
133.
▲
by
koito17
2y ago
Time to archive as many links as possible. I know some people who have used Mathb.in to draft (or publish!) short, insightful articles on various topics in mathematics. Since I last read these articles as an undergraduate student, it may ta
134.
▲
by
koito17
2y ago
Everything seemed fine at around 9:00 AM PST (UTC-8). A few minutes later, I made the mistake of reloading Slack after a few messages began failing to send. Haven't been able to access my company's Slack workspace since. At the ti
135.
▲
by
koito17
2y ago
Seconded. Zed makes it trivial to provide entire codebases as context to Claude 3.5 Sonnet. That particular model has felt as good as a junior developer when given small, focused tasks. A year ago, I wouldn’t have imagined that my current u
136.
▲
by
koito17
2y ago
In the case of Common Lisp, yes. Other lisps (e.g. Clojure) don't really have interactive debugging, value inspection, live disassembly, or anything like the condition system (which allows programmatic access to the debugger and automa
137.
▲
by
koito17
2y ago
The article fails to mention whether Scala can ensure code is deterministic and hermetic. Starlark code is deterministic and hermetic, but the article never mentions this. Unfortunately, Starlark does not have static typing, but I think typ
138.
▲
by
koito17
2y ago
> why not Clojure? Common Lisp implementations like SBCL have static typing, performance, instant (and effortless) compilation to native machine code, and so on. No need to deal with Leiningen or copy-pasting a deps.edn / build.clj
139.
▲
by
koito17
2y ago
FLAC allows embedding a seektable but encoders rarely emit one in practice. Since FLAC boils down to a mix of verbatim subframes and linear predictive coding (specifically, polynomials with warmup samples or Rice coding), non-verbatim subfr
140.
▲
by
koito17
2y ago
I'm not familiar with Cursor, but I've been using Zed with Claude 3.5 Sonnet. For side projects, I have found it extremely useful to provide the entire codebase as context and send concise prompts focusing on a single requirement.
141.
▲
by
koito17
2y ago
Mostly anti-Chinese bias from Americans, Western Europeans, and people aligned with that axis of power (e.g. Japan). However, on the Japanese internet, I don't see this obsession with taboo Chinese topics like on Hacker News. People on
142.
▲
by
koito17
2y ago
The libraries your "production code" depends on have types just as complex as the one in TFA if not even more. Based on this judgement, I'm willing to bet the author has more "actual knowledge" of TypeScript than yo
143.
▲
by
koito17
2y ago
Renaming utilities like flex-shrink-* makes existing LLMs emit deprecated code today and broken code tomorrow. I wonder what the rationale is behind the renaming of various utilities (e.g. shadow-sm -> shadow-xs, flex-shrink -> shrink
144.
▲
by
koito17
2y ago
> A js programmer can get around it by setting up a ref and then using the reference to set innerHTML without the word dangerously appearing. If DOM nodes during the next render differ from what react-dom expects (i.e. the DOM nodes from
145.
▲
by
koito17
2y ago
Distributing a single uberjar, whenever possible, is generally a good idea IMO. One major reason I like the JVM as a platform is that I don't need to mess with containers or native images. To reduce burden of deployment, native images
146.
▲
by
koito17
2y ago
> I only have a handful of family users but I could still benefit from the additional vulnerability proofing of Rust Conduit[1] seems to predate Synapse Pro and I've ran it for a short while. It consumes about 32 MiB of RAM for a se
147.
▲
by
koito17
2y ago
> most Kubernetes deployment don't even run containerd anymore I assume you mean moby, which was used via dockershim in Kubernetes until support was removed in v1.24. I can't find a reliable source, but I believe containerd, fo
148.
▲
by
koito17
2y ago
This was indeed one mitigation used by a site to prevent bots hosted on AWS from uploading CSAM and generating bogus reports to the site's hosting provider.[1] In any case, I agree with the sarcasm. Blocking data center IPs may not hel
149.
▲
by
koito17
2y ago
Agreed that UIs generally provide a better UX for Git. I use Magit and doing things like "abort cherry-pick" is discoverable in the interface itself and uses the exact same shortcut as the other "abort X" operations. I
150.
▲
by
koito17
2y ago
I've been keeping an eye on radicle[1] but the documentation for setting up a peer and web frontend is a bit complex. It seems to offer what you're describing: a "decentralized" Git frontend with issue tracking. Seems to
More ›