Hacker GitHub

← All repos

mratsim/Arraymancer

View on GitHub ↗ ★ 1,415 Nim

A fast, ergonomic and portable tensor library in Nim with a deep learning focus for CPU, GPU and embedded devices via OpenMP, Cuda and OpenCL backends

54 mentions on Hacker News by 27 people: 6 stories, 48 comments · first 2017-12-23 · latest 2024-03-29

Mentions per year 54 mentions · busiest year 2020 (19)
20082026
  1. …compatible with OpenMP. Edit: it can be configured via a compile-time flag to 8 or 10 or anything: https://github.com/mratsim/Arraymancer/blob/master/src%2Farr...
    comment by mratsim · 2024-03-29 · in Arraymancer – Deep learning Nim library
  2. It is a small DSL written using macros at https://github.com/mratsim/Arraymancer/blob/master/src/array... . Nim has pretty great meta-programming capabilities and arraymancer employs some cool features like emitting cuda-kernels on the fly…
    comment by warangal · 2024-03-29 · in Arraymancer – Deep learning Nim library
  3. ▲ 211
    Arraymancer – Deep learning Nim library
    story by archargelod · 2024-03-29 · 29 comments
  4. …one that caught my eye was https://github.com/amkrajewski/nimCSO "Composition Space Optimization" https://github.com/mratsim/Arraymancer
  5. …https://github.com/nim-works/cps Or a neural network DSL or for a self-contained example, einsum: - https://github.com/mratsim/Arraymancer/blob/master/src/array... It's worth noting that nim async/await transformation is fully implemented…
    comment by mratsim · 2023-12-04 · in D Programming Language
  6. …with porting Arraymancer to the S3, just to see how it can run, outside of work time mind you. https://github.com/mratsim/Arraymancer Slightly orthogonal to what we are discussing above, but more to show that these weird micros have some…
  7. how are u compiling (optimization, custom compilation flags etc.?) In my case https://github.com/mratsim/Arraymancer big project compile under your 4.2s so or you have like 10k+ lines of codes with macros or you just pass some debug flags…
    comment by machinekob · 2022-06-30 · in Mastering Nim – now available on Amazon
  8. …can simply use native arrays. You can use for loops and so on. For N-dimensional array computation: https://github.com/mratsim/Arraymancer/
    comment by nimmer · 2022-05-05 · in Nim Version 1.6.6 Released
  9. …tools to do this, and not have to ship a Python interpreter. That said, I've not used it in anger. https://github.com/mratsim/Arraymancer
    comment by girvo · 2022-04-05 · in Tinygrad
  10. …on nlvm, i.e. the mainline Nim compiler is sufficient). [1] https://github.com/arnetheduck/nlvm [2] https://github.com/mratsim/Arraymancer
  11. …For an example, consider calling the least squares routine `dgelsd` in arraymancer: https://github.com/mratsim/Arraymancer/blob/master/src/array... wrapped up in a nicer user facing API. Feel free to hop onto matrix, if you have more…
    comment by V1ndaar · 2022-02-28 · in Computer Programming with Nim
  12. ▲ 6
    A Machine learning library for Nim
    story by vanyle · 2021-11-16 · 0 comments
  13. Nim has a popular ML library "inspired by Numpy and PyTorch": https://github.com/mratsim/Arraymancer One of the advantages of the language for DS/ML is the native "C like" performance with very low developer friction. Another advantage…
    comment by arc776 · 2021-10-19 · in Nim 1.6
  14. …Go: 90s) [2]. The compiler is really big and self-hosted too. For large nim projects check out: https://github.com/mratsim/Arraymancer or https://github.com/treeform/pixie (personal faves).
    comment by sp33der89 · 2021-10-19 · in Nim 1.6
  15. …use VS. [1] https://github.com/bluenote10/NimData [2] https://github.com/Vindaar/ggplotnim [3] https://github.com/mratsim/Arraymancer [4] https://github.com/alaviss/nim.nvim
    comment by cb321 · 2021-02-24 · in Nim versions 1.4.4 and 1.2.10
  16. …or `unsafeAddr`) rather than symbol operators. 1: https://news.ycombinator.com/item?id=25242926 2: https://github.com/mratsim/Arraymancer/blob/master/examples/...
    comment by elcritch · 2021-02-24 · in 50 Years of Pascal
  17. …especially by scientists. https://github.com/Vindaar/ggplotnim https://github.com/unicredit/neo https://github.com/mratsim/Arraymancer
    comment by planetis · 2020-12-04 · in Why scientists are turning to Rust
  18. …[2] https://github.com/yglukhov/nimpy [3] https://github.com/numforge/laser [4] https://github.com/mratsim/Arraymancer [5] https://github.com/sinkingsugar/nimtorch
  19. …to consider whether we've overfit our algorithms to the limitations of the current system [3]. [1] https://github.com/mratsim/Arraymancer [2] https://sciml.ai/ [3] https://news.ycombinator.com/item?id=20301619
    comment by BadInformatics · 2020-08-31 · in Nim – version 1.2.6 and 1.0.8 released
  20. …Also for linear algebra and machine learning they're a couple of good libraries: 1) Arraymancer https://github.com/mratsim/Arraymancer 2) Neo https://github.com/unicredit/neo 3) my own :) not meant for when performance is required.…
  21. …appear to outperform it easily: https://narimiran.github.io/2018/05/10/python-numpy-nim.html https://github.com/mratsim/Arraymancer
    comment by nimmer · 2020-07-02 · in Ray Tracing in Nim
  22. …Besides, does Nim have anything similar to NumPy which is actually faster? D does. It does: - https://github.com/mratsim/Arraymancer With CPU, OpenCL and Cuda backends (in differing state of maturity) and it's being used for data analysis…
    comment by mratsim · 2020-07-02 · in Ray Tracing in Nim
  23. The CUDA kernels are stored here: - https://github.com/mratsim/Arraymancer/blob/master/src/tenso... With the higher order function: - https://github.com/mratsim/Arraymancer/blob/master/src/tenso... And their code generation: -…
    comment by mratsim · 2020-07-02 · in Ray Tracing in Nim
  24. https://github.com/mratsim/Arraymancer probably has a lot of examples in it's implementation
    comment by ca_parody · 2020-07-02 · in Ray Tracing in Nim
  25. https://forum.nim-lang.org/t/5242 There is https://github.com/mratsim/Arraymancer n-dimensional tensor (ndarray) library Native plotting library: https://github.com/Vindaar/ggplotnim as well as many other packages.
    comment by planetis · 2020-06-21 · in NimConf 2020 Videos
  26. He missed two that I think are really important. 1. Arraymancer https://github.com/mratsim/Arraymancer 2. The new version of the garbage collector understands move semantics to optimize its reference counting so unlike Rust where you have…
    comment by drenvuk · 2020-05-28 · in Pros and Cons of Nim
  27. …tiling. I wrote an overview of most DSL for high performance or image processing in this issue: https://github.com/mratsim/Arraymancer/issues/347#issuecomme...
  28. …perhaps more focused on ML and data analysis, but Nim has some neat tricks up it's sleeves too: https://github.com/mratsim/Arraymancer
  29. …not be as fast if you're heavy user of metaprogramming but it's still really good. For example see: https://github.com/mratsim/Arraymancer in the README it mentions: > Note: While Nim is compiled and does not offer an interactive REPL yet…
    comment by sp33der89 · 2020-04-01 · in Vim rendered on a cube for no reason
  30. Nim have Arraymancer https://github.com/mratsim/Arraymancer sure it isn't easy but still most of top dogs have some libs supporting BLAS/CUDA etc.
    comment by komuher · 2020-03-22 · in Julia 1.4
  31. …about Rust https://github.com/apple/swift-evolution/blob/master/proposa... Nim have arraymancer https://github.com/mratsim/Arraymancer @inbounds it is just compiler option u can use it in any language with LLVM backend i would be suprised…
    comment by komuher · 2020-03-22 · in Julia 1.4
  32. …be able to change the MAXRANK with a compile parameter nim c -d:MAXRANK=16 path/to/my/app [1]: https://github.com/mratsim/Arraymancer/blob/6fddfa9a734ac01c... [2]: https://github.com/numforge/laser/blob/d1e6ae6106564bfb350d4...
    comment by mratsim · 2020-02-24 · in Nim Community Survey 2019 Results
  33. …Arraymancer lib in their source: https://github.com/numforge/laser/blob/d1e6ae6106564bfb350d4... https://github.com/mratsim/Arraymancer/blob/6fddfa9a734ac01c... To qualify the statement, it would be more accurate to say that Nim can smoke…
    comment by gavinray · 2020-02-24 · in Nim Community Survey 2019 Results
  34. …dig the work that has been going on there for ML as well. [0] https://github.com/numforge/laser [1] https://github.com/mratsim/Arraymancer [2] https://github.com/mratsim/weave
    comment by gavinray · 2020-02-23 · in Nim Community Survey 2019 Results
  35. …some early development of a machine learning ecosystem (outside of wrappers): https://nim-lang.org/ https://github.com/mratsim/Arraymancer
  36. …or true native implementations are growing rapidly. For anything ML look into arraymancer[1]. [1] - https://github.com/mratsim/Arraymancer
    comment by qmmmur · 2019-12-28 · in Python Type Hints
  37. …But why use that when you can use Cuda and OpenCL accelerated vector math: https://github.com/mratsim/Arraymancer If thats too much speed, you can just roll your own for loops. Because Nim is compiled with battle tested GCC, LLVM or
    comment by treeform · 2019-12-26 · in Nim vs. Crystal
  38. …devs or automated methods without having to rewrite in C/Fortran. Much more attempts in the past: - https://github.com/mratsim/Arraymancer/issues/347#issuecomme... - My own domain specific language and compiler:…
    comment by mratsim · 2019-11-22 · in The Linear Algebra Mapping Problem
  39. I am trying to improve Nim data science ecosystem with https://github.com/mratsim/Arraymancer . 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…
  40. As someone who also wrote my own deep learning library from scratch in a less-known language (Nim: https://github.com/mratsim/Arraymancer ), I must say this looks very nice. I especially like the syntax for declaring neural networks. One…
  41. Nim is used by leading data scientists. Eg.: https://github.com/mratsim/Arraymancer
  42. …have worked for me, but the time I spent with Nim in the beginning was just super pleasant. [1] https://github.com/mratsim/Arraymancer
  43. …code): https://github.com/numforge/laser/blob/master/laser/photon_j... - a DSL for neural network: https://github.com/mratsim/Arraymancer#sequence-classificati... - a matrix multiplication BLAS written from scratch competitive with…
  44. I know Nim has some interesting working going on here, https://github.com/mratsim/Arraymancer As well as that esolang that appeared a few months ago on the front page. https://github.com/mrakgr/The-Spiral-Language
  45. …compiled language with a syntax similar to Python. Nim compiles to C, C++ or Javascript. [1] https://github.com/mratsim/Arraymancer/blob/v0.5.0/examples/ex05_sequence_classification_GRU.nim [2] https://github.com/mratsim/Arraymancer/blob/v0…
  46. ▲ 5
    Ergonomic ndarrays and deep learning in Nim – Arraymancer v0.5
    story by mratsim · 2018-12-24 · 2 comments
  47. …header-only template library: https://github.com/status-im/nim-ttmath Generating Cuda C++ Functor: https://github.com/mratsim/Arraymancer/blob/master/src/tenso...
    comment by mratsim · 2018-09-27 · in Nim 0.19
  48. ▲ 3
    Arraymancer – Fast n-dimensional tensor library written in Nim
    story by gtt · 2018-05-05 · 0 comments
  49. …in the newer version(s)? Is there any "production code" written in Arraymancer? [0] https://github.com/mratsim/Arraymancer#speed
  50. Here is a link to the documentation as well: https://mratsim.github.io/Arraymancer/ And the examples: https://github.com/mratsim/Arraymancer/tree/master/examples , including the mandatory XOR, MNIST convnets and the notorious FizzBuzz with…