RogerBW, to raku
@RogerBW@emacs.ch avatar
RogerBW, to raku
@RogerBW@emacs.ch avatar
benjamineskola, to random
@benjamineskola@hachyderm.io avatar

Started reading ‘Modern Perl’ on the train to work the other day. #Perl was the first programming language I learned, 20 years ago now, but I’ve hardly used it in probably 15 years now.

Not yet sure what I’d use it for, though. Better shell scripts? I’d normally choose Python/Ruby for that.

profoundlynerdy,
@profoundlynerdy@bitbang.social avatar

@benjamineskola There is a very new OOP system: https://ovid.github.io/articles/the-future-of-perl.html which looks good but I haven't actually used it myself.

I work Cybersecurity, I mostly use for quick one-off scans when someone asks me, "are we vulnerable to XYZ?" when XYZ has a (mis)configuration element to it.

A lot of my hobby code is using these days as I really enjoy the language's mutability.

kate, to random
@kate@fosstodon.org avatar

If you’re designing a programming language, please consider allowing hyphens in identifiers. Hyphen-separated text (kebab-case) is more readable than camelCase, and doesn’t require use of the shift key like camelCase and snake_case. There’s no ambiguity with subtraction if you require spaces around binary operators (which every style guide I’ve ever used requires anyway).

snonux,
@snonux@fosstodon.org avatar

@kate supports it!

ovid, to javascript
@ovid@fosstodon.org avatar

I started programming in 1982. Though I'm known as a developer, I tried to remember every other languages I've programmed in.

, #C, 6809 Assembler, , VBScript (and its many variants), , , , , , , Easytrieve, and probably a few others.

I wish I had gotten a job in Prolog, primarily because I loved what I could create with it. I don't love programming; I love creating.

What are you languages?

RogerBW, to raku
@RogerBW@emacs.ch avatar
RogerBW, to raku
@RogerBW@emacs.ch avatar
profoundlynerdy, to raku
@profoundlynerdy@bitbang.social avatar

What are some underappreciated superpowers that and/or has EXCLUDING and ?

RogerBW, to raku
@RogerBW@emacs.ch avatar
RogerBW, to raku
@RogerBW@emacs.ch avatar
mjgardner, to programming
@mjgardner@social.sdf.org avatar

@perl @rakulang It's not a question: You need to show off your favorite language with licensed and merchandise that benefits @PerlRakuFoundation.

has you covered (literally) with uniquely designed t-shirts, hoodies, sweatshirts, phone cases, drinkware, mugs, and stickers: https://the-perl-store.creator-spring.com/

And @freewear has their own set of onion, camel, and logo garments and stickers: https://www.freewear.org/PerlandRaku

RogerBW, to raku
@RogerBW@emacs.ch avatar
RogerBW, to raku
@RogerBW@emacs.ch avatar
RogerBW, to raku
@RogerBW@emacs.ch avatar
rakulang,
@rakulang@fosstodon.org avatar

@RogerBW

Solution to 1. with shortcutting:

sub uniqueoccurrences(@a) {
@a.repeated.head =:= Nil
}

https://docs.raku.org/type/Any#method_repeated

Also note that The Raku Programming Language uses the tag, to not interfere with the good people doing Raku pottery.

mjgardner, to raku
@mjgardner@social.sdf.org avatar

@Perl Per @PerlRakuFoundation's announcement yesterday,* The & Conference 2024 in Las Vegas is now accepting proposals for live in-person session talks! https://tprc.us/talks

Need ideas? That page also has previous conference schedules as well as a wiki link to request topics.

New this year: a peer-reviewed track with its own process: https://science.PerlCommunity.org

samebchase, to raku
@samebchase@fantastic.earth avatar

I want to try out https://www.morling.dev/blog/one-billion-row-challenge/ in

The baseline solution in Java clocks in just under 5 seconds, so with Raku what should be a decent timing for a closest translation of that. The optimized solutions are less than 2 seconds.

What is a good time to target?

samebchase,
@samebchase@fantastic.earth avatar

Dear rakoons, what's the best way to memory map a file?

Do I need to write a C program and use NativeCall or whatever?

