Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tmtvl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
781.
▲
by
tmtvl
2y ago
If you want the parameters to be indented the same amount (why you'd want that, I don't know, but whatever floats your boat): blah( blip, blop, bloop ); And anyway, 'you see the code the exact same way I
782.
▲
by
tmtvl
2y ago
> Well, Python supports arbitrary precision integers. And some other niche languages (Sail is one I know). As a Lisper, I very carefully chose an example to account for arbitrary-precision integers (so X + X where X is, say, 8^8^8^8 (r
783.
▲
by
tmtvl
2y ago
What would happen then if someone wants to make a movie about a book published a few centuries earlier? Would they have to do deep archaeology to find the heirs of the author, the heirs of the heirs, the heirs of the heirs of the heirs,...
784.
▲
by
tmtvl
2y ago
I believe the analogy is as follows: Imagine that you've paid the construction company after it finished building your house. You then go and live in it. One year later you get an invoice because you're living in the house they bu
785.
▲
by
tmtvl
2y ago
> What I can't do is write a programming language where I use the universally recognised "+" symbols for this operation, call it "addition" and claim that it's totally reasonable. As a programmer, you'
786.
▲
by
tmtvl
2y ago
Cool, that's the value of languages with macros: adding useful features which help combat needless infrastructure code (AKA boilerplate).
787.
▲
by
tmtvl
2y ago
Ha! Yeah, imagine me streaming my working on AoC, basically anyone tuning in the stream would say 'you're doing it wrong, stop having fun!' and leave.
788.
▲
by
tmtvl
2y ago
I still haven't made my way through all of the 2015 problems yet. But I don't play the game correctly any way: instead of trying to solve the problems as fast as I can, I try to write well-documented easily maintained code which r
789.
▲
by
tmtvl
2y ago
I believe Rust has ADTs as well, though I don't know whether it has Lisp-style ad-hoc ADTs, with which you could easily do something like: (defun* foo ((bar Bar)) (:returns (or Baz QuuxException ZotException YendorException))
790.
▲
by
tmtvl
2y ago
Guile Emacs already is fully usable, and has been for a while, but because basically nobody is using it, it bitrots right quick and there's nobody hyping it up; which results in nobody using it and it gradually withers away until the n
791.
▲
by
tmtvl
2y ago
In Forth parsing doesn't even come into play, because an operator just tries to pop as many arguments off the stack as it needs. Annoyingly, that does mean there's no way to tell what the following: a b + Means, as it can b
792.
▲
by
tmtvl
2y ago
Ultima IV, Quest of the Avatar. Okay maybe not entirely, but it's more accurate than your average game's concept of 'sailing in the same direction as the wind = fast'.
793.
▲
by
tmtvl
2y ago
Wouldn't that be true of infix syntax as well? For example, if I define an operator, %, which divides one number by a second number and then multiplies it by a third, you have to know its arity to parse: 70 % 90 100 * 10 Even wo
794.
▲
by
tmtvl
2y ago
Mathematical notation often gets brought up as an example of there being problems with Lisp syntax. I have problems with that. For one, how often do you actually write... foo := 7 * 3 + 4 - 5; Instead of: foo := 20; Which, in
795.
▲
by
tmtvl
2y ago
Emacs, which has been saving me from Vim-induced RSI since 2019.
796.
▲
by
tmtvl
2y ago
53 days ago there was a thread about the best book we've ever read. As I have re-read the book this year I will link my comment: https://news.ycombinator.com/item?id=41758060 For a general recommendation for a book to
797.
▲
by
tmtvl
2y ago
I am more thankful for Free Software (preserving user freedoms) than for Open Source Software (free labour for corporations, screw users), but when it comes to OSS I suppose I am most thankful for SBCL.
798.
▲
by
tmtvl
2y ago
I have heard it said that a problem with GPG is that it does encryption AND signing when you'd ideally have separate tools for those tasks, like, for example, age for encryption.
799.
▲
by
tmtvl
2y ago
If it says 'for a limited time', then wouldn't tying itmto the lifetime of the author be unconstitutional? Because strictly speaking it's impossible to predict whether an author's life will end.
800.
▲
by
tmtvl
2y ago
GNU Guile also has a PEG library in its standard library (see < https://www.gnu.org/software/guile/manual/html_node/PEG-Pars... >).
801.
▲
by
tmtvl
2y ago
Oh, the programs are supposed to take an integer from the command line? Then I wonder how many of them would fail when given an integer that's just a wee bit too large (like, say (2^129)-1).
802.
▲
by
tmtvl
2y ago
You may want to add a '/s' at the end of your post there, because sarcasm doesn't really translate on the internet. The only way I can tell it's sarcasm is because nobody would really go 'throw away the old stu
803.
▲
by
tmtvl
2y ago
I wonder why it's called 'Owl Lisp' instead of 'Owl Scheme'. Could make a funny parallel to Chicken Scheme.
804.
▲
by
tmtvl
2y ago
Common Lisp does assertions right: you can let ` assert ' provide a restart which allows the user to fix a problem when it crops up. For example: (assert (< index (length some-vector)) (index) "Can't change the
805.
▲
by
tmtvl
2y ago
> The first two lines are tagged unions Are they? But in the Nothing you have 2 identical members (` nothing ' without arguments), won't that throw an exception? To borrow Rust syntax (pun intended): enum Nothing { no
806.
▲
by
tmtvl
2y ago
I'll second that recommendation, it's a bit like a gentle mixture between SICP and TAOCP. A very enjoyable read.
807.
▲
by
tmtvl
2y ago
The problem is we're putting millions of tons of carbon into the air every year and it takes a while for a freshly planted tree to reach a ton of carbon stored. So you would need to plant millions of trees per year and take care of the
808.
▲
by
tmtvl
2y ago
I believe a common joke is about a protective parent sending a child on an errand and then following along to see if the child does okay.
809.
▲
by
tmtvl
2y ago
The Torvalds Zombie Shuffling Desk does seem like it could be a hit.
810.
▲
by
tmtvl
2y ago
I don't know, I start feeling off when just watching a video of the game (a little queasy, a bit of a headache). I think that playing it in VR would be a horrible experience.
More ›