Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
koito17
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
151.
▲
by
koito17
2y ago
Here's a static check Rust's Box<T> offers over C++'s std::unique_ptr<T>. The following program is obviously incorrect to someone familiar with smart pointers. The code compiles without error, and the program cras
152.
▲
by
koito17
2y ago
An approximate 20% reduction in bandwidth looks significant to me. I think the problem here is that the chart uses a linear scale instead of a logarithmic scale. Looking at the data, I'm inclined to agree that not much CPU is saved, bu
153.
▲
by
koito17
2y ago
Until recently (2023), the type inference was very weak and did not work with higher-order functions (map, filter, reduce, etc.). As a result, Typed Clojure was practically unusable for most applications. That has changed as of last year. F
154.
▲
by
koito17
2y ago
I have slowly been getting into Rust for some personal projects. Already ported one of my Clojure applications to Rust and really enjoy the the tooling (and resource efficiency!) compared to Clojure. Would like to try Axum, but couldn'
155.
▲
by
koito17
2y ago
With tools like ogen[1], one can take a single OpenAPI document and generate server code with a static router, request/response validation, Prometheus metrics, OpenTelemetry tracing, and more out of the box. It can also generate client
156.
▲
by
koito17
2y ago
Homebrew has a Linux variant, but I assume almost nobody uses it. Personally use a Mac with Nix, and so do many of my coworkers. Assuming Homebrew, even for a Mac user, leaves a bad impression on me.
157.
▲
by
koito17
2y ago
Personally use Porkbun since Namecheap's API is poorly-documented and they attempted a KYC audit for purchasing a $100 domain. I am fine with the identity verification, but their ticketing system seems to have sent all of my e-mail to
158.
▲
by
koito17
2y ago
JSX syntax doesn't change every month either. React itself, as a library, has a great deal of backwards compatibility. What does churn is the tooling (e.g. abandoning Webpack for Vite). But the actual API and syntax has remained virt
159.
▲
by
koito17
2y ago
Practically all Japanese BBS in use today are written in Perl. They are either proprietary CGI scripts or a proprietary fork of an open-source software like WebPatio[0] and Zero-channel Plus[1]. [0] https://www.kent-web.com/
160.
▲
by
koito17
2y ago
> they are just bad customers who they will always have a hard time making money from The iPhone 12 mini still ended as one of the top 10 smartphone models sold in January 2021.[0] There was also a new iPhone SE model that was half the p
161.
▲
by
koito17
2y ago
Displays with a wider color gamut than sRGB -- the average of a sample of early-to-mid 90s CRT displays -- have existed for decades now. Not to mention, Mac OS X supported color management (and exporting color profiles) since its first publ
162.
▲
by
koito17
2y ago
How does this avoid Cgo? In the case of Ltk (FFI-free, Common Lisp bindings for Tcl/Tk), I know that the library communicates strings to a Tcl interpreter. This means no FFI is involved, but it does mean the user must have Tcl -- speci
163.
▲
by
koito17
2y ago
> where this does not exist Because JavaScript runs an event loop on a single thread. It's akin to using GOMAXPROCS=1 or -Dclojure.core.async.pool-size=1 . There may be semantic differences depending on the JavaScript engine, but in
164.
▲
by
koito17
2y ago
More importantly, Rust has the notion of a result type and it is designed to be both generic and composable. A problem I often face in Go and TypeScript code is code that ignores errors, often unintentionally. For instance, many uses of J
165.
▲
by
koito17
2y ago
Assuming "function that blocks" means "the carrier thread must wait for the function to return" and "the whole thing" means the carrier thread, then core.async doesn't really have this issue as long as e.g
166.
▲
by
koito17
2y ago
Assuming "blocking" refers to parking goroutines, then blocking is possible. (let [c (chan)] ;; creates channel that is parked forever (go (<! c))) The Go translation is as follows. c := make(chan inter
167.
▲
by
koito17
2y ago
As the other commenter pointed out, this isn't restricted to strongly-typed functional languages. Clojure has core.async, which implements "goroutines" without any special support from the language. In fact, the `go` macro[1]
168.
▲
by
koito17
2y ago
Ask for inflections separately. For instance, in many Japanese forms, there are dedicated fields for the name and the pronunciation of the name. There are possibly multiple ways to read a name (e.g. 山崎 is either やまざき or やまさき). It is better
169.
▲
by
koito17
2y ago
The penultimate paragraph of the article really shows its age. When there are unclear or conflicting rules ... [y]ou can end up with hilarious games like formatting tennis ... Back then, formatters were rarely used, if at all. The ma
170.
▲
by
koito17
2y ago
Back then, C was one of a few viable choices. The original implementation of the 2ch BBS was written in C.[0] Later revisions used Perl. Between 1998 and 2001, the site was a widely-used BBS and written in C. [0] https://github.c
171.
▲
by
koito17
2y ago
The first definition in [0], that is: a person who has strange or unusual ideas and beliefs [0] https://dictionary.cambridge.org/dictionary/english/crank
172.
▲
by
koito17
2y ago
Tip: use the patch format feature of GitHub to view people's e-mail addresses. Looking at the commit log, the initial commit caught my attention. The author of the initial commit does not link to any particular account on GitHub. See
173.
▲
by
koito17
2y ago
I fear this will be as adopted as PDF/2.0, the first non-free (and ISO) specification of the PDF format. Hopefully the draft versions are freely available somewhere and closely resemble the final product^W specification.
174.
▲
by
koito17
2y ago
Before HTTP became popular, there was another protocol for accessing remote documents on the internet. This protocol was called Gopher. Gemini is an extension of the Gopher protocol that includes things like TLS. Gemini exists separately fr
175.
▲
by
koito17
2y ago
Well, at least one CEO is being honest about the owning class's end goal with AI: a new source of cheap labor, but this time without entities that can negotiate.
176.
▲
by
koito17
2y ago
Have people considered frameworks implementing JAX-RS instead? Or does the breakage happen specifically in extensions to Spring? The only inconvenience I have experienced upgrading a Quarkus backend is renaming javax.* package imports to ja
177.
▲
by
koito17
2y ago
You mean Team AiR ;) Between 2005 - 2010, many studios also had "a lot of water" in their computers, so to speak. (Referring to Team H2O) Incidents like these are unfortunately common among famous electronic music producers. Your
178.
▲
by
koito17
2y ago
Not related to Mastodon, but in the case of Matrix, the server software ranges from "runs on a raspberry pi with zero issues" (Conduit) to "even with 16 GB of RAM, federating with a large enough room will exhaust Python'
179.
▲
by
koito17
2y ago
"Secure Java" is something I recall hearing decades ago. No idea if it still exists. The more important thing to consider, however, is the fact that CLR, JVM, etc. provide internal memory safety whereas Wasm runtimes don't.
180.
▲
by
koito17
2y ago
What disqualifies "the JVM" (usually referring to HotSpot implementations) from being considered open source? Are you talking about OpenJ9 or something else?
More ›