Programming thread

  • 🐕 I am attempting to get the site runnning as fast as possible. If you are experiencing slow page load times, please report it.
Google employees too stupid to even properly package a python application or follow detailed instructions on how to fix it


1739628238546.png (why does archive.is use light mode??)
https://x.com/steren/status/1890170930980094382

 
Google employees too stupid to even properly package a python application or follow detailed instructions on how to fix it


View attachment 6985027 (why does archive.is use light mode??)
https://x.com/steren/status/1890170930980094382

Found this reply and was curious what uv was.

rusty pip.webp

From pypi:
An extremely fast Python package and project manager, written in Rust.

Highlights​


uv is backed by Astral, the creators of Ruff.
(:_(How did things get this bad, fellas?
 
I was just using Learning Perl, 8th Edition to relearn Perl 5 before learning Raku (formerly Perl 6) in case I have to do any interop and have no idea how I was so enamored of Perl 5 back in the 2000s. I actually quit while reading chapter 4. Things I observed or remember from years ago:
  • use strict and use warnings necessary to enable proper error messages (which IME are still not very good)
  • Can't print out very basic data structures in the way that Python for example can do very easily; Data::Dumper required for this functionality
  • List::Util required for more basic stuff
  • Try::Tiny or other such external library required for exception handling
  • Default support for number data types blows, basically little different from JavaScript
  • No real Boolean type either
  • No sets, though Set::Scalar and other implementations are out there
  • Scuffed handling of function parameters compared to, again for example, Python
  • Limited built-in support for an object system, though I've heard Moose, which is also on CPAN, is really quite good
I guess it kind of does speak to the strength of Perl 5 that it's extensible enough that most of these glaring flaws can be addressed in some manner but damn the core is just extremely niggerlicious. Raku appears to do away with a lot of cruft accumulated since 1987 and I became interested in it mainly because of its highly powerful regular expression implementation and first-class grammars.
 
Perl is like Lisp: it's still popular because it used to be a big deal. Perl was a core web language once. "cgi-bin" was mostly a Perl thing, though some truly insane people wrote C web apps. Both Ruby and Python fully eclipsed Perl, both in different ways. To me, these days, working with Perl is like visiting that weird old friend who you can still handle in appropriate doses but would get really grating to visit on the regular.
 
Perl is like Lisp: it's still popular because it used to be a big deal. Perl was a core web language once. "cgi-bin" was mostly a Perl thing, though some truly insane people wrote C web apps. Both Ruby and Python fully eclipsed Perl, both in different ways.
Saw this on le Reddit:
Lemme put it this way: if the human genome project had used Python instead of Perl, especially Python as it existed then, they'd still be at it.
That's a really baffling comment from someone who apparently has some awareness of the Python ecosystem as it exists today.
 
That's a really baffling comment from someone who apparently has some awareness of the Python ecosystem as it exists today.
>be le me
>'ate python, 'ate most interpreted languages, luv me ruby, simple as
>look at "artificial intelligence" stuff
>it's all python
>except for where it isn't because python is slow
>le ebin meme face
 
>be le me
>'ate python, 'ate most interpreted languages, luv me ruby, simple as
>look at "artificial intelligence" stuff
>it's all python
>except for where it isn't because python is slow
>le ebin meme face
The author made favorable comments about Julia, which I have yet to use, and R, especially the Tidyverse. I agree entirely that R and its ecosystem can be very useful and still exceed Python in certain respects but the R language itself is pretty janky.
Interpreted languages can't do as much as compiled languages. But JavaScript can do everything I need it to so I find it difficult to really hate it tbh.
Once you have exposure to some other options you might end up looking at JS like I was looking at Perl earlier. 'use strict' is also in JS for a reason.
 
Once you have exposure to some other options you might end up looking at JS like I was looking at Perl earlier. 'use strict' is also in JS for a reason.
Yeah. I did spend some time messing around with C# and I fully intend to get into lower level compiled languages like C++. But most of my effort is focused on html, css, and javascript because I'm trying to get steady work in web development.
Once I have good money flowing in, I'll find the time to really get good at a compiled language. Hell, maybe I'll learn assembly.
Depends what you mean by "as much". Turing-completeness means the sky (and computation time) is the limit.
css is Turing complete.
 
The author made favorable comments about Julia, which I have yet to use
Julia is a fantastic language btw, very nice, consistent, fundamentally functional, and fast, with a nice type system while staying familiar to anyone who has done a bit of Python. It's originally implemented on top of Scheme of all things, and IIRC you can access the underlying sexpr representation so you can do heavy metaprogramming. The ecosystem is not quite there yet but they have already implemented an impressive amount of things you would find for Python. Bonus points for having a good package manager out of the box
 
Last edited:
Having written thousands, maybe tens of thousands of lines of Perl. It was very good at what its purpose was. To be the next step up from awk/sed/grep. Certainly it expanded to the "new" "world wide web" and became very handy for throwing HTML together. Pulling stuff out of databases, putting stuff in databases, etc. Every time I touch Python I'm reminded how much I miss regex as a first class citizen.
 
Having written thousands, maybe tens of thousands of lines of Perl. It was very good at what its purpose was. To be the next step up from awk/sed/grep. Certainly it expanded to the "new" "world wide web" and became very handy for throwing HTML together. Pulling stuff out of databases, putting stuff in databases, etc.
If my choices were still either just Perl or one or more of C, $SHELL, sed and awk I would absolutely be writing tons of Perl today. I've fixed ./configure scripts by hand before. Shell (which IIRC used Perl to do some heavy lifting in those scripts) is an abomination in comparison.
 
Back