HNHacker News
TopNewBestAskShowJobs

beeforpork

1,293 karma · joined April 6, 2015

submissionscomments
beeforpork··on Proof you can do hard things
This is similarly true for finishing a degree. Luckily, that occurred to me before finishing a degree, because that did feel futile. But finishing a degree proves that you can finish stuff. That's valuable proof for yourself and when you need to give an impression.

The topic itself really doesn't matter that much -- which is also good, because then you can freely choose it to your liking, if possible.

TL;DR: I think this is very helpful advice to people who question stuff.

beeforpork··on Vietnam bans 'Barbie' movie over South China Sea map
How is the border shown in the movie? Is a screenshot available? How is the map embedded into the 'story'?
beeforpork··on In deep space, astronomers spot precursor of carbon based life
Why is this a thing today? There are many complex molecule clouds floating around in space. More complex stuff than methyl has been found. Searching quickly to refresh my memory, they found formic acid in 1990:

https://europepmc.org/article/med/11538681

and amino acetonitrile in 2008:

https://www.mpg.de/567495/pressRelease20080325

By the title of this article, I would have guessed they found, say, an amino acid. Which is also already speculated and expected, but has possibly not yet been detected before. But methyl seems a bit trivial to me, or is the detection of it special and interesting in some other ways? I am not at all an expert, only quite interested.

beeforpork··on A Love Letter to Driving Alone
CO²!
beeforpork··on A simple hash table in C
Maybe consider cuckoo hashing when thinking about hash tables:

https://en.wikipedia.org/wiki/Cuckoo_hashing

No bucket lists are necessary. Guaranteed O(1) read access (not amortized, but always). Can be parameterized wrt. access time vs. memory efficiency. Can also be precompiled for offline data, e.g., Unicode codepoint tables (thought tries are also really good for this).

beeforpork··on Why Lisp Syntax Works
Great read, thanks!
beeforpork··on fe: A tiny, embeddable language implemented in ANSI C
There's also ulisp (for Arduino projects etc.): http://www.ulisp.com/

This is larger, because there are functions for accessing peripherals, and the core is more standard lispy with 'caadr' et.al., and it has a compacting GC, so images can be saved as a compact blob.

beeforpork··on Why the Dvorak keyboard didn't take over the world (2014) [video]
For Emacs controls, I found that Dvorak is not much of a problem after remapping it a tiny bit:

    (keyboard-translate ?\C-c ?\C-n)
    (keyboard-translate ?\C-h ?\C-c)
beeforpork··on Why Lisp Syntax Works
That sounds like an interesting read. Can you post a pointer?
beeforpork··on Why Lisp Syntax Works
Well, I like Lisp, too. But the macros are not really good, but they are basically buggy ('non-hygienic'), and it took a few years to realise and repair that. Look at Scheme or Racket instead.
beeforpork··on Venus is not Earth’s closest neighbor (2019) [pdf]
Kinda weird argument. The average actual distance of two planets on some orbits can be expected to be roughly equal to the distance of the farther planet from the sun (because the max. distance is r2+r1 and the min. distance is r2-r1, so this type of 'average distance' is ((r2+r1)+(r2-r1))/2 = r2), of course with some variation because the orbits are not truely uniform nor truely random.

The usual notion of comparing the orbit radii is way more intuitive, I think.

beeforpork··on My favorite C compiler flags during development
I think -Wno-sign-conversion is a bad idea if you like -Wconversion. It's either with or without conversion warnings, in my opinion, because while you do not lose bits when assigning an unsigned to an int (or vice versa), you do get a misinterpretation of the sign bit and thus a change of the conceptional value the bits represent. It's just highly annoying in C that no-one cares, because C integer typing is so lax by default.
beeforpork··on Mathematicians discover shape that can tile a wall and never repeat
Definitely nice for bathroom tiles! Staring at the wall while doing your business and failing to find a repeating pattern -- wonderful!
beeforpork··on Unreal Engine: Verse Language Quick Reference
Verse github had its last commit Feb 11 2022. And that state is quite immature. Any chance to play with a current version (as a standalone language without a game editor)?
beeforpork··on Yellen earned millions in speaking fees from Wall St, tech firms (2021)
That is all true. But who wants to be a politician when they are public figures that are beaten, accused, humiliated by opponents, the public, and everyone really. You cannot do it right and most people will probably hate you, regardless of what you do. It's not a pleasant job. Unless you get money for all of this unpleasantness. And then, some entities have more money to give than others (you said that in your last sentence). So this attracts exactly those people to be politicians that you might not want to be politicians. Of course, some are better than others (so do go vote for the right ones), but they all need a certain trait for this job.

So how to break this unfortunate dependency? Give the 'right' entities comparably enough money to pay politicians? But how? Like climate vs. oil. OK, that's cheap, but anyway. You cannot expect the system to work with less money flow, I think.

So how to change this?

beeforpork··on “Takumi No Waza” – Japan's famous Green Bell Nail Clippers
> Everyone has a nail clipper.

No I don't. The first sentence is already a lie. :-)

