this post was submitted on 14 Mar 2024
93 points (100.0% liked)
Programming
423 readers
4 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
As someone else mentioned, you should rewrite this in Haskell (or Purescript or Scala or even Python’s ‘Coconut’) because using vanilla Python for functional programming is like driving Formula 1 with a Toyota Camry.
I will try porting this project to Haskell and Coconut later. I am currently doing a rewrite of this in Nim.
Update: https://github.com/eeriemyxi/povi
Nice. I don’t know much about Nim.
I should also mention: Once Purescript switches over to a Chez Scheme compiled back end, it would be (IMO) the ideal lightweight Haskell, suited to quick terminal apps that you’re looking for.
Thanks for note. Do they currently have that backend?
That aside, you might want to try Nim. It's pretty cool. It can compile to C and C++, and JS. There have been browser extensions made with it. Heck, it even has an LLVM backend. And the C code it generates it pretty fast on benchmarks. It's filled with tons of metaprogramming stuff and AST-level macros. And it has this cool thing where it can ignore name casing of identifiers like variables and functions; so
isSome
==is_some
.