Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
strmpnk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
strmpnk
11y ago
Won't pass code review till you can use dependency injection to pass a + operator mock for testing.
182.
▲
by
strmpnk
11y ago
The memory comment certainly raises questions. Tagging pointers on 64bit ARM does allow some new techniques for compactness but it'd be hard to claim this overcomes the doubled pointer size. Does anyone have data on how memory use was
183.
▲
by
strmpnk
11y ago
Couchbase may have involved the creators of Apache CouchDB but they are only lightly related these days (mostly some remnants of replication and map-reduce concepts). Both have move some distance since then so it's best to assume that
184.
▲
by
strmpnk
11y ago
I'm pretty sure this doesn't measure what it claims. It's a mostly sequential flow with very little meaningful concurrent work going on. I would imagine a for loop would put all of those to shame. I'm not sure why anyone
185.
▲
by
strmpnk
11y ago
This. Behavior is much better these days but dirty schedulers and ports are still the first places to consider putting C code. Only when you know you've got a solid implementation should you upgrade it to a NIF. A short note on how har
186.
▲
by
strmpnk
11y ago
Good point. I guess I find it like a hybrid where you don't benefit from the cooperative side and don't achieve true preemption. I think either end would be better than keeping the middle ground.
187.
▲
by
strmpnk
11y ago
As far as I understand, you can make an actor reentrant which frees the thread. It's definitely a leaky concern compared to Erlang's process implementation.
188.
▲
by
strmpnk
11y ago
That's an interesting point. One of the nice things about immutable structures is that old things can never point at new things. (Some might exploit laziness to allow some sort of loop but I'd count that thunk as a mutable structu
189.
▲
by
strmpnk
11y ago
The discussion on the prior post is discussed here: https://news.ycombinator.com/item?id=11004808
190.
▲
Self Adjusting DOM
(blogs.janestreet.com)
5 points
by
strmpnk
11y ago
|
1 comments
191.
▲
by
strmpnk
11y ago
That's not quite what I meant. By text parsing, I mean sending a big string to the DOM like: elem.innerHTML = "<p>Example. Please parse me.</p>"; That's going to take more time than carefully co
192.
▲
by
strmpnk
11y ago
I never said it was necessary. I am mainly pointing out that there are similarities in the mental model of the original comment and the virtual dom. Of course there are many ways to get results. The virtual dom seems quite nice since it avo
193.
▲
by
strmpnk
11y ago
I think it's a valid view if you consider that the rendering is one-shot. All input → entire document. There is no concept of update during a server side page rendering, which is quite similar to how the mental model for libraries like
194.
▲
Incrementality and the web
(blogs.janestreet.com)
54 points
by
strmpnk
11y ago
|
11 comments
195.
▲
by
strmpnk
11y ago
I think the iPhone 4 is from 2011 so roughly 4+ years old. With safari though, I'd also be interested in knowing the iOS version.
196.
▲
by
strmpnk
11y ago
These come to mind: rebar3 (Erlang), mix (Elixir), composer (PHP), elm-package (via elm-stuff/exact-dependencies.json).
197.
▲
by
strmpnk
11y ago
Display technology also varies quite a bit. Some cheaper devices tend to saturate certain hues like redness. It could very well look a bit more orange on one display and look completely yellow on another.
198.
▲
by
strmpnk
11y ago
Not sure why this got down voted. It's easy to see that points can be selected between two others that are parents in some cases. With mid-points, it usually mixes a fractional part like taking a midpoint 1/2 and then moving the u
199.
▲
by
strmpnk
11y ago
Fair enough. Getting a usable API that works reliably here is tricky though. I've often fallen back to a sort of indirection like "move this card right after that one" ... this only works if you can calculate that right away
200.
▲
by
strmpnk
11y ago
I think it relates to the idea that "Object Oriented" meant message passing (methods) between entities (objects). Not the meaning that was derived over time as programming languages borrowed select ideas from Smalltalk and then co
201.
▲
by
strmpnk
11y ago
If you can sort fractions and call a function to get something between two points, then that's the entirety of the complexity. The "library" is about a hundred lines in JS and less in Erlang. The logic, which I have written i
202.
▲
by
strmpnk
11y ago
Yes. This is very similar if you consider the path on the b-tree with the alphabet L, R. It doesn't follow traditional lexical sorting though since RRL (5/2) comes before RR (3/1). This is handy though. Consider having someth
203.
▲
by
strmpnk
11y ago
Sure, you'd need a library but the problem with integral sorting is that operations must be totally ordered. This starts showing limits under stress of heavy collaboration. There is more than one way to solve this but most solutions ei
204.
▲
by
strmpnk
11y ago
I'll wrap up a new version of the library that's independent of what I have it hooked up to and upload it to npm and hex.pm respectively. When I first wrote it, I started with midpoints but it doesn't take long to see that it
205.
▲
by
strmpnk
11y ago
Growth is one, the average term will be smaller. The real reason to pick this is that the tree is a b-tree so you can pick terms above and bellow, so you can end up with simpler terms, not just more complex ones.
206.
▲
by
strmpnk
11y ago
You can get much farther by storing a fraction. Still, a midpoint is not the most effective point to chose. One solution I've explored is in the form of fractions generated by the Stern-Brocot tree. The continued fraction representatio
207.
▲
by
strmpnk
11y ago
They started with a version of ejabberd of some sort and migrated to more custom components over time IIRC. I can't find the link right now. (Keep in mind that ejabberd is written in Erlang.)
208.
▲
by
strmpnk
11y ago
Yet composability is exactly what makes it easier for humans to reason about. It's the small surface of a composable part that fits into more immediate representations in our mind. Whether or not it's natural mapping functions to
209.
▲
by
strmpnk
11y ago
The syntactical building blocks might be similar but the execution model differs. While you could obviously achieve any sort of term evaluation with a metainterpreter, the TRS in Mathematica offers a rather smart rewriting system. It can ea
210.
▲
by
strmpnk
11y ago
Flow offers some interesting control over things like optional types (nullable) and intelligent understanding of type tests in conditionals or calls to libraries like invariant. I've had these sorts of features catch quite a few bugs i
More ›