Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
klibertp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
241.
▲
by
klibertp
2y ago
You shouldn't use the OS's Python for your work. That Python is for OS utilities' use. It's meant to be old and stable. Instead, use pyenv, conda, asdf, mise, etc. - it'll allow you to install multiple versions of P
242.
▲
by
klibertp
2y ago
Yeah, back then, `pip install` just didn't work for anything written in C. I seem to remember a Windows-specific site with builds of popular extension packages - Cython, lxml, OpenSSL, and the like. It was unofficial, and you couldn&#x
243.
▲
by
klibertp
2y ago
There is some great work being done here - I'm watching GToolkit advances, and while I don't fully buy the "moldable" hype, the UX of reading and writing code in GT feels like sci-fi sometimes.
244.
▲
by
klibertp
2y ago
TIL: Reuters has a REST API: https://www.reuters.com/pf/api/v3/content/fetch/articles-by-... But I can't find any reference for it, somehow. How did the author know how to write this https:&#x
245.
▲
by
klibertp
2y ago
The first thing I'd do would be to try to theme it with textures from Planescape: Torment... Joking aside, I've been hearing that radial menus are bad UX for decades, but I never understood why. For me, it was always much easier t
246.
▲
by
klibertp
2y ago
I said: "from their respective perspectives" - that is, subjectively. You're talking about objective facts. I don't disagree with you, but you're also not (visibly) disagreeing with me: we're discussing two ent
247.
▲
by
klibertp
2y ago
> personally I prefer mine Sure! I just thought if we're talking about "Syntactic Syrup of Ipecac" :D we can as well take it to the extreme, just to show how sugary Raku can really be (if you want). As for the community si
248.
▲
by
klibertp
2y ago
> The solution to this problem is straightforward. Putin can get out of Ukraine. Or Ukraine can surrender. "Simple" to do, "easy" to achieve, no more Ukrainians need to die. Disclaimer: I'm not suggesting Ukraine
249.
▲
by
klibertp
2y ago
> there is a very [tiny, very] loyal core of smart people FTFY ;) Honestly, I love Raku - it's almost like Racket of the non-sexp world - but the community is microscopic, and the development is slow. It's a shame because, sole
250.
▲
by
klibertp
2y ago
It's a standard assert, so whatever happens on assertion failure normally happens here, too. This is orthogonal to refinement types - they are concerned with whether the check is made or not (ie. with them you cannot accidentally forge
251.
▲
by
klibertp
2y ago
My understanding is that you get a type error when the type checker cannot prove the result of an operation conforms to a refined type. For constants, it's easy: `(Nat 5) - (Nat 3)` is Nat while `(Nat 5) - (Nat 6)` is a type error. For
252.
▲
by
klibertp
2y ago
Yup, FixScript is a new language. Author says in a blog post[1]: > It started as a very simple scripting language for a specific need. But when I caught myself using it also for the main program it became obvious that the language is muc
253.
▲
by
klibertp
2y ago
Shown on HN: https://news.ycombinator.com/item?id=34315137
254.
▲
by
klibertp
2y ago
To me, a "hard" fork is one where you plan not to maintain any compatibility with your upstream and not to share any future code in either way (neither from original to fork nor back). "Soft" forks often retain a degree
255.
▲
by
klibertp
2y ago
Junctions introduce a degree of non-determinism to the language. Think Prolog variables. Junctions allow you to talk about a set of solutions without having to mind how they are kept together or how the operations are distributed between me
256.
▲
by
klibertp
2y ago
I think this is the closest equivalent for hyper: https://groovy-lang.org/operators.html#_spread_operator
257.
▲
by
klibertp
2y ago
You're making a mistake if you're thinking like that. Applying an operation that generally works on single values over a list of values automatically is an incredibly powerful technique. If you have ever used Numpy, you will appre
258.
▲
by
klibertp
2y ago
For reference (for the "parse transform" approach in Erlang): https://github.com/rabbitmq/erlando - it doesn't look maintained, but it's probably still usable; otherwise, you might get some inspirat
259.
▲
by
klibertp
2y ago
Take a look at Erlang's "parse transforms" which would allow you to implement some syntactic sugar. That's what is used to implement qlc, the query language for ETS/Mnesia - that one adds new semantics to list compr
260.
▲
by
klibertp
2y ago
> I don't know anything about adversarial-to-human information I also don't know this particular term, but my it reminds me of https://en.wikipedia.org/wiki/Roko%27s_basilisk and the related https:/&
261.
▲
by
klibertp
2y ago
> Since you mention it, I would say that raku is yet to find its killer app. [...] I for one would be happy to have a strategy for this - and would welcome your thoughts on what this should contain. Please take a look at Glamorous Toolki
262.
▲
by
klibertp
2y ago
> but the community is very open and friendly Yes, it is - you'll see I said precisely that in another comment here. :) However, I will not yield in that it's tiny. Emacs sub on Reddit has 63k users, half of whom are Emacs Lisp
263.
▲
by
klibertp
2y ago
> I'm not convinced that current generative AI is a good fit for this kind of game. IMO, the heart of the text adventure game is the world model, and LLMs are notably lacking here. It's hard to believe the game is simulating a
264.
▲
by
klibertp
2y ago
Garbage in, garbage out. The ability to recognize absurd statements has nothing to do with correctly processing them. You're looking for something LLMs don't have in them; that doesn't mean there's nothing useful in them
265.
▲
by
klibertp
2y ago
The community is tiny. The fact that it was called "Perl6" for 20 years (Raku is from after 2019 I think) absolutely doesn't help in anything, the least in adoption. The historical churn in terms of VM (experimental in Haskel
266.
▲
by
klibertp
2y ago
multi subs allow you to declare multiple overloaded versions of a function (subroutine, sub). Dispatch between sub bodies happens based on either the type(s) of arguments or based on a truth value of a "guard" - a boolean expressi
267.
▲
by
klibertp
2y ago
Not sure; he was involved in the design in the 2000s, but I haven't seen him while I was active in the community. Some other prominent Perl community members are there (the kinder ones, I'm told).
268.
▲
by
klibertp
2y ago
If you want a quick overview of what you can do with Raku (as opposed to what it is/how it works), I found this book to be nice: https://leanpub.com/raku-oneliners Also, make sure to hop on Freenode (or Discord bridge
269.
▲
by
klibertp
2y ago
Not my experience with it: the language is indeed rich, but not overly so. The number of concepts you need to learn is comparable to (modern) Python or less. Raku is also very consistent, choosing to apply already existing concepts rather t
270.
▲
by
klibertp
2y ago
Non-interactive shell scripting. It's actually the best language in this niche, outclassing Perl and Tcl in terms of features and Python/JS in terms of expressivity. General purpose scripting. Orders of magnitude fewer packages an
More ›