Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
klibertp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
181.
▲
by
klibertp
1y ago
> It should also be noted that handling state like that is not really idiomatic Erlang. It's not about the state but about intermediate results. When you have a value that you pass to one function, and then you need to pass the resu
182.
▲
by
klibertp
1y ago
You're assuming that named lambda is the same thing as a function, which often isn't true. Unless you mean that `=>` should be ambiguous depending on scope (lambda inside a function, a function in global scope)? That would also
183.
▲
by
klibertp
1y ago
> Just curious, why is this? All of the Erlang debugging stuff seems to work. But you'd see a decompiled Erlang-ish code in the (WX-based, graphical) debugger, no? Genuinely curious, I think it was like that last I checked, but th
184.
▲
by
klibertp
1y ago
> I'm not really sure what the appeal of Elixir as a language is actually supposed to be Easy: - rebinding - higher-level OTP abstractions - AST macros - nicer, more readable syntax - (optionally) cleaner stdli
185.
▲
by
klibertp
1y ago
> Other than the online version I'm an idiot. I looked at this page: https://shenlanguage.org/TBoS/tbos.html many times, tried clicking on the table of contents, realized that chapter titles are not links, and
186.
▲
by
klibertp
1y ago
I wanted to buy it - I don't remember exactly, but I think I couldn't find an e-book version, and the paper one was expensive and didn't even ship to my country :( I hope to be wrong on that, though, do you know if there'
187.
▲
by
klibertp
1y ago
Hm, my impression is based on the lack of posts or articles with people demanding this to be a feature. I searched, and it just doesn't seem to come up in discussions, and when it does, it's invariably about cl-cont and problems w
188.
▲
by
klibertp
1y ago
You might live in another country where the situation is different, or maybe my experiences are outdated (20 years later, they might be). What I remember is unfairness and corruption, feudal-like relationships, tons of wasted time on things
189.
▲
by
klibertp
1y ago
Yup. Somehow, I prefer[1]: (funcall #~s:gi/abc/def/ "Testing abc testing abc") to the five lines of the equivalent made with macros, function calls, and keyword arguments. I know all the problems with reade
190.
▲
by
klibertp
1y ago
Thank you!! I was very interested in `convert-thread-to-coroutine` - I saw it on the ELS presentation, and when I went spelunking in the CMUCL codebase, I found the prototypes for `fork` and `resume`, but (probably because CMUCL is single-t
191.
▲
by
klibertp
1y ago
That's on quicklisp, not Coalton. Honestly, quicklisp is one of the worst parts of CL nowadays (right after the lack of coroutines[1], which is by far the worst offender.) It should have been replaced a long time ago. ASDF3 provides a
192.
▲
by
klibertp
1y ago
It needs a lot more good tutorials about its type system. Lacking the background in whatever subfield of math that would help here, I couldn't type my way out of a wet paper bag in it. I'd love a concise, down-to-earth, exposition
193.
▲
by
klibertp
1y ago
Obviously, also available in CL, in Serapeum library[1]. Racket is credited in the docstring (since it's ~> instead of ->). Also, `nest` works very well for unnesting forms[2] [1] https://github.com/ruricolist
194.
▲
by
klibertp
1y ago
> It has value because a student can only get it by learning and problem-solving. No. That's how it should be, but the reality looks different: it has value because it shows that someone spent 3+ years doing what they were told to d
195.
▲
by
klibertp
1y ago
> If I recall correctly, there are macros to control the level of code optimization? Yup, you can either `(proclaim (optimize (debug 3) (speed 1)))` somewhere, which will take effect globally, or you can `(declare (optimize ...))` inside
196.
▲
by
klibertp
1y ago
In most of those implementations (certainly in SBCL) it's either you break or step; you can't start stepping from a breakpoint. SBCL got some support for that this year, see https://news.ycombinator.com/item?id=437
197.
▲
by
klibertp
1y ago
You're not the first one to think so: https://github.com/robert-strandh/SICL I'm unsure how complete it is, but it seems to cover much of the standard.
198.
▲
by
klibertp
1y ago
See this demo: https://smap.curry-lang.org/smap.cgi?12 - it's described better. Notice, on the left, a drop-down menu showing "PACKS 3.8 /one-value" -> switch this to "/all-values". The
199.
▲
by
klibertp
1y ago
> Sounds like there is the functionality, but lacking the visual cues/affordances? Yeah, some things are missing (arbitrarily moving control to a given line (even if it precedes the current one) in a function, stepping into some fun
200.
▲
by
klibertp
1y ago
My bad, I mean source-level debugger. Something that allows you to step through forms as they are in the source, unexpanded and not decompiled. It should allow jumping to a line or over an expression, continuing to a point, seamlessly stepp
201.
▲
by
klibertp
1y ago
> I wonder if you also kind of shrug at the importance of those things. Yes, to an extent. I suspect I could nitpick on the points ("but X still works", "this isn't how you work with CL", "it's still be
202.
▲
by
klibertp
1y ago
I tried using CL this year for a new version of my personal static site (blog) generator. Yes, it's incredible and still an alien technology in some respects. Native AOT compilation at the level of functions with hot swapping - and wit
203.
▲
by
klibertp
1y ago
-▶ swipl -s treasure_hunt.pl Welcome to SWI-Prolog (threaded, 64 bits, version 9.2.9) SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software. Please run ?- license. for legal details. For online help and
204.
▲
by
klibertp
1y ago
The flashlight should be automatically on in this case: flashlight_on :- at(flashlight,holding), at(battery,holding). This condition is checked when you try to reach "woods" and "woods_1". (And that's the o
205.
▲
by
klibertp
1y ago
I only learned Prolog as a hobby, so I may be mistaken, but the quality of the code seems really bad? Starting from keeping game state in a bunch of magic globals (assert/retract everywhere), to a lack of input parsing (even though DCG
206.
▲
by
klibertp
2y ago
Not being flat as a pancake could have played a role, though.
207.
▲
Pie Menu Cookbook
(donhopkins.medium.com)
2 points
by
klibertp
2y ago
|
0 comments
208.
▲
by
klibertp
2y ago
> They definitely smell bad ??? No, they don't. They only smell bad when they're kept standing in their urine, which is still not worse than a hairdresser. Compared to dogs (or ICE cars) horses smell way less. They do sweat to
209.
▲
by
klibertp
2y ago
Too late to edit, but someone chimed in in the thread linking to another issue, this time about the word "retard", here: https://github.com/orgs/community/discussions/79223 From my testing, I see th
210.
▲
by
klibertp
2y ago
How could I not have known about this gem for so long?! ;; Created: May 1987 Guess I'm one of today's lucky 10000 :)
More ›