Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jules
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
271.
▲
by
jules
8y ago
The prototypical example being getter and setter methods, which Java IDEs generate.
272.
▲
by
jules
8y ago
What helps me in those situations is to make a list of arguments for and against doing it now. This seems silly, but view it as communication between your subconscious and your rational self. Your subconscious self feels that its obviously
273.
▲
by
jules
8y ago
At best this will do nothing, at worst the unintended consequence is a spike in rental prices. The root of the problem is supply and demand, and they're not willing to look at that. Increasing supply means highrises and more building p
274.
▲
by
jules
8y ago
With leapfrog you can use x + v dt/2 for the positions to calculate the energy. Or use this update rule: x += v*dt/2 v += a(x)*dt x += v*dt/2 This gives you the x,v at the same time, yet still doesn't re
275.
▲
by
jules
8y ago
In Leapfrog we iterate v <- v + a(x)dt x <- x + vdt With Euler initialisation this is equivalent to: v <- v + a(x)dt/2 x <- x + vdt v <- v + a(x)dt/2 (consider a sequence of steps: we'l
276.
▲
by
jules
8y ago
> I had an old program where I implemented the Leapfrog method, but for this post I decided to use the Verlet integration. Those are mathematically equivalent methods though...aren't they?
277.
▲
by
jules
8y ago
Microservices are not good for scalability. You want data parallelism, like 20 webservers that all do the same thing. Not splitting your app into 20 microservices all doing something else.
278.
▲
by
jules
8y ago
IMO eigenvectors are easiest to understand in connection with differential equations, and that's also one of their most important applications. If you plot the flow of the equation x' = Ax then the eigenvectors are visually appare
279.
▲
by
jules
8y ago
I find that the intuitive idea of free will doesn't make all that much sense anyway. Leave aside the discussion of whether people have free will in this universe, how would a universe in which people actually have what most people call
280.
▲
by
jules
8y ago
Sure, and that's exactly what re2c does too. It lets you do a match on multiple regexes: regex1 { code that executes if regex1 matches } regex2 { code that executes if regex2 matches } regex3 { code that executes if regex3 matc
281.
▲
by
jules
8y ago
Lexers run multiple regexes in tandem to determine the next token type. To do that with your method you'd have to run multiple DFAs on the same string. Lexers can do it with 1 DFA by having multiple different final states (non-final +
282.
▲
by
jules
8y ago
Yeah, I agree that most questions in introductory linear algebra are reducible to Gaussian elimination. However, if I had to play devil's advocate, I'd say: 1) Gaussian elimination is only one of the algorithms for solving linear
283.
▲
by
jules
8y ago
I like this idea. It's also how the subject developed historically. That said, don't you get a very computational book in which students spend a lot of time working with matrices filled with numbers if you teach Gaussian eliminati
284.
▲
by
jules
8y ago
It may not seem like it, but you can generalise this to any matrix. Compute the minimal polynomial of the matrix, that is, the least degree polynomial P such that P(A) = 0 and the first coefficient is 1. Then, if you want to compute A^n, fi
285.
▲
by
jules
8y ago
This is a typical exercise in thermodynamics courses, but simple models may not be very accurate.
286.
▲
by
jules
8y ago
I got 10 out of 10 correct without looking at the features around the face. It's easy to spot the fake one by wrinkles going the wrong way, or obvious artifacts like incomplete earrings. It's close to being impossible for me to te
287.
▲
by
jules
8y ago
Keep them in a separate pool or mandate pool diapers. Consider this thought experiment. You have a movie theatre where the people on the balcony may pee and that pee drips down on the faces of people below them. Would this be considered acc
288.
▲
by
jules
8y ago
Maybe they shouldn't be in the pool then.
289.
▲
by
jules
8y ago
> They don't stay in a fixed position. Okay, then I don't understand the point of the quote, because it is a counterargument to your style of typing. > My hands have never felt uncomfortable when they are moving about slight
290.
▲
by
jules
8y ago
It's not just about typing speed, it's about comfort. Touch typing on Colemak (and presumably Dvorak) feels much better and is less tiring than pecking. What you mention is indeed the biggest advantage of touch typing: your hands
291.
▲
by
jules
8y ago
Does following an ethics course actually encourage ethical behaviour?
292.
▲
by
jules
8y ago
Simultaneous usage and heavy usage is the same thing in practice. Most people watch youtube videos at times of the day when everyone else is watching youtube too. Data caps make users consider whether or not to watch a video via their wirel
293.
▲
by
jules
8y ago
Modern HTML+CSS is way wayyy easier than in Internet Explorer 6 times. Back then you had to understand the box model and float intricacies and CSS hacks to make your page look acceptable in all browsers. A three column layout with a header
294.
▲
by
jules
8y ago
Hooks make a lot more sense from a traditional FRP perspective. The code you write with hooks is basically identical to the code you'd write with early FRP systems. For instance, useState is called newWire in FranTk. The difference is
295.
▲
by
jules
8y ago
Diffing results in different behavior if components have internal state.
296.
▲
by
jules
8y ago
The biggest advantage is the same as using Javascript with Electron: being able to use web technologies on the desktop for easy cross-platform GUI applications. WebAssembly addresses two big downsides of that approach: speed, and having to
297.
▲
by
jules
8y ago
Carrots, celery, cucumber, 0% fat cottage cheese.
298.
▲
by
jules
8y ago
$27 billion is not that much on a global scale, and it won't greatly alter prices if spread out.
299.
▲
by
jules
8y ago
The fabricated data was patently absurd. They claimed that they inspected the genitals of 10,000 dogs at a single dog park. To punish him for this fabrication is ridiculous. They should rather look into the people who reviewed the article a
300.
▲
by
jules
8y ago
The relationship is not that tenuous. The slogan "SSA is functional programming" means something very specific: dominance relationships in SSA are in one-to-one correspondence with nested scope of letrec-based abstract syntax tree
More ›