HNHacker News
TopNewBestAskShowJobs

lelf

67,542 karma · joined April 20, 2011

  occasional c⊎k⊎haskell⊎erlang hacker
  #76d6ff
submissionscomments
lelf··on Enquire: Everything you wanted to know about your C compiler and machine
Another way:

  echo | cc -dM -E -
lelf··on Enquire: Everything you wanted to know about your C compiler and machine

  sh enquire.c
Wow. That’s clever. (See the source.)
lelf··on There Was a Time before Mathematica (2013)
And it works in the terminal (there’s GUI too)

    (%i48) integrate(2^x,x);
                                           x
                                          2
    (%o48)                              ------
                                        log(2)
lelf··on Let’s Talk Concurrency: Panel with Sir Tony Hoare, Joe Armstrong, Carl Hewitt
> Comparing to modern languages, erlang lacks a lot.

Like?

> With go and rust available,

Yeah, tell me when those “modern languages” will be distributed, stop using stop-world GC, and contain at least 1% of introspection Erlang has.

lelf··on Let’s Talk Concurrency: Panel with Sir Tony Hoare, Joe Armstrong, Carl Hewitt
Videos https://www.youtube.com/user/ErlangSolutions/videos
lelf··on Drug Combo Creates New Neurons from Neighboring Cells
That's in the best case.
lelf··on Finding Lena Forsen, the Patron Saint of JPEGs
But it’s completely fine/effortless to use it in English, it’s even part of latin-1.

Fiancée résumé déjà vu touché.

lelf··on My Chromecast Ultra would not start until I began answering 8.8.8.8
> If Google used Google DNS to spy on people

Are you seriously thinking they don't store/analyse/use that kind of information??? (That's every site you visit, at minimum.)

lelf··on Whitespace killed an enterprise app
Try https://reddit.com/.compact
lelf··on Problem solving with Unix commands
They have jot(1)
lelf··on Problem solving with Unix commands

  $ printf %d 010
  8
lelf··on Problem solving with Unix commands

  seq -f %04g 0 3
  echo {0000..0003} # if bash
lelf··on Rust’s standard library was vulnerable for years and nobody noticed
> For example, Erlang — that funky language that people use to program systems with 99,9999999% uptime (no, that’s not an exaggeration) — has repeatedly shipped with a broken implementation of Map data structure in its standard library.

…during the period ‘maps’ was a experimental/beta-feature.

lelf··on PostgreSQL used fsync incorrectly for 20 years
https://wiki.postgresql.org/wiki/Fsync_Errors

Only FreeBSD & Illumos do the sane thing.

lelf··on A touchpad is not a mouse, or at least not a good one
Bad touchpad is certainly not a good mouse. But I won’t trade MacbookPro’s touchpad for any mouse. [I’d trade its keyboard though :( ]
lelf··on How many keywords I can fit into a single C# expression?
> do e > this is a valid expression if e is a type that implements the Monad typeclass.

That is not necessary,

  do do do ()
lelf··on Visiting the Anderton Boat Lift on My Narrowboat (2017) [video]
See also: Krasnoyarsk dam inclined plane

https://en.wikipedia.org/wiki/Krasnoyarsk_Dam#/media/File%3A...

https://www.youtube.com/results?search_query=Krasnoyarsk+Dam

lelf··on Debugging Emacs, or How I Learned to Stop Worrying and Love DTrace (2018)
> * in the sense that it's even more capable*

Examples? I don't see how it's more capable. Catching up with dtrace, maybe.

lelf··on Debugging Emacs, or How I Learned to Stop Worrying and Love DTrace (2018)
No (unfortunately) it's NIH and nothing more.

https://youtu.be/TgmA48fILq8?t=4266

https://marc.info/?l=linux-kernel&m=154714516832389&w=2

lelf··on The Soviet license plate game and Kolmogorov complexity
The problem of complexity is solved neatly in Prolog and Erlang¹, by counting “reductions”. For simple tasks like in the article,

one function call ≅ one reduction.

Loops? There are no loops in Erlang, they are usually tail-recursive function calls.

¹) in Erlang it plays a very important role because the VM uses that information for scheduling.

lelf··on Confessions of an Abstraction Hater
> It's OK to repeat the same 3 lines of code

… 2–3 times. Not ok to repeat them 1000 times.

lelf··on Mockingbirds show heightened aggression after lead exposure
The paper http://karubian.tulane.edu/wp-content/uploads/sites/9/2018/1...
lelf··on EightOS: Open-Source Operating System for the Bodymind
“Upvote first, open later” probably
lelf··on EightOS: Open-Source Operating System for the Bodymind
TL;DR: it’s not for machines. https://8os.io/product/manual/
lelf··on 9999999999999999.0 – 9999999999999998.0

  › perl6 -e '.say for $*PERL.compiler, 9999999999999999.0-9999999999999998.0'
  rakudo (2018.11)
  1
lelf··on 9999999999999999.0 – 9999999999999998.0

  >>> Decimal('9999999999999999.0')-Decimal('9999999999999998.0')
  Decimal('1.0')
lelf··on Absolute Beginner's Guide to Emacs (2012)
M-x compile (and related) works too.
lelf··on Erlang/OTP 21's new logger
https://github.com/erszcz/docsh
lelf··on Domain hacks with unusual Unicode characters
Also: wordpreß.com
lelf··on Global Kernel Locks in APFS
Absolutely nothing there indicates the presence of global kernel locks. readdir (obviously!!!) needs to hold a lock, it’s not global, it’s per-DIR.
← PreviousPage 7 of 21Next →