Readit News logoReadit News
pietroppeter commented on Fran Sans – font inspired by San Francisco light rail displays   emilysneddon.com/fran-san... · Posted by u/ChrisArchitect
pietroppeter · 24 days ago
Great work! As a side track, it led me to dive into the history of the manufacturing company of Breda trains. Originally founded in Milan late 1800s by Ernesto Breda for locomotives, expanded in the war products during the wars, and went through nationalization, fusion to become AnsaldoBreda and later bough by Japanese to become Hitachi Rail Italy.

https://en.wikipedia.org/wiki/Hitachi_Rail_Italy

pietroppeter commented on Why is Zig so cool?   nilostolte.github.io/tech... · Posted by u/vitalnodo
simonw · a month ago
A neat little thing I like about Zig is one of the options for installing it is via PyPI like this: https://pypi.org/project/ziglang/

  pip install ziglang
Which means you don't even have to install it separately to try it out via uvx. If you have uv installed already try this:

  cd /tmp
  echo '#include <stdio.h>                     
  
  int main() {
      printf("Hello, World!");
      return 0;
  }' > hello.c

  uvx --from ziglang python-zig cc /tmp/hello.c
  ./a.out

pietroppeter · a month ago
I wish we had that for Nim too!
pietroppeter commented on Python 3.14 is here. How fast is it?   blog.miguelgrinberg.com/p... · Posted by u/pjmlp
nadermx · 2 months ago
Tangential, but I practically owe my life to this guy. He wrote the flask mega tutorial in what I followed religiously to launch my first website. Then right before launch, in the most critical part of my entire application; piping a fragged file in flask. He answered my stackoverflow question, I put his fix live, and the site went viral. Here's the link for posterity's sake https://stackoverflow.com/a/34391304/4180276
pietroppeter · 2 months ago
Yet another appreciation story for Miguel’s mega tutorial. In 2017 I used it to create our wedding site and learn a bit of web dev (my background is in data science). To motivate me to actually do it I used the strategy the fund the then occurring refactoring of the tutorial. I am still very fond and proud of that first time I actually went and funded some open source effort, it gives you back more than you might expect
pietroppeter commented on PYX: The next step in Python packaging   astral.sh/blog/introducin... · Posted by u/the_mitsuhiko
simonw · 4 months ago
This is effectively what Charlie said they were going to build last September when quizzed about their intended business model on Mastodon: https://hachyderm.io/@charliermarsh/113103564055291456
pietroppeter · 4 months ago
And this fact effectively builds trust in the vision and in execution.
pietroppeter commented on A Python tool to parse PDF statements from Poste Italiane   github.com/genbs/poste-it... · Posted by u/genbs
pietroppeter · 5 months ago
For the curious on how it works (not mentioned in the readme), it uses pymupdf and a precise mapping of all information in area coordinates, as such the document layout is hard coded.

When layout changes this breaks but layout changes on this sort of documents do not happen often (I think). Also code is very clean and it serms straightforward to fix.

This kind of code is maybe something that can be generated from an LLM/agent? (It would be easy to write checks)

Besides the practical value for those who might need it, I think it is possibly interesting for others to look at this approach.

Neat project, thanks for sharing!

pietroppeter commented on Uv: Running a script with dependencies   docs.astral.sh/uv/guides/... · Posted by u/Bluestein
rr808 · 5 months ago
How many package managers can one language have? Its a simple language but setting it up is just incredibly bad. Maybe this is the one or should I wait for the next?
pietroppeter · 5 months ago
This is the way
pietroppeter commented on Nim for Pythonistas   github.com/pietroppeter/n... · Posted by u/TheWiggles
digdugdirk · 8 months ago
Thank you for posting this! I've been intrigued by Nim for a while, and this seems like an ideal kickoff point.

Does anyone with Nim experience have any thoughts on the content? Things to be aware of, things to focus on, etc?

pietroppeter · 8 months ago
I am a bit biased on the content ;), but note that this is a talk that is not focused on teaching the language but more on what does it mean to learn a second language, especially a niche one - like Nim - coming from Python. It does shows some code examples and highlights some features though. I like official documentation (tutorials) but Nim basics is another good resource.

When I first learned Nim I remember the thing I struggled the most with was the mutability of parameters when passing them. Another big thing I would say is letting go of python’s dict and embrace types. In place of dict I usually consider the following options: tuples (which are great and named), objects, tables (from stdlib, very similar to dicts but with homogenous types for keys and values) and JsonNode (as a final option if the others do not work).

Advent of code makes for a great practice ground.

u/pietroppeter

KarmaCake day1029October 19, 2018View Original