Even doing the equivalent of wc -l in pure Raku on a 12 G file takes far too long.

The fast solutions for the 1brc challenge, all seem to be memory mapping the file.

VZ, to raku
@VZ@fosstodon.org avatar

I really like , in theory, and would like to use it more, but whenever I have something to write, I still often end up with using for it.

Just the latest example: I had to write a simple text-wrangling script that needed UUID generation. With Perl, I used App::Fatpacker to embed UUID::Tiny to make the script runnable just about anywhere without any extra dependencies, but there is nothing like that for Raku AFAIK and it just didn't seem worth it to do something more complicated.

mjgardner,
@mjgardner@social.sdf.org avatar

@VZ @leonerd IMHO is great but it’s also a classic case of Fred Brooks’ “second-system effect”: https://archive.org/details/mythicalmanmonth00broo/page/53

mjgardner, (edited ) to webdev
@mjgardner@social.sdf.org avatar

@Perl After reading https://doi.org/10.1145/3386327, I’m imagining an alternate #WebDev history where #Netscape hired #LarryWall instead of @BrendanEich. (The latter previously worked for co-founder Jim Clark at #SGI, so as always it’s who you know.)

No, I don't think we would have #Perl in our web browsers (and possibly everywhere else). But #JavaScript might have started less #Self-ish and a little more Perl-ish.

KC1PYT,

@mjgardner @Perl @BrendanEich There was a Mozilla project back in the day to migrate PHP, Python, and Perl to the browser at one point. It's a shame it didn't happen!

has some capability to do this with but you don't get access to the DOM I don't think it's a maintained part of the Raku codebase. Also sad.

snonux, to golang
@snonux@fosstodon.org avatar

I created my first mobile app in using . It's a very simple app for logging small ideas and to do tasks on my Android phone into simple text files. These are synced w/ to my Laptop. From there, a glue script adds them to my DB. I know, weird workflow. But I wanted to highlight how easy it is to build cross-platform mobile apps in Go now. Dont have to use the Android SDK.

https://codeberg.org/snonux/quicklogger

ChristosArgyrop, to python
@ChristosArgyrop@mstdn.science avatar

Daughter seriously puzzled why one would create a programming language in which "almost spaces" are used to block statements. Apparently she experienced the FAFO during the coding class at middle school. I have no problem with this, after all , but she is asking about (introduced during the remote coding class during the first 2 years of the pandemic) & now. And this is NOT NORMAL OR OK.

mjgardner,
@mjgardner@social.sdf.org avatar

@ChristosArgyrop Daddy needs to introduce the joy of : https://raku-advent.blog/2022/12/20/sigils/ (via @codesections)

Tell her they’re like spicy . The kids still say “spicy” these days, right?

samebchase, to raku
@samebchase@fantastic.earth avatar

Great post featuring while trying to explain an algorithm using which we can do mental arithmetic to generate pseudorandom numbers.

https://www.hillelwayne.com/post/randomness/

I learnt a few tricks! 👌

timClicks, (edited ) to random
@timClicks@mastodon.nz avatar

0.1 + 0.2 equals what exactly? https://youtube.com/shorts/93iUN_OuqY8

lizmat,
@lizmat@mastodon.social avatar
mjgardner, to Kotlin
@mjgardner@social.sdf.org avatar

I really appreciate today’s by @jjatria: https://perladvent.org/2023/2023-12-24.html

On this , maybe the kids and the kids and the kids and the kids and the kids and the kids and the kids and the kids and the kids and the kids and the kids and all the other kids I can’t fit into a character limit can all play and have fun with each others’ toys.

Peace on Earth, y’all. 🎁

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • mdbf
  • magazineikmin
  • Youngstown
  • everett
  • rosin
  • slotface
  • thenastyranch
  • ngwrru68w68
  • PowerRangers
  • kavyap
  • cisconetworking
  • tsrsr
  • DreamBathrooms
  • anitta
  • tacticalgear
  • khanakhh
  • Durango
  • ethstaker
  • vwfavf
  • InstantRegret
  • modclub
  • tester
  • cubers
  • GTA5RPClips
  • osvaldo12
  • normalnudes
  • provamag3
  • All magazines