HNHacker News
TopNewBestAskShowJobs

heinrichhartman

2,496 karma · joined September 28, 2015

Blog: HeinrichHartmann.com Keybase: https://keybase.io/hartmann Twitter: @HeinrichHartman http://twitter.com/Heinrichhartman GitHub: https://github.com/HeinrichHartmann/
submissionscomments
heinrichhartman··on Major Linux Problems on the Desktop, 2020 edition
Tangent: What are people using for thin clients / terminals? E.g. stuff that is deployed at e.g. airport displays for showing connections flights or self service cash-registers?

Linux seems like the obvious choice as a base OS. However, running X+Firefox ontop of it seemed too clunky (slow) and unrelieable to me?

- How do I make sure you recover from crashes reliably?

- How do you secure the inputs, to avoid escapes from the application?

heinrichhartman··on Show HN: Visualizing Maps in R^3
This is nice. Is the code on GitHub?

Might make sense to use two coordinate systems for source and target?

heinrichhartman··on Ask HN: What is a software developer prime time age?
Right here. Right now. :P
heinrichhartman··on Circle Packing
I am no expert either, but I just checked Wikipedia on Reed-Solomon codes [1]:

> By adding t check symbols to the data, a Reed–Solomon code can detect (but not correct) any combination of up to and including t erroneous symbols, OR locate and correct up to and including ⌊t/2⌋ erroneous symbols at unknown locations

So it looks like you would have to choose between, either:

   A) correcting 6 bits OR
   B) detecting 12 bit errors.
No?

[1] https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_cor...

heinrichhartman··on Why does OpenBSD still include Perl in its base installation?
Standard library is another factor. Lua does not come with any batteries. Even sockets are an external dependencies. So you would need to ship (and maintain) a lot of libs.
heinrichhartman··on Circle Packing
Sphere packings are quite a deep and fascinating area of pure mathemaics. It has close relations to coding theory, lattice theory, number theory, modular forms.

John Conway [1] (who recently passed away due to COVID) wrote a famous book about it: Sphere Packings, Lattices and Groups -- which summarizes the subject concisely.

A recent (2017) break through, was the proof that the Leech Lattice [2] yields the optimal sphere packing in dimension 24 [3]. The error correcting code constructed from this lattice is the Binary Golay Error Correcting Code [4]. It is able to correct 3 bits for every 24 bits, and maximally efficient in doing so. It was used to communicate with the Voyager probes.

[1] https://en.wikipedia.org/wiki/John_Horton_Conway [2] https://en.wikipedia.org/wiki/Leech_lattice [3] https://arxiv.org/pdf/1603.06518.pdf [4] https://en.wikipedia.org/wiki/Binary_Golay_code

heinrichhartman··on Diving into Go by building a CLI application
iTerm2 on OSX supports inline images. https://iterm2.com/documentation-images.html

Let's you do stuff like this: https://twitter.com/heinrichhartman/status/12655859919282216...

