Hello, I currently have Perl 5.32 and I'm building Perl 5.40.0 right now. If I install the 5.40.0 build to my system, would it mess my entire system ? Thanks. I'm using dragora GNU / Linux.
submitted by /u/tiny_humble_guy
[link] [comments]
I'm a big fan of the PCG32 PRNG. It's simple, fast, and well documented. As is usually the case when I find interesting code I try and find a way to implement it in Perl. PCG32 poses an interesting problem when one tries to implement it in Perl because all the math is performed using unsigned integers and overflow. Most PRNGs use large numbers and overflow to work, that's their secret sauce.
Perl does not have a native unsigned type so I had to learn the guts of how Perl does math so I could emulate it. I ended up coming up with two different implementations, a native Perl implementation, and a version that uses Math::Int64
. Surprisingly the native version was significantly faster.
Both implementations with detailed comments are available here if you're interested in learning more about how to do integer style math in Perl.
I learned a lot, and it was a fun exercise. Thanks to reddit.com/u/DrHydeous for helping me with the integer rollover.
submitted by /u/scottchiefbaker
[link] [comments]
This is a two part story:
- Part 1 goes over the subtleties of monitoring DRAM use by R applications (which seems impossible or very difficult to do from within R, except in a valgrind kind of way)
- Part 2 shows the Perl solution and how one can make it play nice from within R
Code is released under the MIT license - feel free to adapt to your use cases (and perhaps someone can provide a Windows version!)
submitted by /u/ReplacementSlight413
[link] [comments]
I like learning and working in Perl. I personally find it more enjoyable to program in than Python. Python isn't difficult, I just never took a liking to it with its lack of braces and strict indentation. The lack of braces can at times make it difficult to find out what's enclosed in what as code gets longer. Braces just make sense to me.
A lot of syntatical constructs remind me of C which may be the reason why I like it so much. I just wish I can enjoy it without feeling bad or ostracized for liking a less popular language that people claim is only used in legacy systems or on the verge of dying.
Anyone else feel this way ? 🙁
submitted by /u/Warm-Scholar6106
[link] [comments]
In 1999, Perl was the first programming language I truly explored. The beautiful language confirmed my passion for web development. By utilizing CGI and mod_perl, I contributed to building scalable websites during that time. I loved it.
However, my frustration grew with the community the more I used it. While other languages were trying hard to ease their ecosystems, and shine them up, I felt the Perl community were happy with where they were, and saw no need for change. Status quo, and that was that.
I was using Perl Catalyst at a job back in 2011. I went to visit a friend in a startup incubator and I saw him execute a "git push" from the command line. It pushed his whole Ruby on Rails app directory to a Hook environment. I was blown away. It changed my life; I quit Perl that day, and moved over to Ruby. I had read nasty comments on RoR from the Perl community, but really they missed the point: it let developers just focus on development. Perl Catalyst was powerful, but the documentation was very weak, and just to get it installed on a machine took so much manual intervention, and time. I once asked questions about best design practices for custom libs, and was met with scorn on an irc channel.
I type this with nostalgia, as I love Perl so much, however, I wish the community just helped with the toolings, and kept up to date with the demands.
submitted by /u/tess_philly
[link] [comments]
I've been playing with the idea of using a Gtk3::TreeView to create a collapsible menu. I've managed to create the GUI OK, but I've struck a roadblock... Search as I may, I can't find out how to fix it up so that when I click on a bottom-level entry, an action is performed.
I'm coming to the conclusion that it seems not to be possible, but in case it is, can anyone point me at an example as to how to do it? It may be that the example I've cannibalised isn't doing in the right way for this, of course...
Thanks.
[Edit]: to answer my own question, in case anyone comes here looking for the same information, I found a useful example here. The notes are in German, but it's easy enough to work out what's going on in order to get a working menu.
submitted by /u/beermad
[link] [comments]
Is there any way to get DBI to recognize snowflake odbc?
submitted by /u/Slow_Culture2359
[link] [comments]
Has anyone else been contacted directly and encouraged to make a donation to help fund a new Perl jobs & staffing service? The approach might be legit but I just want to make sure that I'm not being scammed and that the person who approached me is in control of the vendor account to which funds are being vectored. Hence, the post here.
submitted by /u/Biggity_Biggity_Bong
[link] [comments]
Today, first-time perl.com contributor u/jacktokyo tells us about a new Perl module: DateTime::Format::RelativeTime. This library is designed to mirror its equivalent Web API: Intl.RelativeTimeFormat. 💪
perl.com/article/release-of-ne…
submitted by /u/oalders
[link] [comments]