Readit News logoReadit News
mratsim commented on Large Enough   mistral.ai/news/mistral-l... · Posted by u/davidbarker
jedberg · 2 years ago
This reminds me of when I had to supervise outsourced developers. I wanted to say "build a function that does X and returns Y". But instead I had to say "build a function that takes these inputs, loops over them and does A or B based on condition C, and then return Y by applying Z transformation"

At that point it was easier to do it myself.

mratsim · 2 years ago
mratsim commented on Memory and ILP handling in 2D convolutions   riemani.ca/conv... · Posted by u/pdziepak
mratsim · 2 years ago
Years ago I started a collection of convolution optimization resources: https://github.com/mratsim/laser/wiki/Convolution-optimisati...

Also checked and apparently Nvidia Cutlass now supports generic convolutions: https://github.com/NVIDIA/cutlass

mratsim commented on Constantine: modular, high-performance, zero-dependency cryptography stack   forum.nim-lang.org/t/1193... · Posted by u/michaelsbradley
debatem1 · 2 years ago
At a glance it seems fair to say that this is both a cryptocurrency library and a cryptography library.

The only truly general purpose thing here is SHA256. Every protocol on its supported list starts with either "ethereum" or "evm", and to the best of my knowledge the other primitives have seen very little use besides cryptocurrency.

mratsim · 2 years ago
The Internet Engineering Task Force, which in particular standardizes TLS, has acknowledge my contributions for my contributions to the very generic and globally useful hashing-to-curve primitive: https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-t...

And BLS signatures are standards as well: https://www.ietf.org/archive/id/draft-irtf-cfrg-bls-signatur...

mratsim commented on Constantine: modular, high-performance, zero-dependency cryptography stack   forum.nim-lang.org/t/1193... · Posted by u/michaelsbradley
debatem1 · 2 years ago
At a glance it seems fair to say that this is both a cryptocurrency library and a cryptography library.

The only truly general purpose thing here is SHA256. Every protocol on its supported list starts with either "ethereum" or "evm", and to the best of my knowledge the other primitives have seen very little use besides cryptocurrency.

mratsim · 2 years ago
BLS signatures are general purpose, the only Ethereum specific thing is choosing which elliptic curves are used for public keys and which for signatures as well as a prefix before hashing inputs.

Similarly KZG polynomial commitments are generic, the Ethereum specific thing is the trusted setup ceremony which needs to be specialized per protocol.

The finite field backends and the elliptic curves supported are all generic as well: https://github.com/mratsim/constantine/blob/master/constanti...

mratsim commented on Constantine: modular, high-performance, zero-dependency cryptography stack   forum.nim-lang.org/t/1193... · Posted by u/michaelsbradley
medo-bear · 2 years ago
I think this is cool, but how sure are the authors that this is side-channel safe? There is a similar (modular, high performance, zero-dependency) library in Common Lisp but it can't give side-channel guarantees due to how some Common Lisp compilers implement integer and arithmetic functions

https://github.com/sharplispers/ironclad

mratsim · 2 years ago
Great question, first of all I did extensive research https://github.com/mratsim/constantine/wiki/Constant-time-ar....

Then the library defines its own types SecretBool and SecretWord throughough library that cannot be mixed with regular Nim types and are based on uint32/uint64 so the compiler cannot assume 0/1 and do boolean logic.

Assembly is used to avoid compilers getting too smart and reintroducing branches but the no-assembly fallback should still compile without branches.

By convention, all variable-time cryptographic functions are suffixed _vartime.

There is a plan to add automated constant-time checks as well https://github.com/mratsim/constantine/issues/7.

mratsim commented on What You Get After Running an SSH Honeypot for 30 Days   blog.sofiane.cc/ssh_honey... · Posted by u/SofianeHamlaoui
DEADMINCE · 2 years ago
The EU claims their law applies globally regardless of if people set foot in or do business in the EU. According to the EU, an EU citizen just needs to visit a site and the law applies, regardless of where the site is hosted.

According to the EU, the GDPR applies to some small shop owner in China with a website that harvests all data it can that isn't advertising in the EU, courting EU citizens in any way, has no business with the EU, etc.

mratsim · 2 years ago
According to the US, an US citizen just have to open a bank account anywhere in the world and the law applies, regardless of where the bank is hosted.
mratsim commented on How to get stuff repaired when the manufacturer don't wanna: take 'em to court   blog.simonrumble.com/how-... · Posted by u/Aaronn
r4indeer · 2 years ago
> Now an old fashioned light bulb shouldn't be expected to last a decade, but an oven?

Funnily enough, there actually was the Phoebus cartel [1] which sought to reduce the lifespan of incandescent light bulbs to around 1,000 hours and raise prices.

[1] https://en.wikipedia.org/wiki/Phoebus_cartel

mratsim · 2 years ago
Reminded me of Bastiat's candlestick maker's petition:

http://bastiat.org/en/petition.html

mratsim commented on What You Get After Running an SSH Honeypot for 30 Days   blog.sofiane.cc/ssh_honey... · Posted by u/SofianeHamlaoui
DEADMINCE · 2 years ago
That situation is quite different. The US is using its significant power and weight to coerce those non-US banks into compliance with FACTA. Those banks don't have to comply, but they want to do business with the US and US companies, then they don't have much of a choice.

It's not like they just made a law and now insisted it applies globally, which is what the EU did.

mratsim · 2 years ago
Why is it different?

People don't have to comply to GDPR but if they want to serve EU folks then they don't have a choice.

mratsim commented on Arraymancer – Deep learning Nim library   github.com/mratsim/Arraym... · Posted by u/archargelod
lucidrains · 2 years ago
I've never worked with a project with more than 7 dimensions, yet
mratsim · 2 years ago
What would be the 7 dimensions?

u/mratsim

KarmaCake day1408October 15, 2017
About
Ethereum, Nim and open-source dev during the day, data scientist, Kaggler and deep learning framework author at night.

Check out my Numpy/PyTorch alternative written in Nim: ergonomics of Python, speed of C, OpenMP, Cuda and OpenCL support - https://github.com/mratsim/Arraymancer

View Original