Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
exdsq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
241.
▲
by
exdsq
5y ago
Someone elsewhere mentioned that this seems to be ring, hiccup, and a DB connection packaged as one. Pinch of salt needed, I’ve not used it :)
242.
▲
by
exdsq
5y ago
I went all in and used NixOS too, but things like managing CI with Hydra, running perf tests on Nix ops clusters, debugging 10K+ Nix repos… you start to get it down and then things change like with flakes… and all the tools like Nix2Stack,
243.
▲
by
exdsq
5y ago
Yeah but if Microsoft fuck up badly enough I can sue them, startups are less likely to survive a significant breach (especially if the thing being breached is 100% of their product). There's just far less risk.
244.
▲
by
exdsq
5y ago
Nope nope nope. They're not fine. Nix is really really hard to use. I worked for a company that ran all the ops with Nix managed by some of the contributors. Every time I wanted to do something I'd have to get DevOps to do it for
245.
▲
by
exdsq
5y ago
Maybe not but I'd trust Microsoft has a decent security and privacy team working on this more than a startup. What if they're logging the wrong stuff and my data is leaked?
246.
▲
by
exdsq
5y ago
> especially in the upper classes where people do not need to serve Weird! In the UK the army is very cross-class
247.
▲
by
exdsq
5y ago
I used to have quite a lot of blind faith on HN comments regarding subjects I don’t know well, but after sharing the occasional link to friends who are established scientists in the field it ends up being mostly nonsensical :(
248.
▲
by
exdsq
5y ago
You should see the arguments gardeners can get into over lawnmowers
249.
▲
by
exdsq
5y ago
When you join the reserves you have to go through basic infantry training (you can't just go straight to Sandhurst like if you went into the regulars). You're paid £40.13 per day at the moment (I think I was paid something like £3
250.
▲
by
exdsq
5y ago
I had quite a lot of fun in the Army Reserve in England (6 Rifles, B Company) while I was a teenager (17.5 - 19.5). Being paid to spend my weekends running around a field, camping, and shooting was a lot better than alternatives like workin
251.
▲
by
exdsq
5y ago
I think the trick here is tail recursion optimization and comparing with other recursive solutions in languages that don’t have that
252.
▲
by
exdsq
5y ago
Gotcha! Thanks for all your informed answers.
253.
▲
by
exdsq
5y ago
Multiplication is more efficient than addition? That’s surprising! I assumed multiplication would be built at least partially from addition when you’re at the lowest levels of the stack
254.
▲
by
exdsq
5y ago
It's nice to have invariants - I believe I've seen them in Rackets contracts but I'm a little away from that stuff in my Lisp journey :)
255.
▲
by
exdsq
5y ago
HN has very strong views on crypto along the lines of it's all bad, so even fairly reasoned arguments (that may well be flawed) are downvoted into oblivion without a decent debate on the points. It's why I wish Crypto was just b
256.
▲
by
exdsq
5y ago
I don't know if the energy required to heat a historical building from servers is 'good' from a Utilitarian viewpoint - the energy consumed to do this is surely greater than the amount of coal required to run some effective h
257.
▲
by
exdsq
5y ago
I imagine you’ve thought about this too, based on your HN username! :P
258.
▲
by
exdsq
5y ago
Also there’s a lot of hindsight here. What might look bad now is likely an emergent property of what at the time wasn’t bad at all (show you news sources people care about, etc). I can totally see people who hate what Facebook has become ha
259.
▲
by
exdsq
5y ago
Up for interpretation. You’re very right environmentally. From a crypto perspective you could see a lot of it as fluffy marketing and rug pulls, while Bitcoin is a little more stable and ‘mature’
260.
▲
by
exdsq
5y ago
I appreciate it, thanks!
261.
▲
by
exdsq
5y ago
The only readability issue I have with that is the functions expected arguments. Add some types and I’d be very happy to work on it. I believe Facebook uses a single directory of files now as best practice? With the file names including nam
262.
▲
by
exdsq
5y ago
Thanks for the comparison :) I'm plotting the racket implementation over input size to see how it performs over input size - it feels slightly more sharply curved than linear but you may very well be correct!
263.
▲
by
exdsq
5y ago
I guess I'm surprised at the speed of lazy streams then - usually I just pre-generate the fib sequence if I need it and then filter/aggregate as you mention. Probably slightly embarrassing I've only just discovered their powe
264.
▲
by
exdsq
5y ago
I'm not running compiled code, am I? If I just run 'racket ./filename.rkt' it's interpreted? This is why I'm so amazed - it's uncompiled code running at speeds I'd expect from C, not an 'academic
265.
▲
by
exdsq
5y ago
I'll have to test this because it's much faster than I remember Python achieving with memoization.
266.
▲
by
exdsq
5y ago
Thanks! Whatever this is far faster than I've seen in other non-compiled languages. If it holds up like this I might actually use it for small projects in the future!
267.
▲
Ask HN: Why is this Racket code so fast?
30 points
by
exdsq
5y ago
|
27 comments
268.
▲
by
exdsq
5y ago
It’s never too late if it’s something you want to do :) Hell, I have a friend who’s 20 years into his DPhil taking it at a snails pace, but gives him accommodation when he’s in town for the pub. People talking about how much of a dent you’l
269.
▲
by
exdsq
5y ago
I definitely ribbed him a bit in the pub for it, as we all did, but it was a consultancy and we had academic & old-school style clients who came in suits themselves so it was probably more accepting than brogrammer startups or whatever
270.
▲
by
exdsq
5y ago
I don’t think money is as big a deal as people think, but you only realize this after you’ve made a good amount (income, not wealth) while being unhappy with your work.
More ›