Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jamii
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
241.
▲
by
jamii
11y ago
Well, we first spent six months on 'cannot call function undefined of undefined'. We could have spent the last three on 'segfault' instead. Rust let us spend that time on actually experimenting instead of just fighting t
242.
▲
by
jamii
11y ago
Writing a language runtime in javascript is hard enough, clojurescript adds yet more layers of runtime overhead that we have to work around. Clojurescript is a fine applications language, but it's not a good systems language. Most lang
243.
▲
by
jamii
11y ago
> the trait can be implemented multiple times on the same type, with different A That was the intention - a function that dispatches on the type of both arguments (it probably shows that I secretly think of traits as typeclasses). I'
244.
▲
by
jamii
11y ago
> Those are the constraints that cannot currently be expressed in bounds, not where clauses. Yeah, I got that whole thing totally wrong. I've removed that part of the post and linked to this discussion instead. Thankyou for de-confu
245.
▲
by
jamii
11y ago
Oh... well that's embarrassing. So, I half-remembered the actual problem I ran into and found something that half-looked like it mentioned it. Not my finest hour :S I dug up the IRC exchange for the problem I actually ran into: j
246.
▲
by
jamii
11y ago
> Note that in this specific case you could just use `&str` over `&String` everywhere It's an awkwardly construed example. Here is the actual code - https://gist.github.com/jamii/ae46e8e0c9757330e9ea .
247.
▲
by
jamii
11y ago
Right tool for the job. Static typing works well for systems software. Eve is aimed at scripting / knowledge work, where you are mostly manipulating collections of messy data and it's useful to be able to start with a loosely spec
248.
▲
by
jamii
11y ago
It looks like the worst offenders (vs C) are regex-dna (which is a young regex + unicode vs pcre + ascii) and fasta (where the rust version is still single-core). The others are at 1-2x cpu and on par for memory. I suspect most of them coul
249.
▲
by
jamii
11y ago
In the interview he mentions releasing an MIT-licensed mathematica simulation.
250.
▲
by
jamii
11y ago
I've run into two kinds of problems that require unsafe so far. The first is similar to the c extension you described - building data structures with dynamically-sized arrays eg a bitfield followed by population_count(bitfield) entries
251.
▲
by
jamii
11y ago
Has anyone here used the Wolfram Language? How discoverable is it? How does debugging work? What about state management? All the demos are small, stateless calculations. What is it look like when you want to build long-lived, stateful syste
252.
▲
by
jamii
11y ago
Breach (sensibly) uses the chromium content api so it's like 99% C++.
253.
▲
by
jamii
11y ago
+1 Don't be put off by the stigma of the self-help section. The main value of the book is a collection of clinically-tested exercises for breaking bad habits, collecting accurate data about your mental state and systematically disentan
254.
▲
by
jamii
11y ago
Come back when you can write a database in sql, or a browser in html. Hell, try writing a browser in javascript. How much of what the average programmer does looks like implementing a programming language and how much is just throwing some
255.
▲
by
jamii
11y ago
When people try to do what we do, but in python/emacs/git, it's bad. It's not like if you banned excel the same people would suddenly produce a beautifully factored python program. They just wouldn't have anything a
256.
▲
by
jamii
11y ago
Excel, Access, Labview, Scratch. Pretty much anything that doesn't require years of training as a programmer uses a mixture of structured editing and small chunks of raw text. If you look at it by sheer number of users, structured tool
257.
▲
by
jamii
11y ago
There is some evidence that lack of sideways flexibility in the joints contributes to synovitis in climbers. A common recommendation is to regularly twist and stretch the finger joints like this https://www.youtube.com/watch
258.
▲
by
jamii
12y ago
The problem was not a few large objects, but large numbers of small objects eg thousands of orders per market. I considered using manual memory management but it would have required rewriting most of the code (it was almost all business log
259.
▲
by
jamii
12y ago
> their entire dataset fits in RAM 128 billion edges. 1 TB of data just to list edges as pairs of integers. 154 GB after cleverly encoding edges as variable length offsets in a Hilbert curve. Do you have a bigger dataset?
260.
▲
by
jamii
12y ago
> all this "avoid crossing to the kernel" optimization is becoming a drop in the ocean Here is an example of a small single threaded program beating out a number of distributed graph frameworks running on 128 cores, with a 128
261.
▲
by
jamii
12y ago
I spent a total of 11 months consulting with a company that built a large (50kloc) financial system in erlang. They had terrible performance problems that were caused entirely by erlang. Imagine you have a large amount of data (order books,
262.
▲
by
jamii
12y ago
I had no problems at all. I would be interested in the correlation between rejection and skin colour.
263.
▲
by
jamii
12y ago
> (How does rust do that?) My first thought would be to attach the connection object to the data the other thread is working on. When it is done it processing your message it drops the whole thing, closing the connection. If you want to
264.
▲
by
jamii
12y ago
Ah, I see what you are getting at. They seem related to me though. Open recursion requires calling the method from the final subtype rather than the current type - `even` would have to call `this#odd` instead of `odd`. The core problem in b
265.
▲
by
jamii
12y ago
http://defensivepatentlicense.org/ - if you license all of your patents under the DPL you then get free licenses to all other DPL patents. Your membership and licenses are revoked if you sue any other member for patent infr
266.
▲
by
jamii
12y ago
No, ML modules are usually early bound which prevents open recursion eg module First = struct let rec even x = if (x >= 0) then ( print_endline "even!"; odd (x-1) ) else
267.
▲
by
jamii
12y ago
Windows Journal is also perfectly serviceable - https://drive.google.com/file/d/0Bxjbk6tMrOKQcXhKT1dIVkQ5ZVE...
268.
▲
by
jamii
12y ago
I wonder how much React-style UI libraries can make up for the poor DOM access. Do all the calculation in asm.js and just dump out the diff for the plain js dom updater to deal with.
269.
▲
by
jamii
12y ago
This is an excellent explanation - http://blog.confluent.io/2015/01/29/making-sense-of-stream-p...
270.
▲
Scaling Down
(scattered-thoughts.net)
2 points
by
jamii
12y ago
|
0 comments
More ›