Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mst
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
241.
▲
by
mst
2y ago
Yeah, 'int is iterable' triggered "oh that's cute!" immediately followed by "... and the exact sort of cute I often find irresistably tempting myself and then regret later." My current thing in progress ha
242.
▲
by
mst
2y ago
Separate from anything else, I'm ... concerned ... at the idea of ints being iterable, because it seems like something I'd be much more likely to invoke accidentally than intentionally and then wonder wtf my program was doing. I&#
243.
▲
by
mst
2y ago
I don't know the platform and would -guess- that this won't actually help, but it's sufficiently fascinating I thought I'd share anyway: https://trout.me.uk/lisp/vlist.pdf (roughly "stitching t
244.
▲
by
mst
2y ago
Eh? Of course it is, that's exactly why I want to see the system replaced. What does this have to do with my agreeing with you that approval voting wouldn't confuse people?
245.
▲
by
mst
2y ago
The deposit system in the UK seems to work fine for us. It's not enough (£500 currently) to be a meaningful expense to any candidate actually trying to win, but it's enough friction for 'fun' campaigns that we get enough
246.
▲
by
mst
2y ago
Fond though I am of ranked choice conceptually, there are a lot of people I would not enjoy (nor be particularly successful at) talking through voting under such a system. Given especially US multi-race ballots, I find it a lot harder to se
247.
▲
by
mst
2y ago
libpq normally connects to a unix socket by being given 'localhost' as the hostname or no hostname at all. IIRC it'll also accept a path -as- a hostname but I'm guessing from your phrasing the field validation won't
248.
▲
by
mst
2y ago
If you want to see something truly fascinating, take apart https://logtalk.org/ - it implements an OO system for prolog which gives you all sorts of advantages (the least of which being a not-terrible way of getting namespa
249.
▲
by
mst
2y ago
I've been eyeing https://neutralino.js.org/ since if I'm going to make the app render right on browsers then relying on the same code via webviews likely isn't (much) more portability effort.
250.
▲
by
mst
2y ago
Without expressing an opinion on Flutter as such, it's worth remembering that Google is a big enough organisation that even -some- internal apps being built using it is quite a commitment, and it not having spread further internally co
251.
▲
by
mst
2y ago
Sorry for the silly question, I found the standardDevReloader stuff, hadn't realised it was built in. Not what I was hoping for since I want per-library reloading, but for the goals of mininext that's probably overkill anyway.
252.
▲
by
mst
2y ago
Sure. This was wrt "when using bun" - i.e. somebody else might prefer to just whack web-dev-server into place as a lightweight option for them. mininext is a neat idea and I plan to read through the code (do you have a preferred &
253.
▲
by
mst
2y ago
My general answer to this is to make sure whatever thing I'm building understands Pg COPY TSV syntax - specified by https://www.postgresql.org/docs/current/sql-copy.html under 'text format' - and ex
254.
▲
by
mst
2y ago
I may be wrong here but I think https://modern-web.dev/docs/dev-server/overview/ could do server-with-HMR for a Bun .js tree? (unsure how you'd handle .ts there, sorry, still caffeinating)
255.
▲
by
mst
2y ago
Native as in "if you import a .ts file it Just Works" I'm afraid. Roughly it strips the TS type syntax and hands the result off to JavaScriptCore - so it's not 'native' in the sense you might have been hoping f
256.
▲
by
mst
2y ago
bun is a completely separate piece of code - it uses JavaScriptCore rather than v8, there's no 'wrapper' involved. I strongly suspect that what you saw was from running a script with a #! line that specifies node, because bun
257.
▲
by
mst
2y ago
Yep, with exactly the same semantics as perl5's 25+ years old 'my' - foreach my $x (@input) { push @callbacks, sub { $x }; } works how you'd expect. I was spoiled by this and driven nuts by function level sc
258.
▲
by
mst
2y ago
The key thing (as I understand it) is that each process naturally has a relatively small private set of data, so Erlang can use a stop-the-process semispace copying collection strategy and it's fast enough to work out fine. Since nothi
259.
▲
by
mst
2y ago
I said "can still be" because, yes, it's a trade-off. I guess if you're trying to give a rule of thumb to juniors, "always have an auto-inc key in case you've misjudged whether the natural key is a good idea&qu
260.
▲
by
mst
2y ago
Using a surrogate UUID for communicating with the outside world is often very useful. This is true for an internal PK that's an auto-inc id as well as for natural keys, though. Using a natural PK -inside- your own database can still be
261.
▲
by
mst
2y ago
A problem we've been having since the medireview age.
262.
▲
by
mst
2y ago
It's in the annoying category where it can be used as a slur but also gets used as not-a-slur, including but not limited to by the people it describes. Locally (north west england) people generally use "traveller" as a desc
263.
▲
by
mst
2y ago
MongoDB were the first major player to do that (that I know of, at least) back in 2018 - see https://www.mongodb.com/legal/licensing/server-side-public-l... or hit google for a plethora of people being angry about
264.
▲
by
mst
2y ago
> PostGraphile compiles GraphQL directly to SQL. The SQL is "custom" in that it's specific to the GraphQL operation Yes, that's why I said GraphQL and -corresponding- SQL, I was hoping to find something that showed me
265.
▲
by
mst
2y ago
postgraphile does look like it'll handle basic cases pretty nicely but I've gone through the docs and didn't find anything like an explanation of what SQL queries it ends up mapping to - do you happen to know if there's
266.
▲
by
mst
2y ago
Seems like at that point exposing each query as an OpenAPI endpoint would achieve pretty much the same thing. Then again having GraphQL as the definition for them is probably still not bad, I'll just have to write something that conver
267.
▲
by
mst
2y ago
WiredTiger was kinda Mongo's InnoDB and has made "your data will actually still be there later" rather more true than it used to be. I think the key thing is that people using MySQL were having trouble with deep data and foun
268.
▲
by
mst
2y ago
Given there's both client and server code available for JS that seems like a perfectly reasonable place to start experimenting with it. The python community tends to be less neophilic than JS (often to its advantage) so I wouldn't
269.
▲
by
mst
2y ago
I use abduco for persistence - a very, very simple piece of code that -only- provides a persistent session, with one (configurable) keybinding to detach. If you also want multiple terminals and screen splits and etc. it's designed to w
270.
▲
by
mst
2y ago
I think it's not just the eject button, but Porter's service automation model being designed to move elsewhere with equivalent moving parts underneath. I wouldn't be surprised if as a result migrating from Porter to elsewhere
More ›