HNHacker News
TopNewBestAskShowJobs

lelf

67,542 karma · joined April 20, 2011

  occasional c⊎k⊎haskell⊎erlang hacker
  #76d6ff
submissionscomments
lelf··on A History of APL in Fifty Functions (2016)
Yes. https://github.com/Co-dfns/Co-dfns can target GPU.
lelf··on A History of APL in Fifty Functions (2016)
Modern APL incarnations (kdb, dyalog apl) are quite damn parallel.
lelf··on Intel's CIP wants to collect the “categories of websites you visit”
<details> are quite handy for github comments. (Yes, they work!)
lelf··on Tearing apart printf() (2018)
4. On GNU/Linux you can add your own %-conversions (e. g. %Y) with register_printf_function.
lelf··on Multiple ways to compute e in Raku
Also, Eccentric Euler’s one-liner:

  > '𝑒'.uniname
  MATHEMATICAL ITALIC SMALL E
  > say 𝑒
  2.718281828459045
lelf··on CRDT: Conflict-free replicated data type
Yes. NHS.uk, Bet365, TI Tokyo. Bet365 bought all the assets (and open sourced them).

Last release was several months ago.

lelf··on CRDT: Conflict-free replicated data type
And https://riak.com
lelf··on Computing pi with bc
Welcome to the world of functional programming!

This is how much memory the garbage collector has freed during the computation. It does not mean REPL actually used that much at any given moment.

lelf··on Computing pi with bc
> I imagine bc is using some sort of power series

There is also a cool Haskell package, numbers, that has all arithmetics defined via power series:

  $ cabal v2-repl -b numbers
    ⡇
  λ> import Data.Number.CReal

  λ> cos pi + 1 :: CReal
  0.0

  λ> :set +s
  λ> showCReal 10000 pi
  "3.141592653589793238462643383279502884197169399375105820…
  (2.69 secs, 688,668,864 bytes)
lelf··on Alphabet in bid to buy Fitbit
> Google is buying technical debt.

They are buying (a lot of) data and a list of customers. They don’t care about the app code.

lelf··on The “Windmill” Problem on the 2011 International Mathematical Olympiad [video]
The problem:

Let S be a finite set of at least two points in the plane. Assume that no three points of S are collinear. By a windmill we mean a process as follows. Start with a line l going through a point P ∈ S. Rotate l clockwise around the pivot P until the line contains another point Q of S. The point Q now takes over as the new pivot. This process continues indefinitely, with the pivot always being a point from S.

Show that for a suitable P ∈ S and a suitable starting line l containing P, the resulting windmill will visit each point of S as a pivot infinitely often.

lelf··on Soli
> Motion Sense will evolve as well. Motion Sense will be available in select countries².

What this has to do with the country?!

lelf··on Apple of 2019 is the Linux of 2000
> After a ton more googling

I believe the author is exaggerating it a little bit. Local time machine snapshots are not arcane secret knowledge (man 8 tmutil).

lelf··on Apple Is Sending URLs to Tencent?

  bash$ c++filt <<< ____ZN7Backend6Google12SSBUtilities24shouldConsultWithTencentEv_block_invoke_2
  invocation function for block in Backend::Google::SSBUtilities::shouldConsultWithTencent()
Edit: what are downvotes for? That is the standard way to decipher C++ mangling, using built-in (binutils) tools.
lelf··on Which companies are using Erlang, and why?
Not after 2-4 cores. And R13A is 2009, that was 10 years ago. (Java 8 is 2014.)

Today’s Erlang (R22) MP support is practically the best, bar none.

lelf··on Which companies are using Erlang, and why?
> Surprisingly enough multicore support was not great

Considering that it’s state of the art, you must have been doing it terribly wrong.

> adding `true -> ok` to every if statement

That confirms it.

lelf··on iPadOS
> Apple will never track or profile you when you sign in with Apple. The most information you’ll have to share with an app or website is your name and email address.

…like that’s not too much.

lelf··on Two California hikers found a family's message in a bottle and helped save them
> Please don't submit comments saying that HN is turning into Reddit. It's a semi-noob illusion, as old as the hills.

(c) https://news.ycombinator.com/newsguidelines.html, should be in FAQ too ;-)

lelf··on iPhone 11 Pro and iPhone 11 Pro Max
> almost everyone carries their phone in a case

[citation needed]

lelf··on Exim – remote attacker can execute programs with root privileges
Some mitigations mentioned in https://lists.exim.org/lurker/message/20190906.185037.1ff8bb...:

> Add - as part of the mail ACL (the ACL referenced by the main config option "acl_smtp_mail"):

     deny    condition = ${if eq{\\}{${substr{-1}{1}{$tls_in_sni}}}}
     deny    condition = ${if eq{\\}{${substr{-1}{1}{$tls_in_peerdn}}}}
lelf··on Exim – remote attacker can execute programs with root privileges
C at its finest https://github.com/Exim/exim/commit/cdc7f9a9667ecf31d803fc8d...
lelf··on The “mail is hard” myth
> but my mails will not reach my users at Big Mailer Corps

Unfortunately this is not a myth. rDNS/DKIM/SPF/not in any greylists, but mail from you goes to Junk folder on GMail®, experienced that myself.

lelf··on BPF port-based firewall for systemd services
> and I guess some of the BSDs?

BPF, BSD — notice the first letter is the same ;-)

Also, many systems (some BSDs, SmartOS, macOS, Windows10, …) have an in-kernel VM for running dtrace bytecode.

lelf··on Is Perl 6 Being Renamed?
It is.

Ref: https://www.youtube.com/watch?v=S5iVBlk7pdg&t=279m33s “Perl 6 Performance Update”

lelf··on Is Perl 6 Being Renamed?
> s/Perl/$other_language/g

I’m somehow not sure Perl6 has anything to do with that.

> because they're tired of waiting for Perl 6

But…for what exactly? It’s already stable enough for use.

lelf··on Interviews with programming language creators (2010) [pdf]
(2008–2010).
lelf··on Moscow's blockchain voting system cracked a month before election
No. That is just test data for “cryptographic strength testing”.
lelf··on GNU Parallel 2018
> xargs is usually installed by default

xargs is part of POSIX, so it should be everywhere.

(-P/-n are not, but both GNU and BSD versions do support it.)

lelf··on Zibaldone, the 14th Century’s Answer to Tumblr (2016)
Interestingly it’s “the 13th Century” there (and in the url).

Probably atlasobscura silently changed(/fixed?) it: https://web.archive.org/web/20160830171522/https://www.atlas... vs https://web.archive.org/web/20160901120029/https://www.atlas...

lelf··on Facebook is embedding tracking data inside the photos you download
It is

  exiftool -IPTC:SpecialInstructions
(it will be a string starting with FBMD.)

And while it’s obviously (can be used for) for tracking, it’s just a exif tag, “Special instructions” is a text for humans, not machine instructions.

So s/Structural abnormality IPTC special instruction/a standard exif tag/ for less click-bait.

← PreviousPage 2 of 21Next →