Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
b2gills
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
b2gills
2y ago
I didn't downvote, but this is by far not the first time something like that was stated (Raku being similar to Roku). I know I'm tired of seeing it, I'm sure others are as well.
2.
▲
by
b2gills
2y ago
I'm sure that there has been more changes from Perl 5.8 to Perl 5.40 than there is between Python 2.0 to Python 3.x (Whatever version it is up to at the moment.) What's more is that every change from Python 2 to Python 3 that I&#x
3.
▲
by
b2gills
2y ago
I've often thought of Raku as being a lot like the English language. It borrows heavily from other languages. Of course since Raku has the benefit of an actual designer, it is more cohesive than English.
4.
▲
by
b2gills
2y ago
I've heard that the best way to solve a hard problem is to create a language in which solving that problem would be easy. Basically creating a Domain Specific Language. Raku isn't necessarily that language. What it is, is a langua
5.
▲
by
b2gills
2y ago
This has nothing to do with the halting problem. And I have no idea why you think there would be 'terrible consequences'. 2, 4, 8 ... * The `...` operator only deduces arithmetic, or geometric changes for up-to the previous
6.
▲
by
b2gills
2y ago
That's nothing, use it to calculate the sum of range of values say [+] 1..10000000000000000000000000000000000000000000 Which will result in you getting this back in a fraction of a second 5000000000000000000000000000000000000000
7.
▲
by
b2gills
2y ago
I once heard of a merger between a company that used Java, and another one that used Perl. After that merger, both teams were required to make a similar change. If I remember right, the Perl team was done before the Java team finished the d
8.
▲
by
b2gills
2y ago
Many of the features that make Perl harder to write cleanly have been improved in Raku. Frankly I would absolutely love to maintain a Raku codebase. I would also like to update a Perl codebase into being more maintainable. I'm not sure
9.
▲
by
b2gills
2y ago
Java inspired the Design Patterns book. Every Design Pattern is a workaround for a missing feature. What that missing feature is, isn't always obvious. For example the Singleton Design Pattern is a workaround for missing globals or dyn
10.
▲
by
b2gills
2y ago
"Actual parsers" aren't powerful enough to be used to parse Raku. Raku regular expressions combined with grammars are far more powerful, and if written well, easier to understand than any "actual parser". In order t
11.
▲
by
b2gills
2y ago
>> magic functions—which behave differently on lists-of-scalars vs. lists-of-lists by special default logic ... That is completely the wrong way to think about it. Before the Great List Refactor those were dealt with the same by most
12.
▲
by
b2gills
4y ago
I don't think Perl is really that hard to learn. It does have a few traps for people new to the language though. Raku on the other hand is easy to learn. Of course it is so easy to learn that knowing another language, any other languag
13.
▲
by
b2gills
5y ago
The `but` keyword takes an instance and something to mix into it. So you can say something like this: 0 but True --- Since `True` is a `Bool` it automatically creates a role that has a method `Bool` that returns `True`. my $r
14.
▲
by
b2gills
5y ago
It was originally for helping to organize Perl events. It acted as an entity that could enter into contracts for insurance and rental purposes. It was extended to have grants among other things. Larry Wall has historically only really been
15.
▲
by
b2gills
5y ago
I think it matters who your audience is. If your audience is mostly programmers then just use `*` If your audience is physicists or mathematicians then `×` or `·` may be a better fit. When turning a math expression into code, it is often ha
16.
▲
by
b2gills
5y ago
It would be easy to just make `·` an alias. Then that code would work. my &infix:< · > = &infix:< × >; (After all `×` itself is just an alias of `*` in the source for Rakudo.) If you need more control you can writ
17.
▲
by
b2gills
5y ago
They'd probably just define each of the segments separately and require you to use a zero width joiner.
18.
▲
by
b2gills
5y ago
Raku say π ≤ 3+⅘ ≤ τ # True say π² ÷ 4 # 2.4674011002723395
19.
▲
by
b2gills
5y ago
I remember reading an article that the width of railway track was set by the width of chariots. I don't remember much about the article except it ended with some quip about the width of a car was determined by a couple of horses asses.
20.
▲
by
b2gills
5y ago
In Raku you can also use × (U+D7) for multiplication # this assumes that ϕ, ψ, and θ have already been set my \cϕ = ϕ.cos; my \sϕ = ϕ.sin; my \cψ = ψ.cos; my \sψ = ψ.sin; my \cθ = θ.cos; my \sθ = θ.sin; my \alpha = [
21.
▲
by
b2gills
5y ago
Technically it is MoarVM that handles graphemes as synthetic codepoints. We call it NFG for Normalized Form Grapheme. The JVM and JavaScript backends currently use the built-in string handling features. Which means that they are just as bro
22.
▲
by
b2gills
5y ago
It certainly does. (Or rather Rakudo the compiler for Raku does.) There are some for people coming from Perl. say $^V; ===SORRY!=== Error while compiling: Unsupported use of $^V variable; in Raku please use $*RAKU.version
23.
▲
by
b2gills
5y ago
You can if you put in the work to set it up. There are two (nearly identical) talks by Emily Shea - Perl Out Loud https://www.youtube.com/watch?v=Mz3JeYfBTcY - Voice Driven Development: Who needs a keyboard anyway? htt
24.
▲
by
b2gills
5y ago
Actually once you setup a compose key it can become second nature. I program in Raku, which can be written using only ASCII, but it can be clearer if you mix in a bit of Unicode. For example, a raw quote can be written like this using only
25.
▲
by
b2gills
5y ago
I also wonder how many people understand that linenoise meant noise on a data cable of some description. i.e. the difference between `d` and `$` is a single bit. If your cable happened to glitch during that first `1` bit, you would get a `$
26.
▲
by
b2gills
5y ago
So does Raku say 3×(1÷3) # 1 It works because `1÷3` is a rational number. my \rat = 1÷3; say rat.numerator; # 1 say rat.denominator; # 3 If you multiply it by 3, you get another rational number which represe
27.
▲
by
b2gills
5y ago
I'm not sure of the need to do that. Not for parsing anyway. A well designed regex system is enough without tokenization. The parser for the Raku language, for example, is a collection of regexes composed into grammars. (A grammar is a
28.
▲
by
b2gills
5y ago
One of the things that `use strict` does is enable `use strict "vars"`. use strict; no strict qw(vars); $foo = $bar; That's part of the reason `use strict` is recommended. --- The other major reason is `&quo
29.
▲
by
b2gills
5y ago
You might be right about why Unicode was slow. In which case I was right. > So much so that to properly support Rakudo on Parrot would require a rewrite of [the middleware]. Which also means that most of the work you would have done to P
30.
▲
by
b2gills
5y ago
The thing that P6 really needed was a new object system. There were two options. 1. Create a new object system for Parrot. 2. Create a new object system and a VM around it. Considering the object system needed is almost nothing like the one
More ›