Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lizmat
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
What Is Table-Oriented Programming?
(wayland.github.io)
5 points
by
lizmat
2y ago
|
0 comments
32.
▲
by
lizmat
2y ago
Yeah, it was. Sorry, misread :-)
33.
▲
by
lizmat
2y ago
The current definition: An ordinary identifier is composed of a leading alphabetic character which may be followed by one or more alphanumeric characters. It may also contain isolated, embedded apostrophes ' and/or hyphens -, prov
34.
▲
by
lizmat
2y ago
> I think Raku is an interesting language and that people should check it out, to be clear I agree :-) > That doesn't mean I agree with every choice the Rakudo implementation has made Indeed. Some of these choices have their ro
35.
▲
by
lizmat
2y ago
> It builds a lookup table of grapheme clusters, and represents them in memory as negative i32s. Only for those grapheme clusters that do not have a representation in Unicode! Also, these negative i32s are really an implementation detail
36.
▲
by
lizmat
2y ago
Check out https://rakudoweekly.blog/blog-feed/
37.
▲
by
lizmat
2y ago
That's exactly what the Raku Programming Language does. Except that the "x" is represented by "*", so it reads: grep(*.price < 10) This is referred to as "Whatever-currying": https:/
38.
▲
by
lizmat
2y ago
The Raku programming language has, with some tweaks: data.store.book.grep(*.price < 10).map(*.title) Although personally I would write that as: data.store.book.map: { .title if .price < 10 } which combines the filter
39.
▲
by
lizmat
3y ago
In Raku, if you want to go typed, you can! It's called "gradually typed". my Int $a = 42; # ok my Int $a = "foo"; # Type check failed in assignment to $a; expected Int but got Str ("foo")
40.
▲
by
lizmat
3y ago
Maybe a less ambitious plan would be to convert all of the examples in it to Raku. That would at least be a less daunnting task.
41.
▲
by
lizmat
3y ago
None that I know of. Also, I'm unsure about MJD's feelings about adapting it to a Raku version.
42.
▲
by
lizmat
3y ago
At one point I started writing a book about Raku for Perl programmers. For various reasons, I did not finish that: but what did got written, wound up as a 24-part blog series on dev.to: https://dev.to/lizmat/series
43.
▲
by
lizmat
3y ago
Since commercial development has stopped (see https://commaide.com/discontinued ) the Edument Team has released the final commercial version of the Comma IDE for the Raku Programming Language for free. The source code will
44.
▲
by
lizmat
3y ago
When was the last time you checked performance? :-)
45.
▲
by
lizmat
3y ago
Which is called the Raku Programming Language (#rakulang) since 2019. $ raku -e 'say 9999999999999999.0 - 9999999999999998.0' 1 https://raku.org
46.
▲
by
lizmat
3y ago
It's actually a = x ?? y !! z And that's because a single : is used for many other semantics in the Raku Programming Language. And ?? and !! standout better in code. https://docs.raku.org/language/op
47.
▲
by
lizmat
3y ago
Please note that in Raku, you can also use a role as a class without having to create a class, through a process called auto-punning. https://docs.raku.org/language/typesystem#Auto-punning
48.
▲
by
lizmat
3y ago
I can assure you, nobody in the Perl crowd is doing any Raku.
49.
▲
by
lizmat
3y ago
Almost in the Raku Programming Language, bit with a single | states.includes('VALID' | 'IN_PROGRESS') is effectively the same as: states.includes('VALID') || states.includes('IN_PROGRESS
50.
▲
by
lizmat
3y ago
I assume this is directed at the author of rak, so I'll answer. $x ~~ $y is basically syntactic sugar for $y.ACCEPTS($x). Using ~~ involves an additional subroutine call, so there's a short-term efficiency issue (as in programs r
51.
▲
by
lizmat
3y ago
$ rak '{.contains: "foo1" & "foo2" & "foo3" & "foo4" &"foo5"}' This actually shows one of the secret powers of the Raku Programming Language: Junctions https:/
52.
▲
by
lizmat
3y ago
FWIW, on some MacBook Pro keyboards, the § is right next to 1: https://keyshorts.com/blogs/blog/37615873-how-to-identify-ma...
53.
▲
by
lizmat
3y ago
> likely need to write an entirely new regex engine Indeed. Also, it should be noted that the Raku Regex engine is not a state machine as such. The regex "slang" in Raku, is basically just another way to write code. Code th
54.
▲
by
lizmat
3y ago
> It does very likely have enormous implications for performance though. Well, but that's only one of the reasons why rak is a lot slower. There's something else going on, but I currently don't have the mindset to investi
55.
▲
by
lizmat
3y ago
- Support for NFG (Normalization Form Grapheme), which e.g. means that you only need to specify 'é' if you want to look for an 'é', and not have to worry about whether the text you're searching in, consists of the s
56.
▲
by
lizmat
3y ago
Author of App::Rak here: > I'm not totally clear on what kind of filtering `rak` does by default By default, rak search all of the files that look like text, by reading the first 2K (if I remember correctly) and using some algorithm
57.
▲
Raku is surprisingly good for CLIs
(buttondown.email)
3 points
by
lizmat
3y ago
|
0 comments
58.
▲
by
lizmat
3y ago
Timing wise, it could very well have influenced Larry Wall at the time!
59.
▲
by
lizmat
3y ago
An introduction to the Raku Programming Language coming from legacy Perl.
60.
▲
by
lizmat
3y ago
> Where do the angle brackets come in? The angle brackets are syntactic sugar for word quoting. <a b c> is syntactic sugar for: ("a", "b", "c") They can be used standalone. Or as pos
More ›