Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
creata
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
181.
▲
Virtual Pianos Comparison
(sinerj.org)
2 points
by
creata
1y ago
|
0 comments
182.
▲
by
creata
1y ago
> Almost by definition, if you are in the state of mind to consider suicide, you are probably not accurately and impartially weighing the question proposed I just don't believe that. How did you arrive at that conclusion?
183.
▲
by
creata
1y ago
> Since it's interactive, it's not just a video I think it just outputs image frames...
184.
▲
by
creata
1y ago
It just generates video, though, doesn't it? How are you going to get usable assets out of that?
185.
▲
by
creata
1y ago
My answer will probably be unsatisfying to you: it's needed when you have enough confidence that all your other options are worse. That depends highly on individual circumstances and values, and not much more can be said in general.
186.
▲
by
creata
1y ago
Well, you need a fallback in case "just get rich" doesn't work out.
187.
▲
by
creata
1y ago
I'm not recommending suicide per se, but it's there if it's needed. Anyway, if you want your comment to be more applicable to an international audience, consider linking to findahelpline.com in addition to the National Suicid
188.
▲
by
creata
1y ago
> Most Neets do get bored after their 40s in Japan. Source?
189.
▲
by
creata
1y ago
> you're going to have to deal with them someday. I know this is a very depressing thought, but you don't have to deal with them someday. Even if there's no other way out, there's always suicide.
190.
▲
by
creata
1y ago
const input = document.createElement("input"); document.body.append(input); input.type = "file"; input.accept = "image/*"; input.onchange = e => { if (input.files &&am
191.
▲
by
creata
1y ago
Material Design 3's "motion physics system" uses damped harmonic oscillators, too. The parameters (undamped angular frequency omega0 and damping ratio zeta) they use are on this page: https://m3.material.io/st
192.
▲
by
creata
1y ago
> But come at rust with a use case (cyclic data structures here) for which it's a poor fit I'm not even disagreeing in general that Java is likely to be better for most problems. But the options in Rust for cyclic data are actu
193.
▲
by
creata
1y ago
I didn't think it was that controversial a statement. For example, Wikipedia says:[0] > Rust's syntax is similar to that of C and C++,[43][44] although many of its features were influenced by functional programming languages su
194.
▲
by
creata
1y ago
No, sorry, in case I wasn't clear, I was talking about manual deallocation. I wasn't talking about a garbage collector. You still allocate and free cells. Here's an example of what I am talking about: https://doc
195.
▲
by
creata
1y ago
> At the cost of making the use of the resulting heap significantly slower and larger than if you just wrote the thing in Java to begin with, though! Lower throughput, probably. But it introduces constant latency. It has some advantage
196.
▲
by
creata
1y ago
I usually prefer compiling it to HTML or SVGs, but sometimes, if you have a lot of math on your page, bundling MathJax can take up less space. (Not sure if that'd still be true after compression.)
197.
▲
by
creata
1y ago
For rendering math to HTML+CSS or SVGs, you can just use Node.js and MathJax. I'm not sure why you'd want Babel. (You can probably use KaTeX, too, but I prefer the look of MathJax's output.)
198.
▲
by
creata
1y ago
I meant among ML-family languages. > 1/100th the momentum and community and resources of Go or Rust I think even 1/100 would be pretty generous.
199.
▲
by
creata
1y ago
Timeline-wise, sure, but I was referring to their present-day use.
200.
▲
by
creata
1y ago
> The issues the author highlights can be annoying, a smarter borrow checker could maybe solve them I don't think a smarter borrow checker could solve most of the issues the author raises. The author wants borrow checking to be an i
201.
▲
by
creata
1y ago
> just reach for a GC library for those cases Imo a GC needs some cooperation from the language implementation, at least to find the rootset. Workarounds are either inefficient or unergonomic. I guess inefficient GC is fine in plenty o
202.
▲
by
creata
1y ago
> The trouble is that you've re-created dangling pointers That's true, but as a runtime mitigation, adding a generational counter (maybe only in debug builds) to allocations can catch use-after-frees. And at least it's les
203.
▲
by
creata
1y ago
That's true (with some qualifications), but everyone seems to continue using C and C++ for everything, even for applications like text editors, where the performance of a GC language would presumably be good enough. I wonder why.
204.
▲
by
creata
1y ago
I think there are two other big differences that also helped Rust become popular: * Rust has a C++-flavored syntax, but OCaml has a relatively alien ML-flavored syntax. * Rust has the backing of Mozilla, but I don't think OCaml had com
205.
▲
by
creata
1y ago
I had the impression that SML was more popular in academia, and OCaml in industry. Old but funny comparison: http://adam.chlipala.net/mlcomp/
206.
▲
by
creata
1y ago
Haskell can have circular references because its laziness is implemented with thunks, which have a mutable cell in which to store the computed value so that terms don't get evaluated more than once. Here's a Haskell function tha
207.
▲
by
creata
1y ago
Yes, either is sufficient, I think. Edit: I think the common idea with both solutions is that our objects have some weak order (the order in which their types were defined, and the time at which the object was created, respectively), and ob
208.
▲
by
creata
1y ago
One solution is to forbid recursive data types - e.g., require every struct type to only reference types that have already been defined. I can't think of any languages that do this. Another solution is to make things immutable (like Er
209.
▲
by
creata
1y ago
An affine type system is one in which some things don't have contraction, not one in which nothing has contraction.
210.
▲
by
creata
1y ago
> As I understand it the borrow checker only has false negatives but no false positives, correct? The borrow checker is supposed to be a sound static analysis, yes. I think Ralf Jung's comment at https://news.ycombinator.
More ›