HNHacker News
TopNewBestAskShowJobs

cdirkx

461 karma · joined December 31, 2017

submissionscomments
cdirkx··on World’s biggest iceberg heads for disaster
> Over 68 percent of the fresh water on Earth is found in icecaps and glaciers, and just over 30 percent is found in ground water. Only about 0.3 percent of our fresh water is found in the surface water of lakes, rivers, and swamps [1].

Fresh water has a different density than salt water, and ice melting in the artic and antarctica is resulting in a huge influx of fresh water that can disrupt ocean currents [2]. These currents currently distribute a lot of heat around the world, and them stopping would result in places like europe getting much colder, while other regions would become much hotter (and with the warmer oceans, probably also have extremer hurricanes).

[1] https://www.nationalgeographic.org/media/earths-fresh-water/

[2] https://wikipedia.org/wiki/Shutdown_of_thermohaline_circulat...

cdirkx··on EU pushes for 'right to disconnect' from work at home
Th right to breathe seems like something worth dying for.
cdirkx··on Justice Department Sues to Block Visa's Proposed Acquisition of Plaid
It might be bad if their main source of incomes becomes not the transaction fees, but hidden fees or selling data about you. However, that argument requires them not doing this already :)
cdirkx··on What is protein folding? A brief explanation
From my understanding it was mostly useful for understanding new sequences in medical and genetic engineering; questions like can we modify this part of the protein and keep the overall structure the same.
cdirkx··on Show HN: Tiny 1k Rust binary on Windows
Oops, my bad, I was working with an outdated understanding of the situation. Thanks for correcting me.
cdirkx··on Show HN: Tiny 1k Rust binary on Windows
They are the same: asm! was replaced by llvm_asm! because it currently only supports llvm asm and the name might suggest otherwise [1]. A backend independant syntax for asm! was recently specified [2], but that will take some time to implement.

[1] https://github.com/rust-lang/rfcs/pull/2843

[2] https://github.com/rust-lang/rfcs/pull/2873

cdirkx··on Popular Pirate Sites ‘Disappear’ from DuckDuckGo’s Top Search Results
In the settings on search they currently only have the option "hide explicit results"; that could be expanded to give users control over the filters used.
cdirkx··on Campaign “Reclaim Your Face” Calls for a Ban on Biometric Mass Surveillance
Better wear a thick coat too.

"The pentagon has a laser that identifies people by their heartbeat"

https://www.engadget.com/2019-06-27-the-pentagon-has-a-laser...

cdirkx··on I reverse engineered McDonalds’ internal API
Basically, yeah. They get refilled multiple times a day, and it's continually stirred, but only completely emptied during maintenance.
cdirkx··on I reverse engineered McDonalds’ internal API
The machines still get taken apart and washed by hand, along with some maintenance, every 14 days. So every machine will additionally be off for an afternoon every two weeks.
cdirkx··on A legislative path to an interoperable internet
Why not? I have loads of different accounts from gaming services with friend lists and chat: Steam, Epic Games Store, Blizzard's Batte.net, etc. It would be nice if those were interoperable.
cdirkx··on Pandemic sparked European cycling revolution
I always see "being sweaty" being mentioned here when talking about commuting via bike, why? Is it the hills? I live in a flat area and this has never been a problem for me.
cdirkx··on My least favorite Rust type
What would you expect those values to be?
cdirkx··on Decision Table Patterns
A few years ago I was working with JetBrain's MPS [1] and got excited about it's projectional editor, which allows for different "projections" of your code, not just linear text. One of the things this enables is using descision tables directly within your code [2], as well as a bunch of other things like math notation or graphs for statemachines [3]. Being able to use another notation than just plaintext can make some code a lot clearer.

I know this isn't going to replace code as text anytime soon, but it looked really interesting. Does anyone know of other projects experimenting with representing code in other ways?

[1] https://www.jetbrains.com/mps/

[2] https://www.jetbrains.com/mps/img/screenshots/2017.2/domain-...

[3] http://www.mbeddr.com/platform

cdirkx··on Ireland to Order Facebook to Stop Sending User Data to U.S.
They are free to reduce tracking user data globally, they don't have to apply it only to the EU.
cdirkx··on Journalists aren’t the enemy of the people. But we’re not your friends either
But journalists do not typically have that power. What stories reach readers and how it is presented is power of the editors and board, like the parent pointed out.

If your bosses don't want a story covered (in a specific way), it's not going in the newspaper.

cdirkx··on Teens' anxiety levels dropped during pandemic, study finds
In my history classes we were never quized directly on things as dates. However, you were expected to be able to use those in context. Example of a question: "Some historians consider the Cold War to be an ideological conflict that already started in 1917, argue why:"
cdirkx··on Lockheed Martin receives $187.5M for mesh network of 10 small satellites
> although it seems unlikely that there would be an emergency so urgent that ICMBs would need to be converted into satellite launch vehicles, but not so urgent that the ICMBs wouldn't be used for the intended purpose

Maybe an extreme solar storm or super nova.

cdirkx··on Sum Types in Julia and Rust
Rust also has 'union' types [1] that work similar to the union types in C, C++.

