Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xmcqdpt2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
121.
▲
by
xmcqdpt2
1y ago
That's a great idea, I should do that. There is another team that does something similar but everyone complains about it (it's not as good as your template).
122.
▲
by
xmcqdpt2
1y ago
This is a huge pet peeve of mine. At work I'm an expert on part of the code base that sees a fair number of contributions.I get many private IMs from colleagues asking me to "Approve please" or something like that with a dump
123.
▲
by
xmcqdpt2
1y ago
Fortran is pretty great: * First-class tensor manipulations (like numpy but in the core language) * Fast math with the right compiler * Automatically sized multi dimensional arrays on the stack * Zero cost C interop * Minimal runtime, no GC
124.
▲
by
xmcqdpt2
1y ago
It's more like hiring a personal assistant who is expected to work all the time quickly and unsupervised, won't learn on the job, has shockingly good language skills but the critical thinking skills of a toddler.
125.
▲
by
xmcqdpt2
1y ago
The trickiest problems with VT aren't due to mutability. Mutability is problematic with any kind of concurrent programs. The difficult problems are execution problems like pinning. There are plenty of existing concurrency libraries on
126.
▲
by
xmcqdpt2
1y ago
It's really not hard to reproduce, - vt1 locks lock1 - vt1 suspends on lock2 - n VTs attempt to initialize a singleton that requires lock1, so they all suspend within pinning class init. - you release lock2. - all platform threads are
127.
▲
by
xmcqdpt2
1y ago
We've been looking at virtual threads in a project at work and what we found is that it is quite difficult to adapt existing code to run with virtual threads. For example, class initialization pins a thread so any singleton defined in
128.
▲
by
xmcqdpt2
1y ago
I was that teenager and I still think Perl is very neat but I don't think I can write it anymore without lots of doc reading.
129.
▲
by
xmcqdpt2
1y ago
Did Forth inspire the stack-based VMs of python and java? I don't know about that part of CS history well, but a very large proportion of all code runs on stack based byte code interpreters.
130.
▲
by
xmcqdpt2
1y ago
Didn't they take their array programming from Fortran? The Fortran, numpy and matlab array syntaxes are basically identical, down to broadcasting and reduction rules.
131.
▲
by
xmcqdpt2
1y ago
The best part is the Methods section, which opens with > Warning! Silver azide and halogen azides are extremely hazardous and explosive. Such compounds should be handled with utmost care and only in very small quantities (<5 mmol). Ap
132.
▲
by
xmcqdpt2
1y ago
We don’t have em dashes as punctuation in French —- commas are usually used instead —- so we get overly excited about using them when we can —- everybody likes novelty.
133.
▲
by
xmcqdpt2
1y ago
I think the jury is still out on Uber. They first became profitable in 2023 after 15 years of massive losses. They still burned way more money than they ever made.
134.
▲
by
xmcqdpt2
1y ago
My guess is that it doesn’t work for several reasons. While we have millions of LOCs to train models on, we don’t have that for ASTs. Also, except for LISP and some macro supporting languages, the AST is not usually stable at all (it’s an i
135.
▲
by
xmcqdpt2
1y ago
Languages that choose to fix this problem at the hash code level have hash codes that are still deterministic within a given program execution. They are not deterministic between executions, cf https://docs.python.org/3/
136.
▲
by
xmcqdpt2
1y ago
I think it’s cheaper for student groups. If you google “student club sends satellite” you get a bunch of examples, https://globalnews.ca/news/9818771/university-of-saskatchewa... https://news.northeaste
137.
▲
by
xmcqdpt2
2y ago
Lists aren’t copied on prepend. Tries (like scala’s Vector) or trie maps (the core map types of Scala, Clojure and probably Haskell?) aren’t copied on updates. In fact, whether a data structure is an immutable or persistent data structure o
138.
▲
by
xmcqdpt2
2y ago
See for example https://github.com/WebAssembly/design/issues/1463 In general, if NaN1 and NaN2 are different (there are 23 bits in a NaN that can be set to an arbitrary value, the NaN payload) then combining
139.
▲
by
xmcqdpt2
2y ago
> There is ZERO honor in offloading what could have been a SQL view into a shitty pile of nested iterators somewhere. I don't understand where any of this energy comes from. The less code the better. It's pure downside. I whole
140.
▲
by
xmcqdpt2
2y ago
Where I work did an inventory a few years back of their systems and found that we had about the same number of databases (not tables!) as employed engineers, counting all deployed (QA and prod) instances. The team on that inventory project
141.
▲
by
xmcqdpt2
2y ago
You could do like a captcha but for computers. Here are some molecule, find the ground state geometry of all of them. You give some you already solved just to root out whether the solver is actually solving or faking it.
142.
▲
by
xmcqdpt2
2y ago
I was under the impression that the bad crawlers exist because it's cheaper to reload the data all the time than to cache it somewhere. If this changes the cost balance, those companies might decide to download only once instead of ove
143.
▲
by
xmcqdpt2
2y ago
C++ is (according to Bjarne Stroustrup) a general purpose programming language that can be used to build general business software and applications with, not just a systems PL. This is why perf is all over the place —- the core language is
144.
▲
by
xmcqdpt2
2y ago
> So for example today I dealt with a synchronization issue. This turned out to not be a code bug but a human misunderstanding of a protocol specification saga, which was not possible to code into a type system of any sort. Maybe not in
145.
▲
by
xmcqdpt2
2y ago
C compilers are just too smart IMO to make C portable assembly. Your example doesn’t always ADDI either, for example if it is inlined https://godbolt.org/z/vv9rvKsxn This isn’t qualitatively different from what the JVM
146.
▲
by
xmcqdpt2
2y ago
They aren’t equally expensive everywhere. They are cheap on the JVM.
147.
▲
by
xmcqdpt2
2y ago
The parent example can be made clearer like this: https://godbolt.org/z/MKWbz9W16 Dead code elimination only works here because integer overflow is UB.
148.
▲
by
xmcqdpt2
2y ago
I think it’s more like .editorconfig, included in the repo for consistency between contributors. Also, it’s not uncommon to have IDE configs in large repos, in my experience in corpoland most developers don’t start with an already configure
149.
▲
by
xmcqdpt2
2y ago
I like a lot of Muratori’s writing but… is it really wise to take code architecture tips from game devs, of all people? I’m willing to trade lots of performance in exchange of extensibility and stability over the long term. I’m not a huge f
150.
▲
by
xmcqdpt2
2y ago
I'm not sure you understood the article. You can have a very low load but each task on your queue takes a while to process, in which case you want fair distribution of work.
More ›