Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ncruces
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
31.
▲
by
ncruces
2mo ago
I have a Go library implementing double-double arithmetic (and also exponentials, logarithms, trigonometry...): https://github.com/ncruces/dbldbl Mostly useless, but was quite fun to write.
32.
▲
by
ncruces
2mo ago
Bluetooth is watch initiated, and only turns on 4 times a day (or when the user explicitly requests it with a button press). The pedometer is probably a special chip. You should compare this with the F-91W that gets 7 years on the same batt
33.
▲
by
ncruces
2mo ago
Right when I started building a custom F-91W with/for my kids based on sensor watch: https://github.com/joeycastillo/second-movement I'll take some solace in mine supporting lots more alarms (beep when school
34.
▲
by
ncruces
2mo ago
They're saying the software that makes the car start was more expensive than the software that allows you to play music in the car.
35.
▲
by
ncruces
2mo ago
Sure, but that's 12-18pm CET, which is hardly peak EU work hours. So what does "the majority" mean? 51%? Because that's just saying those 51% occur during EU/UK afternoons and east cost mornings.
36.
▲
by
ncruces
2mo ago
> Why on earth would I ever want to use SQLite if I have access to a sufficiently advanced code generator which can generate me a similarly high quality database system Because SQLite has 10k requirements that wouldn't even cross y
37.
▲
by
ncruces
2mo ago
On the one hand, yes. On the other, my country has just shut down 3G and 2G only stays because it's still used by emergency services. How long will 4G last? Longer than bluetooth and the Casio app? It'd be nice if something like t
38.
▲
by
ncruces
2mo ago
As I wrote: it does work great where it does work. I'd definitely have gone that route if it worked where I live. It's just that the marketing that it works "all around the world" falls pretty short, IMO. I kinda wish
39.
▲
by
ncruces
2mo ago
That “all around the world” leaves significant gaps: https://hagensieker.com/2019/11/17/multiband-6-what-is-it/ I had a weather station with an external antenna that could never sync, even during the nig
40.
▲
by
ncruces
2mo ago
Aren't you reading it the other way around? (I'm from another EU country where this rule existed) Other people have the right to rest on Sundays too, so you force as many activities to shutdown as possible to make it so. I don&#
41.
▲
by
ncruces
2mo ago
> More than 60% of my net worth is just from two stocks. I would hope you realize that your good fortune (aka luck) does not generalize to an entire population.
42.
▲
by
ncruces
2mo ago
Well adding the language features is a prerequisite to making these libraries possible.
43.
▲
by
ncruces
2mo ago
It's the length of an A4 sheet of paper (also, by extension, the size of many school books, backpacks and … rulers).
44.
▲
by
ncruces
2mo ago
The greatest thing about generics is … that they're not used much if at all. Which is a great way to make sure they're not overused, which in my experience is better than underuse.
45.
▲
by
ncruces
2mo ago
Maybe your heroes did. And no one gives a shit about the (18 million) Dutch, but we picked Bertha von Suttner.
46.
▲
by
ncruces
2mo ago
Maria Skłodowska-Curie was very helpful, at trying to solve #2 and #5 countries (by population) in one stroke. Good that the big 5 EU countries were simple enough to cover. But why are a Greek-American, and an - unknown to the majority of E
47.
▲
by
ncruces
2mo ago
No.
48.
▲
by
ncruces
3mo ago
Go doesn't rely on much C/C++, not recently at least. Particularly on Linux.
49.
▲
by
ncruces
3mo ago
Exactly. Faces are a terrible idea for a common currency shared by 21 countries. You have to pick one writer, good that the English left for good so Shakespeare's out, but how do the French feel about Cervantes vs. Victor Hugo? The Pol
50.
▲
by
ncruces
3mo ago
If you take that approach, Ukraine is still a special operation.
51.
▲
by
ncruces
3mo ago
I wrote this bump malloc that I use for very short lived Wasm modules: https://github.com/ncruces/wasm2go/blob/main/libc-gen/c/mall...
52.
▲
by
ncruces
3mo ago
The article should note this: it's important that you don't go adding other/all little endian platforms to that go:build line. The article is correct, but this code is only valid for platforms that allow unaligned access. You
53.
▲
by
ncruces
3mo ago
The forum post I linked to has a 3 line example: CREATE TABLE t1(a DATE, b JSON); PRAGMA strict=ON; INSERT INTO t1 VALUES(a,b) VALUES(?1,?2); You (or the author) can replace the non-existent `PRAGMA strict` with whatever editions
54.
▲
by
ncruces
3mo ago
That's certainly not the case for making STRICT tables the default. But figuring that out requires understanding how they are implemented, or reading the forum, which the author admittedly didn't do. The rest are assumptions about
55.
▲
by
ncruces
3mo ago
OK, but this: > This should be a nice middle ground which avoids breaking backwards compatibility, but lets the database engine move forwards and not be bogged down by its own history. Does nothing to address my criticism. Handwaving &
56.
▲
by
ncruces
3mo ago
I get a quota of GitHub Copilot for free. From all the models available to me I'm most happy with Kimi K2.7 (given the cost/performance).
57.
▲
by
ncruces
3mo ago
> The section "The solution: editions?" in the article addresses directly the point of existing data. I'm sorry, where? SQLite schema is stored as text. If you change the default interpretation of CREATE TABLE with a PRAGM
58.
▲
by
ncruces
3mo ago
This changes one default that "everyone agrees about" and which you can change with a compile time option: SQLITE_DEFAULT_FOREIGN_KEYS Then it argues for STRICT tables, recognizing that there are drawbacks without introducing a ne
59.
▲
by
ncruces
3mo ago
> Is a dumb sea mine that blows up everything somehow better than a smart sea mine that knows to not blow up sometimes? Yes. If smart mines lead to belligerents laying more of them because they're "safer."
60.
▲
by
ncruces
3mo ago
Stuff that cares about security fixes this, though: https://go.dev/blog/path-security The functions Command and LookPath look for a program in the directories listed in the current path, following the conventions of t
More ›