Recently there has also been a lot of discussion [2] about possibly adding anonymous enums to the language, and whether these should have sum or union semantics.

[1]https://doc.rust-lang.org/reference/items/unions.html

[2]https://internals.rust-lang.org/t/ideas-around-anonymous-enu...

cdirkx··on Townscaper – A building game inspired by the design of Scandinavian cities
Mostly, yes. It's a simple but neat game.

There is however some strategy involved in planning ahead. In the early game you might want to place buildings less optimally, to leave room for later game buildings that are worth more points, or set up large bonuses from other buildings.

cdirkx··on Santa Cruz, California bans predictive policing in U.S. first
I am a man and worked in fastfood during my studies.

I was offered a permanent contract immediatly after my first month, while there were also a lot of women with kids working there who had been on temp contracts for years. Probably because I could work at night; the mothers worked during schooltimes. Any time someone got pregnant, their contract was not renewed.

In this situation I had an advantage because of my gender. This was not because the business itself was specifically sexist, in fact almost all of management were women. Instead, the systems in place made it so that financially smart decisions negatively impacted women.

cdirkx··on Gravity Is Not Like the Other Forces
Because you can get out of them again.

A sink, to me, has the connotation of something being removed from a system.

cdirkx··on Google removes over 5M reviews from Play Store to improve TikTok rating
Steam has an interesting approach to review bombs, it keeps the negative reviews visible but excludes them from the aggregated rating. The rating has a big asterisk with info that this game has had a "period of off-topic review activity detected", allowing you to see when this period was, the percentage of reviews excluded, and the "off-topic" reviews themselves.

As an example: Borderlands 2 [1], which got review bombed when Borderlands 3 was announced to launch exclusive to the Epic Game Store.

[1] https://store.steampowered.com/app/49520/Borderlands_2/#app_...

cdirkx··on Transpiling between any programming languages (2019)
Yes it would probably produce a lot of unidiomatic code (see for example c2rust [1], which generates semantically equivalent Rust code, but with raw pointers and unsafe everywhere). In the worst case you could even just emulate the origin language in the target language, everything is turing complete after all.

With enough effort and smart transformation passes however, I think you could come pretty close to something resembling "native" code. It might not always be worth it to spend that development time though.

[1] https://c2rust.com/

cdirkx··on Transpiling between any programming languages (2019)
I did something similar as in my Bachelors end project. A manufacturer of industrial printers wanted to generate API bindings in multiple languages from a single source of truth.

We started with just transpiling data definitions based on Apache Thrift [1], but later expanded it to also be able to transpile code checking invariants on the data and integration tests.

Jetbrains' Meta Programming Studio (MPS) [2] was a really great tool for this, as it does a lot of what is mentioned in the article for you. It makes it really easy to define new nodes, syntax rules, parse rules from text, ast-to-ast transformations etc.

[1] https://thrift.apache.org/

[2] https://www.jetbrains.com/mps/

cdirkx··on Transpiling between any programming languages (2019)
Spoken languages have the problem of ambiguity, context, changing meaning over time to different people. Programming languages are pretty structured and well defined.
cdirkx··on New in PHP 8
I just encountered this last week.

I had to explain to my fellow non-IT students why I was making loud gasps of confusion.

cdirkx··on Lyft’s algorithm is trying to block people with names like ‘Dick’ and ‘Cummings’
I think the "old religious beliefs" have more to do with it than any connotation of forced sex (at least I have never recognized this in the way people use the word).

"making love" is something partners do as a healthy and (re)productive part of their relationship, "fucking" is what 'animals' do, purely done for pleasure. It is a bad word for the same reason gluttony, excessive alcohol and drugs are a sin. A society where everyone mindlessly chases dopamine from carnal pleasures is less productive, especially when this leads to unrest and violence (and I guess that's where forced sex comes into play).

cdirkx··on Hacking GitHub's Auth with Unicode's Turkish Dotless 'I'
Yes, the Unicode Technical standard identifies the Latin, Greek and Cyrillic (most of IPA characters) scripts as confusable, and recommends against mixing them in identifiers. Use in general text is fine though.
cdirkx··on Hacking GitHub's Auth with Unicode's Turkish Dotless 'I'
The Unicode Technical Standard [1] (different from Unicode Standard) recommends treating identifiers (filenames, variable or fuction names, email adresses, usernames, etc.) different from normal text. There is a special class of 'identifier characters' which already exludes a lot of sneaky characters like invisible punctuation and obscure scripts that are not in modern use.

Additionally there are 5 additional restriction levels for identifiers depending on your specific situation:

1. ASCII only

2. single script

3. single script or Latin+{Japn, Hanb, Kore}

4. single script or Latin+{any, excluding Cyrillic, Greek}

5. Not containing any characters in the recommended blacklist of characters for use in secure contexts

6. No restrictions other than normal identifier restrictions

For any specific strings that might be confused, there is an algorithm to compute the visual 'skeleton' of a string and match it against that of another string to test if they are confusable.

[1] https://www.unicode.org/reports/tr39/

← PreviousPage 3 of 5Next →