home.social

#programmming — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #programmming, aggregated by home.social.

  1. ual 0.7.4 preliminar benchmarks

    Some early ual 0.7.4 benchmarking results across three backends: compiled with Go runtime, compiled with Rust runtime (rual), interpreted (iual).

    No attempt has been made to make the new backends faster yet (iual, rual). That being said most concurrent code performs similarly across all three backends, and only interpreted ual (tree walker) sees an obvious penalty in compute heavy algorithms. I might --maaaybee-- be able to provide a VM for iual, but given the performance of the binaries using the Go and Rust backends it seems that it would be a better use of my time to keep adding important features that are still missing in this version. (file handling, sockets, for starters).

    It seems to me that the ideal ual developer of the future will be happy to use iual for testing, and deliverable products will be compiled with one of the binary backend targets. The choice of Go or Rust will probably go down to environmental reasons, cultural aspects, or policy preference within organisations.

    All in all, a highly productive day!

    Now thinking of a fourth backend... wouldn't you guess what is it? 🙂

    #ual #foss #golang #rust #rustlang #compsci #programmming

  2. A discussion on the BQN Matrix channel about Project Euler number 21 led me to think that the divisors function in Kap would be useful for this.

    Turns out I was right. The solution turned out to be pretty simple, once one realises that an amicable number is one where if you take the sum of the divisors twice, you get back to the original number and the sum of the divisors is not the same as the number itself.

    The following Kap code solves the problem by taking advantage of this:

    +/ ⍸ ≠/ (⊂↑)«=¨»(1↓) (1+ +/¨math:divisors ⊣)\ (⍳10000) 0 0

    Run in browser

    The code should be reasonably easy to understand for anyone with some APL experience, but I'll be happy to explain in more details if anyone is interested.

    The scan operator is being abused a bit by turning it into a preserving version of repeat. I think if there was a collecting version of repeat, that would be a nicer way to do it.

    #kap #apl #programmming #maths

  3. Programowanie rysikiem po ekranie dotykowym lub padzie, z automatycznym OCR na żywo - yay czy nay
    co sądzicie?

    #zapytajFedi #programowanie
    #askFedi #programmming

  4. I just realized that #Django intentionally does not document how to use #doctests (they say so in the forums¹).

    And I’m annoyed right now.

    positive: they are wrong about doctests not being maintained in #Python: python 3.13 brings colored output for doctests:

    docs.python.org/3/whatsnew/3.1

    I consider doctests to be one of the most elegant ways to test beautifully self-contained functions with easy to understand input.

    ¹ forum.djangoproject.com/t/test

    EDIT: please read the thread! *happy*

    #programmming

  5. I just realized that #Django intentionally does not document how to use #doctests (they say so in the forums¹).

    And I’m annoyed right now.

    positive: they are wrong about doctests not being maintained in #Python: python 3.13 brings colored output for doctests:

    docs.python.org/3/whatsnew/3.1

    I consider doctests to be one of the most elegant ways to test beautifully self-contained functions with easy to understand input.

    ¹ forum.djangoproject.com/t/test

    EDIT: please read the thread! *happy*

    #programmming

  6. I just realized that #Django intentionally does not document how to use #doctests (they say so in the forums¹).

    And I’m annoyed right now.

    positive: they are wrong about doctests not being maintained in #Python: python 3.13 brings colored output for doctests:

    docs.python.org/3/whatsnew/3.1

    I consider doctests to be one of the most elegant ways to test beautifully self-contained functions with easy to understand input.

    ¹ forum.djangoproject.com/t/test

    EDIT: please read the thread! *happy*

    #programmming

  7. I just realized that #Django intentionally does not document how to use #doctests (they say so in the forums¹).

    And I’m annoyed right now.

    positive: they are wrong about doctests not being maintained in #Python: python 3.13 brings colored output for doctests:

    docs.python.org/3/whatsnew/3.1

    I consider doctests to be one of the most elegant ways to test beautifully self-contained functions with easy to understand input.

    ¹ forum.djangoproject.com/t/test

    EDIT: please read the thread! *happy*

    #programmming

  8. So after some work, I have managed to convert those LinkedIn search result exports into something useful.

    I wrote a script that takes a folder of exports in JSON format as input, which contains lists of profiles from search results (in my
    case, IT Recruiters), and filters them by various criteria.

    In my case, the results are lists of recruiters that best match my professional profile. They are exported on a per-country basis in a folder ready to be passed on to a tool like Chat GPT to generate an email to send out to them in bulk.

    If people are interested, I'll turn this into a proper command line tool.

    Currently, the configuration options are in the code, so you need to be a programmer to use it. But from 6000 recruiters as the input, I arrived at a data set of about 250 matched to me perfectly. Very cool.

    It then outputs separate lists of suitable matches, grouped by country into a folder ready for. usage with something like chat GPT to generate emails to contact them and ask for open positions.

    #linkedin #jobsearch #job #tech #programmming #hiring #utility

  9. I really don't like ReactJS. It might be the best we have but that's not great. It feels like stacks and stacks of hacks to compensate for poorly planned architecture decisions -- a lot like JavaScript really. #programmming #webdev #shotsfired