HackerTrans
TopNewTrendsCommentsPastAskShowJobs

marosgrego

no profile record

Submissions

Show HN: Sum (algebraic) types for C in one 100 line header

github.com
92 points·by marosgrego·2 yıl önce·43 comments

comments

marosgrego
·2 yıl önce·discuss
Or Blades (https://getblades.org)
marosgrego
·3 yıl önce·discuss
Canon EOS M can be bought for around $100 used and shoot 1440p raw with Magic Lantern. Also it can use cheap old 16mm film lenses with crop mode.
marosgrego
·3 yıl önce·discuss
Also

  git clone https://git.sr.ht/~mcf/cproc
  cd cproc
  git submodule init --update
  time make qbe
  time make
generates:

  make qbe  0.81s user 0.07s system 97% cpu 0.901 total
  make  0.83s user 0.07s system 99% cpu 0.902 total
marosgrego
·3 yıl önce·discuss
Neat. I wish someone wrote this down in the language of differential forms.
marosgrego
·3 yıl önce·discuss
They seem to look for causes on the hardware level, but maybe it's a software issue many times.
marosgrego
·3 yıl önce·discuss
For the continuous Fourier transform, you would just take a continuous average, i.e. an integral.
marosgrego
·3 yıl önce·discuss
The title is wrong, the withdrawal didn't happen in 1215.
marosgrego
·4 yıl önce·discuss
Threema messages of Marian Kočner, a contorversial Slovak businessman who allegedly ordered a murder of a local journalist, were somehow obtained with the help of Europol. [0] The part of his trial where a security expert explained how the police got the messages was purposely not made public.

[0] https://spectator.sme.sk/c/22216551/threema-saga-kocner-repo...
marosgrego
·4 yıl önce·discuss
Some truly minimal browser: https://www.netsurf-browser.org
marosgrego
·4 yıl önce·discuss
Kobo reader with Plato installed
marosgrego
·4 yıl önce·discuss
Ramhorns is a great templating engine. Faster than askama, although parsing the templates on runtime. https://docs.rs/ramhorns
marosgrego
·4 yıl önce·discuss
You can think of `i` as a rotation by 90 degrees counterclockwise. You do it twice and the real number line gets reflected (as if multiplied by -1). It is what multiplying by i actually does to the complex plane.
marosgrego
·4 yıl önce·discuss
cos and sin are the x and y coordinates as you turn around the unit circle in unit speed.
marosgrego
·4 yıl önce·discuss
If you're interested in this, a while ago, for my personal photo site with image galleries[1], I wrote a fast static site generator in Rust[0], which also supports plugins now.

[0] https://www.getblades.org

[1] https://grego.site/photo
marosgrego
·4 yıl önce·discuss
GIMP plugin when?
marosgrego
·4 yıl önce·discuss
What? One become a scientist because they are interested in things, or a doctor because they want to help people.