Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mratsim
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
103 ms
·
511.
▲
by
mratsim
7y ago
If a language allows you: - to map cleanly with what compilers know to optimize best - fine control over stack and heap allocation - has intrinsics / assembly escape hatch - allows you to specify that pointers don't alias (restric
512.
▲
by
mratsim
7y ago
> The example code is JavaScript And then introduce `==` and `===`. Yep, I usually don't like the articles with clickbaity item lists like "10 ways you are iterating wrong over an array" but somehow I would like to see tha
513.
▲
by
mratsim
7y ago
AFAIK that was what Facebook tried with their modified BSD that granted patents unless you sued Facebook. Though that doesn't help against NPE.
514.
▲
by
mratsim
7y ago
I'm from Status, Nim's main sponsor and a blockchain company that is doing Ethereum 2.0 research and implementation in Nim. Nim had the following appeal for us: - Ethereum research is done in Python, we actually started our code w
515.
▲
by
mratsim
7y ago
JVM, CLR, Python bytecode or Lua JIT code are ultimately all transformed into machine code but those are not as fast as assembler. Being as fast as C is not about using C as an intermediate language but having data structures and control fl
516.
▲
by
mratsim
7y ago
I'm not worried: https://www.commitstrip.com/en/2016/08/25/a-very-comprehensi...
517.
▲
by
mratsim
7y ago
No code
518.
▲
by
mratsim
7y ago
That's what the Nim compiler does. Bigger than 3 words, pass-by-ref, otherwise pass-by-value. So the only important modifier is whether the parameter is mutable or not. Obviously if mutable it's always passed-by-reference.
519.
▲
Designing a Multithreading Runtime for Nim – Project Picasso
(github.com)
9 points
by
mratsim
7y ago
|
1 comments
520.
▲
by
mratsim
7y ago
It cannot do code generation.
521.
▲
by
mratsim
7y ago
As an European, I'm always surprised when someone says that our governments are efficient. We're always complaining about them.
522.
▲
by
mratsim
7y ago
I was always under the impression that Azure had a lead in ML-as-a-service. I really liked LUIS (Language Understanding Intelligent Service) back in 2017 and AFAIK only Alibaba had an offering similar to Azure at the time for ML-as-a-servic
523.
▲
by
mratsim
7y ago
When you need efficient parallel map or reduction you often go back to low-level C loops wrapped in a pretty map/reduce/array package like numpy or R. I'd argue that Einstein Summation like `C[i, j] = A[i, k] * B[k, j]` is mu
524.
▲
by
mratsim
7y ago
Pardon the interruption ...
525.
▲
by
mratsim
7y ago
Golang didn't exist in the 90's though. Rewriting decades of core business logic would be a tremendous effort and amount of risk.
526.
▲
by
mratsim
7y ago
Julia and Nim don't have curly braces. Nim isn't object oriented either, it's procedural oriented just like C. Experienced Nim devs avoid methods and inheritance and only use them after very careful considerations. Mutation i
527.
▲
by
mratsim
7y ago
Once Linux is juicy enough it will be the new target.
528.
▲
by
mratsim
7y ago
Depending of the size of the prime you might need to take multiple photos.
529.
▲
by
mratsim
7y ago
I probably missed something very obvious as it's not defined in the article but what is BPF?
530.
▲
by
mratsim
7y ago
Without types everything is a pointer (boxing), and when you actually need the value you need to resolve (dereference). This is almost always cache miss. If the collection is polymorphic it's even worse because you dereference to acces
531.
▲
by
mratsim
7y ago
If you try implementing a RNN from scratch with the same base as the OP N-order Markov Chain and without Numpy or a deep-learning frame work, I guarantee you that you will not find it so easy. For reference his code his 400 lines and this i
532.
▲
by
mratsim
7y ago
In ML you really want to use Numpy ndarrays, Pandas dataframes or Tensors. A list is much too slow because: - Not contiguous - No SIMD vectorization - No parallel processing Lists are mostly used for list of containers (for example storing
533.
▲
by
mratsim
7y ago
As a Magic player (since 1996) and Go player (since 2004) and also deep learning scientist, the main issue with Magic is modeling the game. The interactions and exceptions are really numerous, I expect Magic Arena and Magic Online are a mes
534.
▲
by
mratsim
8y ago
Nim 0.14 is also from more than 3 years ago.
535.
▲
by
mratsim
8y ago
Personally, I use Nim to develop domain specific language for VM, JIT, emulators and neural networks. I'm currently writing a compiler for deep learning with both AOT (emitting Nim code) and hopefully later JIT (emitting LLVM IR) capab
536.
▲
by
mratsim
8y ago
I thought that was the universal approach of legal documents? cough patents cough.
537.
▲
by
mratsim
8y ago
I'm surprised their threaded interpreter was slower than switch, this doesn't reflect my benchmark as well even for post-Haswell CPU. Also this is not true on non-x86 hardware and I unfortunately didn't test on AMD. The artic
538.
▲
by
mratsim
8y ago
From: https://help.waffle.io/waffle-shutdown/waffle-shutdown-tldr > Waffle is closing due to market direction and the acquisition by Broadcom. (link to blog) https://blog.waffle.io/farewell-from-waff
539.
▲
by
mratsim
8y ago
I use it, but I'm part of Status, the biggest Nim sponsor ;).
540.
▲
by
mratsim
8y ago
I'm playing a lot with VM, interpreters, JIT and recently compilers in Nim. Here is a JIT brainfuck VM: https://github.com/mratsim/jitterland Nim macros are extremely useful for assemblers and emulators as contrar
More ›