Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eliben
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
241.
▲
by
eliben
10y ago
Archaea are prokaryotes, not eukaryotes
242.
▲
by
eliben
10y ago
I'm having a hard time deciphering your idea - do you have a minimal snippet/gist to show what you mean?
243.
▲
by
eliben
10y ago
The facade approach is discussed in the article, along with some of its issues. I call it "extending the visitor pattern" following the paper the article refers to several times.
244.
▲
by
eliben
10y ago
I looked into type classes in Haskell, but my understanding was they they provide static, not dynamic dispatch. Is that wrong? FWIW I've also been wondering about Go. On one hand in Go you don't have to pre-declare which interface
245.
▲
by
eliben
10y ago
Can you elaborate on how Rails/Python serves as an alternative to Angular?
246.
▲
by
eliben
10y ago
You can implement this in Lisp. The dispatch will be at runtime, not compile time. I don't think CLOS supports this use case, but the rest of Lisp certainly does. The issue will be speed, as I mentioned before.
247.
▲
by
eliben
10y ago
Why would you want to do that in Common Lisp? To be honest, I think folks imagine the wrong things when looking at CLOS. They think it's Lisp foray into statically-typed OOP like C++. But it isn't. Lisp stays dynamically typed. Th
248.
▲
by
eliben
10y ago
But templates are about speed. Clojure-type dispatch can be easily implemented in CLOS (all of CLOS is just a set of Lisp macros and functions), and it's fully general. You can "deeply specialize" to your heart's conte
249.
▲
by
eliben
10y ago
I don't think of Julia, to be honest
250.
▲
by
eliben
10y ago
Part 3 will talk about Common Lisp / CLOS which had multiple dispatch 20 years before Julia was conceived :-) Part 4 will talk about Clojure. I just couldn't put it all in one piece - even broken to chunks it's of formidable
251.
▲
by
eliben
10y ago
For more context, you may want to check out the first part in the series: http://eli.thegreenplace.net/2016/a-polyglots-guide-to-multi...
252.
▲
by
eliben
10y ago
Stroustrup's paper (mentioned in the article) about implementing this in C++ is pretty comprehensive and deals with performance as well.
253.
▲
by
eliben
10y ago
True. Alexandrescu touches upon this in his Modern C++ take on multimethods. He uses static per class integers to uniquely identify them instead of RTTI. This is not unlike the special home-cooked "RTTI" LLVM uses ( http:/&#x
254.
▲
by
eliben
10y ago
Part 3 in the series (coming some time next week hopefully) shows how multiple dispatch is done in CLOS (Common Lisp) :-) P.S. I love Seibel's PCL - great book
255.
▲
by
eliben
10y ago
Thanks for the feedback! This is why I spent a section on showing the "failed attempt". It's surprising how many folks don't understand the difference between overloaded functions (compile-time dispatch) and true multip
256.
▲
by
eliben
11y ago
Is the BEAM model much different from Go's goroutine scheduler?
257.
▲
by
eliben
11y ago
It's very much worthwhile. Apart from being a Lisp, which says a lot on its own, Clojure has a bunch of other "brain-expanding" features. Its approaches to immutability, concurrency, and higher-order function munging (reducer
258.
▲
by
eliben
11y ago
The idea was to show things that actually make sense as return values / statuses rather than exceptions. I surely wouldn't throw an exception for "getline reached EOF"
259.
▲
by
eliben
11y ago
Why is an actual programming-related link ominous? Not enough crypto-drama?
260.
▲
by
eliben
11y ago
I'd say that due to the input (JS), they also have a fairly limited set of IR constructs they really need to support. The B3 IR looks very simple for this reason. IOW, they figured out that for realistic code they don't need the
261.
▲
by
eliben
11y ago
Top 1% is (based on http://money.cnn.com/calculator/pf/income-rank/ ) >$400k / year income. The billionaires this article talks about are in much, much higher brackets - maybe something like top %0.01
262.
▲
by
eliben
11y ago
This sounds misleading. They mention the French version is a high-end school for high-income parents. But this isn't how the public school system works in the US, right? Wouldn't it be more fair to compare to a high-end private
263.
▲
by
eliben
11y ago
Adapters are simple though, no? At least wherever I see EV charging stations in malls and such, a variety of cars is connected - Leafs, Tesla S, Chevy Volt, and others. Perhaps this is not the most effective/fast way to charge a Tesla,
264.
▲
by
eliben
11y ago
IIRC with Numpy you get CBLAS by default, so not Fortran. But I don't believe there's a noticeable speed difference between them
265.
▲
by
eliben
11y ago
It's probably not the main reason (technology improvements in oil extraction is), but it sure doesn't hurt!
266.
▲
by
eliben
11y ago
"Sometimes you’re ahead, sometimes you’re behind. The race is long and, in the end, it’s only with yourself." [ https://en.wikipedia.org/wiki/Wear_Sunscreen ]
267.
▲
by
eliben
11y ago
But Intel is far from being the richest tech company out there. What's $14bln for Apple with $100s of billions of cash in the bank? It's not that much for Google either, and and other tech giants.
268.
▲
by
eliben
11y ago
Agner is legendary, but this piece is too Intel-focused. It operates under the assumption that only Intel can push the industry forward. Yes, we're unlikely to see a lot of further process reductions with Silicon, and yes power is a pr
269.
▲
by
eliben
11y ago
Interesting. Being a framework and more flexible sounds like something that's more programmer oriented rather than more "common people" oriented. I'll check out how you managed to pull this off once I get some free tim
270.
▲
by
eliben
11y ago
Looks nice, Armin A question (that will surely become a FAQ) - how does this compare with Pelican? Is this a non-programmer-friendlier alternative to Pelican?
More ›