Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 22 20:13
    kolbycrouch commented #1226
  • Jan 22 04:56
    kolbycrouch commented #1226
  • Jan 22 02:47
    krader1961 commented #1226
  • Jan 21 23:51
    kolbycrouch commented #1226
  • Jan 21 21:53
    xiaq commented #1226
  • Jan 21 21:46
    xiaq milestoned #1226
  • Jan 21 21:30
    kolbycrouch commented #1226
  • Jan 21 21:30
    kolbycrouch commented #1226
  • Jan 21 21:17
    xiaq commented #1226
  • Jan 21 21:11
    kolbycrouch commented #1226
  • Jan 21 20:40
    xiaq commented #1226
  • Jan 21 20:29
    xiaq commented #1226
  • Jan 21 08:35
    kolbycrouch opened #1226
  • Jan 21 01:11

    xiaq on v0.15-release

    Fix the panic when referencing … (compare)

  • Jan 21 01:11

    xiaq on v0.15.0-rc2

    Fix the panic when referencing … (compare)

  • Jan 21 01:07
    xiaq closed #1225
  • Jan 21 01:07

    xiaq on master

    Fix the panic when referencing … (compare)

  • Jan 20 20:29
    xiaq milestoned #1225
  • Jan 20 20:29
    xiaq labeled #1225
  • Jan 20 20:29
    xiaq edited #1225
