-2
[-] Vulwsztyn@programming.dev 4 points 2 weeks ago

I wonder when bun will migrate to something else

[-] Vulwsztyn@programming.dev 12 points 3 weeks ago

Who doesn’t want to be able to get their work done easier? Nobody.

While this seems true, this is not my experience. It is easier to do things they way you have always done them, because it involves no learning, and thus some people will continue unless forced.

[-] Vulwsztyn@programming.dev 10 points 2 months ago

Wanted to suggest the same thing.

Bazzite is immutable tho, unless I'm mistaken, so if you'd rather use a mutable distro you can look into CachyOS or DraugrOS.

9
Clues by Sam 2026-04-19 (cluesbysam.com)
I solved the daily #CluesBySam, Apr 19th 2026 (Hard), in less than 16 minutes
🟩🟩🟩🟩
🟩🟨🟩🟩
🟩🟩🟩🟩
🟩🟩🟩🟩
🟨🟩🟩🟨
https://cluesbysam.com/
[-] Vulwsztyn@programming.dev 4 points 5 months ago

the current versions will still be open source, you will always be able to fork them

4

cross-posted from: https://programming.dev/post/46518217

Links:

I created it mainly as a proof of concept that python's typing system is mature enough to support such a thing. The process was fun and I was able to help make remeda.js docs a bit better

The library is as typed as possible with my knowledge of python typing system, which means dict typing is kinda meh, but for iterables it is as good as in TS.

I decided to publish 1.X, since I've been adding a lot of stuff that "absolutely must be in 1.X" and got tired of the scope creep, so there is a bunch of TODOs, but they are "nice to have"s.

I'm planning to work on the TODOs and making the docs better now that I've managed to release it.

About the library:

It supports what remeda.js calls "data-first" and "data-last" approaches to calling functions. That means:

x = R.map([1, 2, 3], lambda i: i +1)
# is the same as
x = R.map(lambda i: i +1)([1, 2, 3])

which allows for a "fun" function composition:

import remedapy as R

R.pipe(
    [1, 2, 2, 3, 3, 4, 5, 6],
    R.for_each(print),
    R.unique(),
    R.take(3),
    list
)
# Returns [1, 2, 3]
# Prints:
# 1
# 2
# 2
# 3

Features:

  • as typed as possible, checked with basedpyright
  • 100% code coverage, but the tests could be a bit more exhaustive
  • docstrings for everything (they might require some work)
  • no AI, 100% Human Stupidity
22
submitted 6 months ago* (last edited 6 months ago) by Vulwsztyn@programming.dev to c/python@programming.dev

Links:

I created it mainly as a proof of concept that python's typing system is mature enough to support such a thing. The process was fun and I was able to help make remeda.js docs a bit better

The library is as typed as possible with my knowledge of python typing system, which means dict typing is kinda meh, but for iterables it is as good as in TS.

I decided to publish 1.X, since I've been adding a lot of stuff that "absolutely must be in 1.X" and got tired of the scope creep, so there is a bunch of TODOs, but they are "nice to have"s.

I'm planning to work on the TODOs and making the docs better now that I've managed to release it.

About the library:

It supports what remeda.js calls "data-first" and "data-last" approaches to calling functions. That means:

x = R.map([1, 2, 3], lambda i: i + 1)
# is the same as
x = R.map(lambda i: i + 1)([1, 2, 3])

which allows for a "fun" function composition:

import remedapy as R

R.pipe(
    [1, 2, 2, 3, 3, 4, 5, 6],
    R.for_each(print),
    R.unique(),
    R.take(3),
    list
)
# Returns [1, 2, 3]
# Prints:
# 1
# 2
# 2
# 3

Features:

  • as typed as possible, checked with basedpyright
  • 100% code coverage, but the tests could be a bit more exhaustive
  • docstrings for everything (they might require some work)
  • no AI, 100% Human Stupidity
[-] Vulwsztyn@programming.dev 3 points 8 months ago* (last edited 8 months ago)

you don't have to rebase.

create a new branch from main

push it

go to main

git reset --hard origin/main

[-] Vulwsztyn@programming.dev 6 points 9 months ago

coming from a language with consistent pronunciation I pronounce it "aur" like other comments said, like "aurum" or like in Portuguese - how it is written)

[-] Vulwsztyn@programming.dev 4 points 9 months ago

my boring python solution:

from pathlib import Path


def main():
    input = Path('input.txt').read_text().split('\n')
    names = input[0].split(',')
    instructions = input[-1].split(',')
    print(names,instructions)
    index = 0
    for instruction in instructions:
        dir = instruction[0]
        number = int(instruction[1:])
        if dir == 'L':
            index -= number
            if index < 0:
                index = 0
        else:
            index += number
            if index > len(names) - 1:
                index = len(names) - 1
    print(names[index])
    index = 0
    for instruction in instructions:
        dir = instruction[0]
        number = int(instruction[1:])
        if dir == 'L':
            index -= number
        else:
            index += number
    print(names[index%(len(names))])
    indexes = list(range(len(names)))
    for instruction in instructions:
        dir = instruction[0]
        number = (int(instruction[1:]) if dir == 'R' else -int(instruction[1:])) % len(names)
        indexes[0], indexes[number] = indexes[number], indexes[0]
    print(names[indexes[0]])

if __name__ == "__main__":
    main()

I probably should read all 3 files though. I'll hone it out later.

[-] Vulwsztyn@programming.dev 2 points 11 months ago

it has more sane syntax than python and is great for e. g. webscrapping

[-] Vulwsztyn@programming.dev 3 points 1 year ago

This is only a Draft for now though

19

Hi, I recently realised one can use immutable default arguments to avoid a chain of:

def append_to(element, to=None):
    if to is None:
        to = []

at the beginning of each function with default argument for set, list, or dict.

[-] Vulwsztyn@programming.dev 2 points 2 years ago* (last edited 2 years ago)

sick fun, but I learned a fair bit

3
[-] Vulwsztyn@programming.dev 3 points 2 years ago* (last edited 2 years ago)

Read the 1st comment under 1st link, 2nd link os about something different, 4th links is about something absolutely different. **

view more: next β€Ί

Vulwsztyn

0 post score
0 comment score
joined 2 years ago