Hacker GitHub

← All repos

yglukhov/nimpy

View on GitHub ↗ ★ 1,592 Nim

Nim - Python bridge

34 mentions on Hacker News by 25 people: 1 story, 33 comments · first 2018-09-22 · latest 2026-10-13

Mentions per year 34 mentions · busiest year 2022 (8)
20082026
  1. …complete solution (at the PLang level - not counting ecosys). (And these days there is even NimPy ( https://github.com/yglukhov/nimpy ) to write low-level speed-up code for Python in Nim.)
  2. …and it'll only work with native backends (C/C++/ObjC). The project that makes it possible is https://github.com/yglukhov/nimpy
    comment by Tiberium · 2025-08-17 · in Why Nim?
  3. …the market for a simple compiled language that can offer Python some really fast functions So, Nim? https://github.com/yglukhov/nimpy
    comment by Tiberium · 2025-06-23 · in Python can run Mojo now
  4. There is nimpy ( https://github.com/yglukhov/nimpy )
  5. …https://github.com/c-blake/bu/blob/main/doc/tim.md . I should perhaps also have mentioned https://github.com/yglukhov/nimpy as a way to write extensions in Nim. Kind of like Cython/SWIG like stuff, but for Nim.
  6. …should really check out Nim. ¯\_(ツ)_/¯ [0]: https://youtu.be/pdJQ8iVTwj8?si=LfPSNDq8UKKIsJd3 [1]: https://github.com/yglukhov/nimpy
    comment by V1ndaar · 2023-10-19 · in Mojo is now available on Mac
  7. …in Nim, which basically means you can write any program you could in Python with libraries in Nim. https://github.com/yglukhov/nimpy
    comment by FireInsight · 2023-08-12 · in Show HN: Pip Imports in Deno
  8. …https://github.com/PMunch/futhark - nimpy allows calling Python code from Nim and vice versa: https://github.com/yglukhov/nimpy - questionable provides a lot of syntax sugar surrounding Option/Result types:…
    comment by j-james · 2023-08-01 · in Nim 2.0
  9. …execution. Nim code can also be called directly from python or vice versa, check out nimpy[1]. 1. https://github.com/yglukhov/nimpy
    comment by janAkali · 2023-08-01 · in Nim 2.0
  10. …come from python take a look at nimpy, a great way to just import python libraries and use them! https://github.com/yglukhov/nimpy Numpy, pandas, pytorch all usable in Nim. Nim is the ultimate glue language, use libraries from anything:…
    comment by treeform · 2023-02-18 · in Returning to Nim from Python and Rust
  11. …you do things at compile time (like compile time duck typing). There's a good Python -> Nim bridge: https://github.com/yglukhov/nimpy
    comment by elcritch · 2023-02-01 · in Python's “disappointing” superpowers
  12. …to be compiled once, and would work with any of your installed Python 2 and Python 3. Magic. [0] https://github.com/yglukhov/nimpy
  13. …typed Python-compatible language! I haven't used them but https://github.com/Pebaz/nimporter https://github.com/yglukhov/nimpy both seem great. Nimporter in particular looks fantastic for writing fast python libraries. Actually come to…
  14. …rest of your code. But I'm all ears on the real advantages Hy provides aside from being neat. [0]: https://github.com/yglukhov/nimpy
  15. I've used https://github.com/yglukhov/nimpy and I have to say the package, the author and the nim community were all phenomenal in helping me implement nim code that works as a Python package.
  16. …small. :) [0]: https://matrix.to/#/#nim-science:envs.net [1]: https://discord.gg/f5hA9UK3dY [2]: https://github.com/yglukhov/nimpy/ [3]: https://github.com/clonkk/nimjl [4]: https://github.com/clonkk/nimjl
    comment by V1ndaar · 2022-02-28 · in Computer Programming with Nim
  17. https://github.com/yglukhov/nimpy gives very, very solid access to the Python ecosystem from Nim - I've copied code from Python docs and have had it work with hardly any changes. Hopefully that's a good enough excuse to try Nim out for a…
    comment by ajusa · 2022-02-27 · in Computer Programming with Nim
  18. …some interesting projects to use other languages with Python [ https://github.com/PyO3/PyO3 ] | [ https://github.com/yglukhov/nimpy ]
  19. …with Python. For everything else, I can directly use Python from Nim and visa versa with Nimpy: https://github.com/yglukhov/nimpy . This is particularly useful if you have some slow Python code bottlenecking production, since the similar…
  20. Nim can use Python's ecosystem in both directions with nimpy https://github.com/yglukhov/nimpy and nimporter https://github.com/yglukhov/nimpy This lets you gradually transition hot path Python modules to Nim, get compiled performance…
    comment by arc619 · 2021-10-07 · in Faster Python with Guido van Rossum
  21. …is a https://github.com/Yardanico/nimpylib , and for calling some python code from nim there is a https://github.com/yglukhov/nimpy
  22. ▲ 4
    Nimpy: Implementing a Python Module in Nim
    story by BiteCode_dev · 2021-09-23 · 0 comments
  23. Something like this? https://github.com/yglukhov/nimpy
    comment by crispyalmond · 2021-06-23 · in NimConf 2021
  24. Actually it is possible, Nim compiles to C and is a viable alternative to CPython. nimpy https://github.com/yglukhov/nimpy PyGotham talk: https://www.youtube.com/watch?v=IVgNVJdizHg another blog post: https://robert-mcdermott.gitlab.io/post…
  25. Nimpy: https://github.com/yglukhov/nimpy A good test as an example: https://github.com/yglukhov/nimpy/blob/master/tests/tpyfromn... I've tried it and it works fine. The only problem I ever had was trying to call a specific Python function…
  26. …seriously. [0] https://github.com/nimterop/nimterop [1] https://github.com/sinkingsugar/nimline [2] https://github.com/yglukhov/nimpy [3] https://github.com/numforge/laser [4] https://github.com/mratsim/Arraymancer [5]…
  27. …- https://github.com/Vindaar/ggplotnim And lastly nim can easily call Python: - https://github.com/yglukhov/nimpy or be called from Python: - https://github.com/Pebaz/nimporter
    comment by mratsim · 2020-07-02 · in Ray Tracing in Nim
  28. Haven't tried but https://github.com/yglukhov/nimpy#calling-python-from-nim
  29. …to create Python modules in Nim: https://robert-mcdermott.gitlab.io/posts/speeding-up-python-... https://github.com/yglukhov/nimpy
    comment by nimmer · 2020-02-19 · in Want to call C from Python? Use D
  30. …. I think today the best way to try Nim is for slow Python utilities vi nimpy: https://github.com/yglukhov/nimpy You can also use Nim in Jupyter the following way: https://github.com/apahl/nim_magic My next step would be to improve inter
  31. …place of Cython, when there's a need for extra speed in some hot loops and similar situations. [0] https://github.com/yglukhov/nimpy
    comment by narimiran · 2019-09-24 · in Nim 1.0
  32. There is https://github.com/yglukhov/nimpy There are/were others too IIRC.
    comment by throwmeaway101 · 2019-06-06 · in Nim 0.20.0 (1.0 RC1) released
  33. I'll mention another great library from the same author: https://github.com/yglukhov/nimpy A library which allows you to connect Python and Nim so you could, for example, use Nim (instead of Cython) for speeding up some parts of your code,…
    comment by narimiran · 2018-09-27 · in Nim 0.19
  34. …pleasant Cython — you can keep writing Python, and just use Nim for the intensive/slow stuff. [0] https://github.com/yglukhov/nimpy
    comment by narimiran · 2018-09-22 · in A Programming Language Underdog