mesajor
@mesajor
[zzamboni(telegram)] Working on fixing the deprecation warnings in my modules, and I come across my old util:eval, which is clearly no longer needed. @xiaqqaix is there a way for modules to trigger deprecation warnings?
mesajor
@mesajor
[xiaqqaix(telegram)] No, but it's a good idea that I can cram into the 0.15.0 release
[zzamboni(telegram)] 👍
mesajor
@mesajor
[zzamboni(telegram)] All 0.15 deprecations are fixed in my modules. Testers welcome to see if I missed anything!
[Ian(telegram)] For alias, do you still need to use -exports-?
mesajor
@mesajor
[zzamboni(telegram)] I should've said "all but that one"
[zzamboni(telegram)] That's still pending
[zzamboni(telegram)] There's no edit:del-var, is there?
mesajor
@mesajor
[Ian(telegram)] Doesn't look like it
[Ian(telegram)] Though, could you just do del var?
[zzamboni(telegram)] del doesn't accept dynamic arguments
[Ian(telegram)] Ah, right. Sorry, doing python & typescript (and...sort of html) now, my brain has no more room for language comprehension right now.
[zzamboni(telegram)] :)
mesajor
@mesajor
[Ian(telegram)] I was lamenting to my wife the other day that my job is basically covering everything from low level hardware/firmware tweaks through Linux and somehow right on up to owning a couple of python/angular applications now. Doesn't get much more fullstack than that.
[zzamboni(telegram)] alias is now fixed as well, no longer uses $-exports-
[Ian(telegram)] hooray!
[Ian(telegram)] Works for me.
mesajor
@mesajor
[zzamboni(telegram)] 👍
aecepoglu
@aecepoglu:matrix.org
[m]
Oh if I could "cat something.txt | each ["[^:]+: ([^ ]+:var1).*"]{ echo $var1 }" I can imagine ditching 80% of what I use sed for
whoops, I responded as if the conversation regarding pattern matching was happening now
Kurtis Rader
@krader1961
The builtin re module makes that easy.
aecepoglu
@aecepoglu:matrix.org
[m]
but pattern matching within a text
oh and curried functions would also be handy
mesajor
@mesajor
[zzamboni(telegram)] Currying is possible in Elvish, since you have closures. Do you have some specific case in mind?
aecepoglu
@aecepoglu:matrix.org
[m]
lets see. I believe I tried to do this and it didn't work: echo "hi there" | str:split ' '
it is possible though, yes. If I write my own functions with the intention that they'll be called partially :)
Kurtis Rader
@krader1961
str:split deliberately does not read from stdin. Use output capture: str:split ' ' (echo "hi there"). Or use all: echo "hi there" | str:split ' ' (all). Also, presumably you're doing something more complicated in reality since the echo isn't needed in such a simple example.
mesajor
@mesajor
[xiaqqaix(telegram)] @aecepoglu Andy Chu (of Oil Shell) has an article and I agree with the sentiment: http://www.oilshell.org/blog/2016/11/13.html
[xiaqqaix(telegram)] And I believe that was Perl’s vision as well, with “perl -e” you can write a lot of one-liners that can replace sed and awk
mesajor
@mesajor
[xiaqqaix(telegram)] Perl is quite empowering in this aspect, and that's likely what people liked it for. But Perl's undisciplined attitude towards language design led to its demise
mesajor
@mesajor
[thegrizzlysmit(telegram)] Perl hasn't died many of us still use it actively, those popularity contests are meaningless
[pontaoski(telegram)] just because it still exists doesn't mean it's as popular as it was
[pontaoski(telegram)] i doubt many people are using perl 6 (raku) (edited)
mesajor
@mesajor
[xiaqqaix(telegram)] Oh, i am sure that Perl still has its appeal to many and i have no prejudice on anyone who use it and find it useful. I'm just lamenting the fact that its quirks stood in the way of the empowerment it could have provided for more people.
Kurtis Rader
@krader1961
Upvote that response. Up until ~12 years ago I used Perl for pretty much anything that wasn’t suitable to Korn shell or C. At the time I considered myself a Perl expert. I still reach for it once in a while where perl -e is the right tool. But when I learned Python ~12 years ago I made the switch.
mesajor
@mesajor
[pontaoski(telegram)] personally i like raku (perl 6)
Kurtis Rader
@krader1961
I switched from Perl to Python when perl 6 was still in the design stage. From what I’ve read it’s possible I might like Raku if I had some reason to learn it. But I do not miss perl 3/4/5.
mesajor
@mesajor
[pontaoski(telegram)] raku has a lot of niceties that perl doesn't have
[pontaoski(telegram)] like proper concurrency and parallelism for one
[pontaoski(telegram)] raku only has one number type, and it's arbitrary precision (so 0.1 + 0.2 == 0.3)
[pontaoski(telegram)] lazy evaluation is a plus too
[pontaoski(telegram)] also, there's gradual typing
[xiaqqaix(telegram)] raku has multiple numeric types, but it parses decimal numbers as rationals instead of floats
[pontaoski(telegram)] a
Kurtis Rader
@krader1961
Google "snl bassomatic”. The Saturday Night Live team from my youth did a hilarious skit that is germane to this discussion; believe it or not.
mesajor
@mesajor
[zzamboni(telegram)] I had a very similar path. And up until recently I still reached for Perl for some simple things. But nowadays I find myself more and more using Elvish for text/data processing. TBH I never fully got into Python, I know it and I've coded quite a few things, but it has never felt natural to me, like Perl or Elvish do. (re @mesajorbot: [krader1961(gitter)] Upvote that response. Up until ~12 years ago I used Perl for pretty much anything that wasn’t suitable to Korn shell or C. At the time I considered myself a Perl expert. I still reach for it once in a while where perl -e is the right tool. But when I learned Python ~12 years ago I made the switch.)
[zzamboni(telegram)] I was even a Perl Monk once upon a time, though I haven't frequented it in a very long while: https://perlmonks.org/?node_id=5999
mesajor
@mesajor
[xiaqqaix(telegram)] oh wow, 2002... i was learning qbasic on windows 98 :)
[zzamboni(telegram)] 😊
[zzamboni(telegram)] PerlMonks was basically my procrastination escape while I was finishing my Ph.D. thesis, once I graduated (in 2001) and got a job I started leaving it behind, which is why the updates stopped around 2002-2004 :D