HNHacker News
TopNewBestAskShowJobs

lower

644 karma · joined June 3, 2017

submissionscomments
lower··on RaptorQ and performance optimization in Rust
When comparing a Rust rewrite of a C++ codebase, I noticed that Rust's default HashMap and HashSet were noticably slower than unordered_map and unordered_set. The reason is that Rust uses a hash function that has better properties, but that is a bit slower. If the performance of a HashMap is a bottleneck, one can use a simpler hash function to get the same performance as in C++. With FnvHashMap, the performance was the same as unordered_map.
lower··on Debunking the Capitalist Cowboy
Do you know how hard it is to get tenure? You have to work extremely hard for a decade and beat the best. If you don't manage to get tenure then you're left with nothing. In fields like computer science this isn't so bad, because there are good opportunities in industry. But in the arts, pursuing a career in academia means taking a big risk.

I'm not saying that building a business is easy. But neither is building a career in academia. It takes many of the same skills.

lower··on Debunking the Capitalist Cowboy
> academics who have never built a business, hired employees,

You don't seem to know much about what academics do. A large part of their work consists of project planning, obtaining funding, hiring people to do the research work, advertise the results to get other people to contribute and so on. Only junior academics can really focus on the research. From a certain level of seniority, many academics are really research managers. It's very much building a business.

lower··on Modern Alternatives to PGP
While this is a good movie, one should be aware that it does not reflect the reality in Eastern Germany all that well. It's not a documentary.

In preparation for the film, the director asked Christoph Hein, an Eastern German writer, to describe the typical life of a writer in Eastern Germany (which is what the film is about). At the premiere, Hein's name was included in the opening credits, but he asked to have it removed, because he couldn't see his story in the film. He described the film as being more of a dark fairy tale than a depiction of life in 80s Eastern Germany.

lower··on GNOME Shell and Mutter
For what it's worth, Gnome is very usable on a 1440p screen if one sets Font Scaling to 1.6 (in tweak tools) and leaves the general scaling at factor 1. The result is that the fonts have the right size, while GUI elements are a bit smaller than usual (which is actually quite nice because it saves space). Maybe that's why this hasn't been fixed properly for so long.
lower··on GNU Bison 3.3 released
> Parser/lexer generators are really easy to use for DSLs but for real languages and tools, they're too heavyweight and constraining.

Haskell and OCaml are examples of real languages that use parser generators.

GHC: https://github.com/ghc/ghc/blob/master/compiler/parser/Parse...

Ocaml: https://github.com/ocaml/ocaml/blob/trunk/parsing/parser.mly

lower··on Darkstar: A Xerox Star Emulator
On Linux you need mono, nuget and msbuild. I used a recent versions from https://www.mono-project.com/

Then you should be able to do:

    git clone https://github.com/livingcomputermuseum/Darkstar.git
    cd Darkstark
    nuget restore
    msbuild
This should produce a Darkstar.exe below D/bin, which you can execute using "mono Darkstar.exe".

On Windows, if you have Visual Studio, then you can just open D.sln and build the project.

lower··on Learn EBPF Tracing: Tutorial and Examples
You can do

    bpftrace -e 'tracepoint:syscalls:sys_enter_open* { printf("%d\n", pid); }'
but then you can't access the arguments of the different probes uniformly, i.e.

    bpftrace -e 'tracepoint:syscalls:sys_enter_open* { printf("%d %s\n", pid, str(args->filename)); }'
does not work.

You can do it like this:

    bpftrace -e 'tracepoint:syscalls:sys_enter_open { printf("%d %s\n", pid, str(args->filename)); } tracepoint:syscalls:sys_enter_openat { printf("%d %s\n", pid, str(args->filename)); }'
This is a bit awkward, but it seems that this will be fixed: https://github.com/iovisor/bpftrace/issues/132
lower··on German politicians targeted in mass data attack
But keep in mind that CDU is Angela Merkel's party. She is probably the hate figure of the far-right in Germany.
lower··on Learn EBPF Tracing: Tutorial and Examples
From the bpftrace tutorial, I would have expected the one-liner

    bpftrace -e 'tracepoint:syscalls:sys_enter_open { printf("%d %s\n", pid, str(args->filename)); }'
to show me all open calls as they happen. I would have expected to see an open when I cat a file, for example. But trying the one-liner, I only see a few opens of files in /proc.

Can anyone explain what's happening?

lower··on Algol 68: A Retrospective
This reminds me of a quote by Tony Hoare from 1973 about Algol 60:

"Here is a language so far ahead of its time, that it was not only an improvement on its predecessors, but also on nearly all its successors. "

lower··on DDR Type 2 Short-wave spy transmitter
I don't think there are any border disputes in this area.