heinrichhartman··on Make Writing a Habit
I was thinking about web-blogging / Zettels (https://braindump.jethro.dev/zettels/), but not about a particular platform. Could be under writenext.io/.
heinrichhartman··on Make Writing a Habit
Any intentions on bolting-on/integrating with a publication pipeline?

    WRITE <=> EDIT <=> REVIEW <=> PUBLISH
heinrichhartman··on MacOS Catalina: Slow by Design?
> [...] it appears that low-level system API such as exec and getxattr now do synchronous network activity before returning to the caller.

WTAF. If this is really true, this is a reason for me to leave the platform for good. This is just in-acceptable in so many ways.

heinrichhartman··on Using `make` and `git diff` for a simple and powerful test harness
Note that GNU CoreUtils also use Make + shell-scripts + diff for their test harness: https://github.com/coreutils/coreutils/tree/master/tests

Its not as slick or concise as the solution proposed here, but it shows that the approach is viable for medium-large projects.

heinrichhartman··on An introduction to RabbitMQ
I am no export but I have heard PH say, that it's much worse than the AMQP-0.9 Spec. It's a design-by-comitte thing, where he was sidelined.
heinrichhartman··on Ray tracing in notepad.exe at 30 FPS
Does `M-x compile` not work for you on windows? This is what I use to do run build scripts async.
heinrichhartman··on An introduction to RabbitMQ
You might find it interesting to note, that Peter Hintjens, was one of the core authors of the AMQP 0-9-1 Specification [1], that RabbitMQ is implementing.

ZeroMQ was born out of a frustration with complex routing patterns and the need for a broker-less architecture for maximal performance message delivery.

[1] https://www.rabbitmq.com/resources/specs/amqp0-9-1.pdf

heinrichhartman··on Ray tracing in notepad.exe at 30 FPS
Actually. I just added something similar to my emacs yesterday:

    (defun sh-line ()
      (interactive)
      (let ((cmd (buffer-substring-no-properties (line-beginning-position) (line-end-position))))
        (end-of-line)
        (newline)
        (insert (shell-command-to-string cmd))))
    (local-set-key (kbd "M-RET") 'sh-line)
With this Alt-RET will evaluate the last line in your shell, and insert the output.
heinrichhartman··on The State of the AWK
I came to AWK via DTrace http://dtrace.org/blogs/about/

When processing event streams, it's very natural to express transformation as FILTER + ACTION rules.

AWK is an embodiment of this idea for the domain of text processing where events are lines (or multi-line records).

DTrace uses the paradigm to process low-level system events (like scheduling events, or (kernel) function calls).

It's a good paradigm, worth using.

However, it's easily replicated in every other language with a loop:

    while true {
      rec = read()
      if( filter1(rec) ) { action1(rec) }
      if( filter2(rec) ) { action2(rec) }
      ...
    }
You don't need a special language to do event processing like this.
heinrichhartman··on Spotify signs ‘The Joe Rogan Experience’ to an exclusive multi-year deal
“attacked transgender people, gay men, women, people of color and countless marginalized groups at every opportunity.”

What a gross misrepresentation. Have the listened to any of his shows?

heinrichhartman··on Google bans Podcast Addict app over non-approved Covid-19 content
I am not talking about any particular existing nation state. I am saying that the problems we are experiencing could be solved by having some form of "constituted digital public spaces and platforms". I am well aware of the practical difficulties in establishing these. But it's our inability to create those spaces that is hurting us here.
heinrichhartman··on Google bans Podcast Addict app over non-approved Covid-19 content
Exactly. So how would you approach this?

If this problem is not addressed, the internet may well segregate along national boundaries (just as you describe).

heinrichhartman··on Google bans Podcast Addict app over non-approved Covid-19 content
No?
heinrichhartman··on Google bans Podcast Addict app over non-approved Covid-19 content
I am not talking the US in particular here. I am saying these decisions should be made by courts not by private institutions, that have stakes in that game.
heinrichhartman··on Google bans Podcast Addict app over non-approved Covid-19 content
I agree, that this would have been the better option for them. Now they are stuck with their conent-screening frams, and censoring algorithms. It's a mess.

Still. Even if they did take that turn. I don't think they would have stayed truly neutral. Lot's of ways to penalize competition without banning them from your platform. A wolf is a bad shepherd.

heinrichhartman··on Google bans Podcast Addict app over non-approved Covid-19 content
This is the result of out-sourcing juristic work to private companies:

If we treat Android, Window, Twitter, Facebook, as public spaces/goods, then private companies should not have a say in what is allowed/not-allowed on their platforms. This is work for the courts and police to decide and enforce.

If we treat those platforms as private. Then we are playing in s/o's backyard. You are totally at their mercy. They have every right to kick you out if they don't like your face. It's their property. You are a guest.

I think we need constituted digital public spaces and platforms with:

- democratic footing (users are in charge)

- public ownership

- division of power (politicians =!= judges =!= police)

- effective policing

In such a system it would be for independent courts to decide which Apps can be distributed and which not. Those courts would be bound to a constitution/body of law, which applies to all parties a like.

Yes, this will be expensive. Yes, you will have to give up some privacy. But you will be a citizen in a society, and not a stranger playing in a backyard.

Maybe the current platforms can be coerced into a system which approximates the above. But I have my doubts. I hope in 200years people will have figured this out, and will look back to this age as the digital dark ages.

heinrichhartman··on The CPU Cost of Networking on a Linux Host
Interesting. I always suspected something like this was going on. Virtual networking / "SDN" just sounded slow to me.

Do you know a good source, to learn about the lower-level Linux/container/docker/k8s networking?

heinrichhartman··on A 2020 Vision of Linear Algebra
The geometric version is the most intuitive for me:

If the volume of the prallel-epiped is zero, then there will be directions in the target space, that you did not hit. Hence he matrix can not be invertible.

heinrichhartman··on A 2020 Vision of Linear Algebra
> seldom get back the "best" conceptual answer, "the determinant is the product of the eigenvalues."

I found that the "best conceptual" answer depends a lot on taste, and what concepts you are familiar with.

In this case:

- Calculating exact eigenvalues of matrices larger than 4x4 is impractical, since it requires you to solve a polynomial of degree >4.

- The EV exist only in algebraically closed fields (complex numbers), while the determinant itself lives in the base field (rationals, reals).

How about:

- [Geometric Determinant] The determinant is the volume of the polytope (parallel-epiped) spanned by the column vectors of the matrix.

- [Coordinate Free Determinant] The determinant is the map induced between the highest exterior powers of the source and target vector spaces (https://en.wikipedia.org/wiki/Exterior_algebra)

- I think there is also a representation theoretic version, that characterizes the determinant as invariant under the Symmetric group acting by permutation on the columns/rows of the matrix.

heinrichhartman··on Webrecorder: Make an interactive copy of any web page that you browse
Which browser and extension are you using?

I tried a few, but could not get good results with any of them. print to pdf, output always looked terrible. Full page screenshot took ages to scroll throught the page hijacking my viewport. Those captures should happen in the background.

heinrichhartman··on 0.999...= 1
This has nothing to do with notation. It's perfectly possible to define infinite sequences without using dots. In particular if they are constant. In the above case:

    a_i = 9 for i \in \IZ and i < 0
    a_i = 0 for i \in \IZ and i >= 0
Where \IZ are the integers.
heinrichhartman··on EU-Commissioned Study Proposes European Firewall [pdf]
Controversial take:

Freedom is not the same thing as anarchy. Freedom comes from Constitution and some form of state that enforces laws, and protects it's citizens. (Paraphrasing Lessig's CODE 2.0 http://www.codev2.cc/ from 1999!)

Is it possible, that in order to gain freedom the internet has to become more regulated not less?

If this is the case, how can we do this?

There are no international bodies that have been successful at regulating the internet as a whole. So far regulation of the internet has effectively come from large governments like the US/EU which are limited in scope and had great trouble being effectively enforced.

Given that there are no global institutions, that can effectively enforce internet regulation: Is there any way around some form of segregation of the internet along national borders (EU/US/CN/..), that allows the states to enforce their rules within their part of the internet, and keep out bad actors from elsewhere?

heinrichhartman··on Good writing is a business advantage
Great list. Let me add a few things:

* Ad Precision/Conciseness: When crossing disciplines from Math => Software, this annoyed me to no end: I was not able to express myself concisely. I found that vocabulary is a large part of this, I knew what I meant but did not have the words for it. This is stuff like: call site. caller callee. function signature. deployment vs. installation vs. release

Also you need good words to describe the objects/systems that you are building, and the domain your are operating in. This is why NAMING things is so critical. You need to have good words for the concepts you are working with.

* Ad Directness: Yes. But try to avoid value judgements and insults. Stay objective: "This code is shit!" vs. "I don't think the case X==0 is handled correctly."

← PreviousPage 6 of 15Next →