Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joppy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
151.
▲
by
joppy
5y ago
Which usually turns out a lot better - I tried signing on a trackpad but it looked like a preschooler signing their name :P
152.
▲
by
joppy
5y ago
I recently bought a clothes dryer and took it back because of the noise (which raised a lot of eyebrows - “of course dryers make noise”). Swapped it for a different brand at about the same price point and the difference in noise is night an
153.
▲
by
joppy
5y ago
The whole point of special/general relativity (at least the Minkowski approach to it, ie the approach that calls time a dimension) is that it the time dimension is related to the spatial dimensions. At non-relativistic speeds it seem
154.
▲
by
joppy
5y ago
It is pretty common nowadays in functional programming languages to find operators which reverse the order of application or composition, so rather than writing f(g(h(x))) one can instead write “x |> h |> g |> f”. This style is qui
155.
▲
by
joppy
5y ago
If you add some additional structure of remembering that the domain of these transformations is an abelian group, then there is actually a completely canonical version of the Fourier transform, whose domain is the dual group - the only non-
156.
▲
by
joppy
5y ago
> The complex plane is a crutch that gives you pretty pictures. That’s a very poor outlook on an incredibly useful mathematical tool. Maths is done essentially by finding new ways of viewing an old thing, and restricting the set of tools
157.
▲
by
joppy
5y ago
The Rust approach of having all indexing being unsigned has been extremely annoying for programming algorithms which need to do interesting indexing patterns like walking backwards through an array while indexing into another: the fact that
158.
▲
by
joppy
5y ago
The number 0 happily and unambiguously plays a role in many numeric types and algebraic structures, and it’s kind of nice if the compiler can just figure out the type that it should be from context. Comparing a literal 0 to a double should
159.
▲
by
joppy
5y ago
Why is it an issue any more than say, order of fields in a struct is an issue? In one case you read bytes off the disk by doing ((b[0] << 8) | b[1]) (or equivalent), with the order reversed the other way around. Any application-level
160.
▲
by
joppy
5y ago
On the other hand, one of the things I like so much about Overwatch and TF2 is the importance of mobility and crazy movement patterns - with some characters you can be flying around the map, ending up in odd places, and characters usually h
161.
▲
by
joppy
5y ago
If you constantly work on the same code base day-in, day-out, breakage through the language or libraries is much less of an issue. You can keep up with current developments in the language and/or libraries, and update as necessary. Inc
162.
▲
by
joppy
5y ago
Pluto is quite fast for me - could you perhaps be hitting the first-run JIT startup time in Julia? Do the cells re-evaluate quickly, after whatever code they depend on has been JITted?
163.
▲
by
joppy
5y ago
I don’t think this is an achievable goal for a kernel, since it has strictly more permissions than user code. There are some parts of user code that simply cannot be made faster by changing how they’re written: no amount of rewriting in Rus
164.
▲
by
joppy
5y ago
One reason that this is not done by default is that it can make debugging a surprise: since each function does not leave a stack frame, stack traces are much less useful. This is not so bad in the case of a tail-recursive function which cal
165.
▲
by
joppy
5y ago
Straightforward Boyer-Moore is worst case O(nm), but (I believe) there are modifications that make it linear time. There are other string searching algorithms like Knuth-Morris-Pratt which are linear in the size of the two inputs. My point
166.
▲
by
joppy
5y ago
String searching is interesting in that the naive algorithm is quadratic-ish: imagine searching for “aaaab” in the string “aaaaaaaaaaaa” by comparing the characters 1-5, then 2-6, and so on. So at least some kind of clever insight needs to
167.
▲
by
joppy
5y ago
In order for append-to-back to have O(1) amortised running time, the capacity needs to be multiplied by some constant >1. Any constant would do just fine in terms of complexity, but 2 is the obvious simple choice, being the first integer
168.
▲
by
joppy
5y ago
Yes, I did think it wasn't a good way to used typed arrays, but I was still surprised that when allocating only a very small number of large arrays, just plain Javascript arrays outperformed typed arrays.
169.
▲
by
joppy
5y ago
As anecdata, I've also found that using typed arrays does not speed up (actually slows down, by 10% or so) code which uses integer arrays. Making sure that arrays stay in packed-small-integer format (which is not always obvious: for ex
170.
▲
by
joppy
6y ago
The first things I would look for in a data science language are multidimensional arrays, linear algebra packages, data frame and time series libraries ... none of which feature on this page.
171.
▲
by
joppy
6y ago
So in a "free" market, one side has all the bargaining power and the other side has none of it? What does a free market mean to you?
172.
▲
by
joppy
6y ago
I would have thought that the Gates foundation was an excellent example of how to spent money well: after an enormous amount of research on determining what problems are priorities, and the most efficient (in terms of bang per buck) ways to
173.
▲
by
joppy
6y ago
Would this help? My understanding is that the copy was so that the new object exists in the heap of the receiving process, and therefore the GC can have a strong guarantee that all objects within a process belong to the GC for that process.
174.
▲
by
joppy
6y ago
It's roughly the right word for it - mathematicians would say that operations f and g commute if f(g(x)) = g(f(x)) for all x. In this specific case it is not quite true that (^4) and (%15) commute, but if we treat (%15) as returning an
175.
▲
by
joppy
6y ago
Xarray is absolutely sublime by the way, thank you for your work there. I stuffed around with multi-indices in pandas for a good while before finding Xarray and instantly having all my problems solved :)
176.
▲
by
joppy
6y ago
Isn’t this the whole problem in homomorphic encryption? We already have cryptographic systems for which encryption is a homomorphism, such as RSA. I thought that the whole problem was finding ways to do it that don’t leak any data, basicall
177.
▲
by
joppy
6y ago
I’ve written some animations in React and Svelte recently which edit SVG properties to move objects, and I found myself making the same rounding optimisation (along with using a single path to draw many circles, rather than many circle obje
178.
▲
by
joppy
6y ago
> “Pictures may be worth a thousand words, when there's a picture to match what you're trying to say.” The author is saying that because pictures cannot easily capture arbitrary sentences, text is better. But the same applies w
179.
▲
by
joppy
6y ago
One of my favourite things about Python is that its integers are true integers: they do not overflow or wrap. In my opinion, this is the correct default for most programming languages (in fact, I would have gone a step further and made in
180.
▲
by
joppy
6y ago
I think both! There are parts of mathematics that just look like truths that have been waiting the whole time to be discovered. On the other hand, people invent problem solving techniques which definitely feel more like inventions than disc
More ›