Perhaps the hobby-archaeologist wanted to remain anonymous because unearthing historical artifacts with a metal detector is illegal in some places. In Germany one needs a permit at least and must leave finds undisturbed so that archaeologists can see the context of the find. If the hobby-archaeologist is searching illegally, then he/she may be afraid that the location of the find may lead to him/her.

lower··on Pictures from the Eastern Bloc in the 80s
Watching Western German television was not officially forbidden and in the 80s most people did it. It was, however, frowned upon and seen as suspect by the authorities. Imagine having to justify yourself in a discussion with the Stasi for consuming the enemies' propaganda.
lower··on Compiler basics: Lisp to Assembly
Are you aware that the TAPL book comes with an implementation of System F?

https://www.cis.upenn.edu/~bcpierce/tapl/checkers/fullpoly/

lower··on Wooden bikes
They don't mention that wood is quite a bit heavier than other materials. Their road bike frames weight 2.5kg, where modern (and much cheaper) carbon fiber frames come in below 1kg.
lower··on CakeML – A Verified Implementation of ML
One reason is probably, that it's a small language with a fully specified semantics. Also, despite its age, it is still a modern language. It's had features like lambdas, type inference, algebraic data types, generics, modules, etc. for decades.
lower··on Čezeta e-scooter: The rebirth of the chicest communist-era scooter
Wait until you hear that the new electric one weighs 120kg (one battery) to 135kg (two batteries).
lower··on Čezeta e-scooter: The rebirth of the chicest communist-era scooter
Yes, but it must also be the looks of the thing. The Simson S51 is newer, has the same sort of speed, is legally treated as a scooter, but does not appear to have the same cult status.

I see the new electric Schwalbe quite often in city traffic and the acceleration of the thing seems insane.

lower··on Čezeta e-scooter: The rebirth of the chicest communist-era scooter
We have something similar in Germany.

The Schwalbe scooter was built in Easter Germany from the the 60s to the 80s and has achieved a sort of cult status. One still sees them today, even in the west. https://de.wikipedia.org/wiki/Simson_Schwalbe

There is now a new electric scooter that looks just like the original: http://www.myschwalbe.com/en/

lower··on What’s Hiding in Your PDF?
The vector drawing program Ipe stores all its data in a PDF. So, you create a drawing, save it as a PDF and can later open the PDF again for editing. Text can be written in LaTeX format and the PDF will contain the LaTeX source for later editing.

https://en.wikipedia.org/wiki/Ipe_(software)

lower··on Motorola and iFixit partner to sell phone repair kits
FWIW, Motorola is very slow with software updates. My G5 plus is currently still on Android 7.0 on the June (!) 2018 security patch level and this is usual. I think that an update to 8.1 is around the corner, but they've promised an update to Oreo for over a year now...
lower··on EU to stop changing the clocks in 2019
In the survey, most people said that they want to keep summer time all year. In Germany, this is what is currently favoured.
lower··on How to Procrastinate Productively
For me it helps to purposely "do something that scares you."
lower··on GlobalFoundries Stops All 7nm Development
They've already announced that they're moving production to TSMC.

https://www.anandtech.com/show/13279/amd-to-fab-7nm-cpus-gpu...

lower··on Introduction to Functional Programming in OCaml
OCaml isn't very extreme in its approach. It's a functional language, but it also allows side-effects and has object with mutable state, for example. It's most certainly a language that is being used mainly to build things. See https://ocaml.org/learn/companies.html and https://ocaml.org/learn/success.html for examples.
lower··on Cable networks are speeding up TV shows to cram in ads
This is for Germany. I assumed that it was EU-wide, but it may be like that in Germany only.
lower··on Cable networks are speeding up TV shows to cram in ads
Here in the EU (edit: at least in Germany), TV stations sometimes slow down their shows to cram in more ads. There are rules that there may be only one block of ads in a show of up to 45 minutes, two blocks in a show of up to 90 minutes, and three blocks in a show of up to 110 minutes. So, if the content is just under 90 minutes or so, stations will stretch it slightly, so that it comes above the limit.
lower··on Twitter is “shadow banning” prominent Republicans
From the article:

> “I'd emphasize that our technology is based on account behavior not the content of Tweets.”

lower··on Undershoot: Parsing theory in 1965
I'm sorry, but this is just rambling. He goes on about theorists and practitioners without actually saying anything about the problem at all. He doesn't explain why he thinks the current state of the art isn't the solution. What does he want to do that isn't handled well?

There are many ways in which parsing can be improved in practice and theory. Actual technical aspects would be more interesting.

lower··on Apple is rebuilding Maps from the ground up
> WHy don't we have the tech to detect hover on touchscreens yet?

We do. Samsung used to have this on their phones (not sure if they still do):

https://www.youtube.com/watch?v=VRzUzRD9Y8k

← PreviousPage 3 of 5Next →