Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Johnny_Brahms
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
Johnny_Brahms
9y ago
It doesn't,but op mentioned coming from python and I don't think many programming languages outside the lisp family have anything near a good REPL experience. The few times I have tried to do serious work in python hasn't rea
62.
▲
by
Johnny_Brahms
9y ago
Isn't the array-based heap the true "heap for proletarians"? Not only is it easier to implement, but it is also a lot faster than the purely functional one.
63.
▲
by
Johnny_Brahms
9y ago
As a scheme person I have always envied the ML camp because that's where all the cool stuff has been happening. It is so nice to have someone like Andy that has the brains and the time to bring some of it to guile. Big thanks to Andy a
64.
▲
by
Johnny_Brahms
9y ago
Some lisps let you use . to place procedures infix. IIRC racket allows you to write (x . < . 5), and some schemes have curly infix (a srfi) where {x < 5} gets translated to (< x 5).
65.
▲
by
Johnny_Brahms
9y ago
https://github.com/racket/racket7
66.
▲
by
Johnny_Brahms
9y ago
Because racket isn't as easy to get running on smartphones as something that just compiles to C. With gambitc you are already there.
67.
▲
by
Johnny_Brahms
9y ago
I second this. I can't make any claims about the security of the client, but the way they handle things is confidence-inspiring. I have been in touch with them over some issues I have had,and the support is fantastic. I had an issue wi
68.
▲
by
Johnny_Brahms
9y ago
I shouldnt have read it a second time on my phone. I was right the first time. :)
69.
▲
by
Johnny_Brahms
9y ago
As long as you use the python procedures that are written in C you will not really get much by using pypy. Try it yourself, write some IO and string heavy code and compare. [1] But as you say: for numeric computations python is slow as mola
70.
▲
by
Johnny_Brahms
9y ago
Check out srfi-125 and the make-coroutine-generator: https://srfi.schemers.org/srfi-121/srfi-121.html That is implemented using call/cc, and even though it is mostly a convenience function, it shows how call/
71.
▲
by
Johnny_Brahms
9y ago
Start with escape continuations (using call/cc to make an early escape) and work onwards from there. It didn't click for me until the third tutorial, and there are lots of resources out there
72.
▲
by
Johnny_Brahms
9y ago
Every time I try web development I feel like I have lost every sense of control. It feels like abstractions upon abstractions that are governed by conventions hidden from me, and every time I step outside them things break in weird undocume
73.
▲
by
Johnny_Brahms
9y ago
And I didn't know it, hence me thinking there were 5 arguments.
74.
▲
by
Johnny_Brahms
9y ago
Haha. I just proved you right. Common lisp apparently has block comments.
75.
▲
by
Johnny_Brahms
9y ago
Which fits the grammar. Sure, you are using some literals, but that is an application of the list procedure with 5 arguments.
76.
▲
by
Johnny_Brahms
9y ago
Which are you comparing to? They are quite specialised, and are probably expensive as far as control operators go, but delimited continuations beat undelimited continuations every day of the week. I remember benchmarking the coroutine gener
77.
▲
by
Johnny_Brahms
9y ago
Some schemes now have delimited continuations [1], and with Dybvig behind the wheel of Chez scheme I wouldn't be surprised if they show up there as well. It is a superior construct in every way. The performance and memory usage, even f
78.
▲
by
Johnny_Brahms
9y ago
> [The Chinese internet] seems to be in the process of shrinking even further, compressed onto a platform that is owned not by the people or the government, but by a for-profit corporation As someone who does not use Facebook it is hard
79.
▲
by
Johnny_Brahms
9y ago
Andy Wingo's fibers for guile scheme is similar: https://github.com/wingo/fibers/wiki/Manual Really neat, and the implementation is really a testament to the power of delimited continuations.
80.
▲
by
Johnny_Brahms
9y ago
I sold a ukulele to a friend of mine for ~10btc back in 2010. I have sold most of it probably getting awarded "worst citizen" by the Swedish IRS. Best affair I ever done was to lose those coins until I stumbled upon them in 2015.
81.
▲
by
Johnny_Brahms
9y ago
There is also the small problem that we soon won't be able to. Peak phosphorus is a thing, and while it won't affect us in the west much, it will lead to famine. https://en.m.wikipedia.org/wiki/Peak_phosphorus
82.
▲
by
Johnny_Brahms
9y ago
It wasn't theoretical in the sense "this could potentially be a problem" as with most crypto vulnerabilities. We don't know that it was performed, but we know that the protocol was vulnerable, either because of malice or
83.
▲
by
Johnny_Brahms
9y ago
Well, there was this glaring hole that let the server MITM secret chats on every key negotiation back when they were all cocky on HN. That was not theoretical at all, and very much something that could be used without detection, even if t
84.
▲
by
Johnny_Brahms
9y ago
I would say that cotinuations In the sense of call/cc are overused. You have to look hard for a problem where undelimited continuations are in any way better than delimited ones. For the vast majority of cases, delimited continuations
85.
▲
by
Johnny_Brahms
9y ago
Check out Andy wingo's blog. He implemented delimited continuations for guile, and provides lots of sources for his implementation. And ofcourse everything by Oleg Kiselyov
86.
▲
by
Johnny_Brahms
9y ago
Python is actually pretty fast for some things. The string and I/O operations are all written in decently fast C, so some types of problems are actually a good fit for python, speed wise. It won't beat a well written java programm
87.
▲
by
Johnny_Brahms
9y ago
There is of course sxml, which is more or less well-defined. But that would probably suffer from the same problems as xml, since it is just xml written as s-expressions. There is one pretty damn solid SSAX parser by Kiselyov that has been p
88.
▲
by
Johnny_Brahms
9y ago
MIDI 1.0 is maybe not perfect, but it is still unchanged since 1983. People have tried to replace it for 2 decades, but failed to provide any enhancements worth a switch. But MIDI doesn't really fit that description since it builds on
89.
▲
by
Johnny_Brahms
9y ago
I rip all my files to flac, mostly because I don't know which lossy formats will be popular in 4 years. Anyway, anecdote time: I was actually part of a double blind test. On a really really good setup with very little background noise
90.
▲
by
Johnny_Brahms
9y ago
I do think this is the direction it is heading. There are new "smart" music stands coming to the market now with similar features. Conductors can write notes about certain parts that can be accessed by musicians. Opera musicians (
More ›