beeforpork··on Web fingerprinting is worse than I thought
When I switched off fingerprinting in this browser, the font size here on Hacker News changed. I suppose it just uses the user agent to set a certain font size, or does Hacker News track based on fingerprinting?
beeforpork··on Speak English to me: The secret world of programmers
Once 'bash' is replaced by 'aish' and its avatar 'SAIri', users will be able to do the tasks that are not immediately clickable in the next menu, by just asking SAIri. At that point, your non-programmer friends won't be asking you stupid questions anymore! :-)

Unless 'aish' has crashed.

beeforpork··on Trichloroethylene: An invisible cause of Parkinson’s disease?
> Given a choice between the chlorinated stuff, and something one can drink half a shot glass of and not suffer any toxic effects, I'll take the acetone any day.

Fun fact: if you drink isopropyl alcohol, your body metabolises it (partly) to acetone, which you can smell and taste. But, well, don't drink either anyway. :-)

beeforpork··on Ultra-processed foods may contribute to cognitive decline
> ... I have nearly zero chance avoiding a sizable portion of what academic scientists label as ultraprocessed. ...

Can you explain a bit why? Isn't what you eat your choice? What's the problem, exactly, I really don't understand why you have nearly zero chance.

beeforpork··on The Last Breaking Change
If the JSON file had a version number for the spec, then could could support future versions without breaking it, ever. Just define that all future versions will include the previous versions. E.g., specify that if a file is meant to be compliant with the next JSON version, then it needs to start with

#JSON1

And the next one with #JSON2. And if a JSON2 parser finds a JSON1 file, it should interpret it as JSON1. If a JSON1 parser finds a JSON2 file, it should try its best to parse it anyway, because your changes are not going to arbitrarily break stuff, right?

This is a breaking change, too, but it may indeed be the last one...

beeforpork··on “Clean” code, horrible performance
Generally,it is good to give advice to write clean code. Undoubtedly, clean code causes less problems than unclean code (e.g., overengineered, overmodularized, or prematurely optimised).

Running speed tests on the much-cited mini-example with geometric shapes and their area is unfair and unrealistic, and it does not prove any point.

I think I can see where this is coming from: 'overly clean' OO style will split concerns into virtual one-liner functions without context distributed throughout the universe. For a simple problem, I prefer 'switch'. But that's not a good rule either. For anything extensible, like a GUI, 'switch' would be the wrong choice and virtual much better.

Programmers need to develop a feeling of appropriateness, and restructuring may be necesaary at times.

BTW, the manual loop unrolling in the article is broken and not advisable at all. I'd be angry in code review about such 'optimisations'.

beeforpork··on Help! Is This Arabic?
م‎ر‎ح‎ب‎اً‎!
beeforpork··on Earth’s innermost layer is a 644 kilometer wide ball of iron, new study finds
Do you want to go there or do you want it to come to you?
beeforpork··on Making It Legal to Play Outside: “Reasonable Childhood Independence” Bills
> but I could never get the cashiers to let me buy cigs for my parents

Absolutely no problem. I was even sent by the school janitor during breaks to buy him cigarettes (i.e., off school campus -- I am sure that wasn't legal even back then). Different times...

beeforpork··on Making It Legal to Play Outside: “Reasonable Childhood Independence” Bills
Aha! I think it is a glimpse into the future of the country here (Germany).

When I was young, I walked to school starting at age 6, and I walked to kindergarten even earlier. (And I played naked in the garden, in a small swimming pool with neighbour's kids (all genders).) It was also no problem to be sent to buy cigarettes, which in hindsight, I find less OK...

Today, parents drive their children to school by car, in walking distance. I don't know how they have time for that, but they cause traffic jams they then complain about.

From here, I am sure we will get a situation like in the US where parents may get into trouble if they give their children some independence.

And from there, the US now gets laws that make it reasonable again to give some independence. Which will follow here, too, I am sure.

It is very interesting!

beeforpork··on Chemists create methane fuel from sun, carbon dioxide and water (2022)
Cody has an example of how to generate oil out of algae and sun light:

https://www.youtube.com/watch?v=64cEmjtwRgw

Very interesting stuff! As others already noted, this is probably a more efficient and more robust technology.

beeforpork··on Bing: “I will not harm you unless you harm me first”
It is being done: as stories are published, it remembers those, because the internet is its memory.

And it actually asks people to save a conversation, in order to remember.

beeforpork··on Determine durations with monotonic clocks if available
> ... backwards-going wall time happens every time we have a leap second. Granted, we're in a long dry spell at the moment, but it'll probably happen again in our lifetimes.

Well, maybe not:

> In November 2022 at the 27th General Conference on Weights and Measures, it was decided to abandon the leap second by or before 2035. From then the difference between atomic and astronomical time will be allowed to grow to a larger value yet to be determined.

I just hope that 2035 is early enough to prevent a negative leap second, which hasn't happened before. It would be quite a brave experiment to have one of those just before abandoning the whole concept.

From: https://en.wikipedia.org/wiki/Leap_second

beeforpork··on Australians scour desert for dangerous radioactive capsule smaller than a penny
Applied Science youtube channel uses this and explains it a bit:

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

← PreviousPage 6 of 15Next →