Better HN
topnewbestaskshowjobs
Log inSign up

lamg

60 karma · joined Mar 5, 2013 (13y ago) · 31 submissions

Sub specie aeternitatis
Submissions

1.

Tiny Prolog [video](youtube.com ↗)

3 points · by lamg · 1y ago · discuss

2.

Telegram responds to investigation linking them to Russian security services(occrp.org ↗)

4 points · by lamg · 1y ago · discuss

comment 1y ago · link · parent

I think the problem Espanso is trying to solve should be addressed by GUI toolkits, like GTK, QT, etc. Otherwise, living with an authorized keylogger in our system in order to introduce unicode characters seems overkill.

4.

Ferron – A fast, memory-safe web server written in Rust(github.com ↗)

141 points · by lamg · 1y ago · 100 comments

5.

Authenticated communication between wallets and apps(algorand.co ↗)

1 points · by lamg · 2y ago · discuss

6.

Microsoft competes with existing OSS in the .NET ecosystem(twitter.com ↗)

2 points · by lamg · 2y ago · discuss

7.

TinyML on the Browser(tinyml.sutil.dev ↗)

6 points · by lamg · 2y ago · 3 comments

8.

F# 8 features: Accessor function shorthand(twitter.com ↗)

2 points · by lamg · 3y ago · discuss

comment 3y ago · link · parent

This feature simplifies `while` loops in computation expressions

10.

F# 8 Features: WhileBang(twitter.com ↗)

4 points · by lamg · 3y ago · 1 comment

11.

Dotdevelop: A Monodevelop Fork(github.com ↗)

3 points · by lamg · 3y ago · discuss

comment 4y ago · link · parent

There several iterator libraries around but generics has made easier to compose iterators into a single one.

13.

Having fun with Go generics(lamg.github.io ↗)

2 points · by lamg · 4y ago · 1 comment

comment 4y ago · link · parent

No it doesn't. It vanished from the known Universe and now we have no idea on how it looked before.

15.

A question to GitHub about racism(twitter.com ↗)

3 points · by lamg · 6y ago · discuss

16.

Telegram Blocked by Cuban government(twitter.com ↗)

1 points · by lamg · 6y ago · discuss

comment 7y ago · link · parent

Substitute "communism" by "centrally planed economy". China abandoned it decades ago. See https://en.wikipedia.org/wiki/Socialist_market_economy

comment 7y ago · link · parent

"playground of rich Americans": certainly a fallacious reduction of Cuban history. "The America gov't instituted an embargo. Being in the tropics, the electric signs broke down": you're seriously underestimating the destructive force of communism. osmay88: thanks!.

comment 8y ago · link · parent

Certainly is hard to read nested code, but returning earlier makes it harder because now our mind has to construct the execution path instead of reading it. What I usually do is writing the body in a new procedure. Dijkstra designed a language with no return statement with a very simple semantics made for proving the program behaves exactly as its specification mandates. Niklaus Wirth designed Oberon with no return statement. Currently I write Go code only using return at the end of the procedure, my code is easy to follow and I have fewer errors than before https://en.wikipedia.org/wiki/Guarded_Command_Language https://www.inf.ethz.ch/personal/wirth/ProjectOberon/index.h...

comment 8y ago · link · parent

Certainly is hard to read nested code, but returning earlier makes it harder because now our mind has to construct the execution path instead of reading it. What I usually do is writing the body in a new procedure. Dijkstra designed a language with no return statement with a very simple semantics made for proving the program behaves exactly as its specification mandates. Niklaus Wirth designed Oberon with no return statement. Currently I write Go code only using return at the end of the procedure, my code is easy to follow and has fewer errors than before https://en.wikipedia.org/wiki/Guarded_Command_Language https://www.inf.ethz.ch/personal/wirth/ProjectOberon/index.h...

21.

There's No Such Thing as an “American” Homicide Rate(mises.org ↗)

1 points · by lamg · 8y ago · discuss

comment 9y ago · link · parent

"A Discipline of Programming" by Edsger Dijkstra.

23.

Nominative determinism(en.wikipedia.org ↗)

2 points · by lamg · 9y ago · 1 comment

24.

Mathematical Methodology(mathmeth.com ↗)

1 points · by lamg · 9y ago · discuss

comment 13y ago · link · parent

And I forgot the best of all tips: good theory leads to good programs.

comment 13y ago · link · parent

Looking at your known languages my advice is: * don´t make a world of objects and patterns (the gang ...). These stuff is advanced and you should be careful, there is no magic to solve all your problems. * KISS principle * do some data driven programming

comment 13y ago · link · parent

Just read a book like Practical Common Lisp, Land of Lisp or Learn Haskell for the greater good, you will learn how to do some interesting programs and you vision of side effects will change. I am trying out Go now, it is really nice too, if you want to read some code check out http://github.com/lamg/md2sexp, it is really easy to understand (but it does not work yet).
12