HNHacker News
TopNewBestAskShowJobs

otabdeveloper2

71 karma · joined August 10, 2017

submissionscomments
otabdeveloper2··on A Guide to Undefined Behavior in C and C++ (2010)
"Undefined behavior" in C++ just means stuff that's either CPU-specific or compiler-specific.

Rust has no undefined behavior because it only supports one CPU and has only one compiler implementation.

When Rust supports a dozen architectures and has three different compiler implementations then Rust will be just as full of UB as C++. Except with the added "bonus" of all the UB being brand-new and unspecified, unlike the well-known portability pitfalls of C++.

otabdeveloper2··on Show HN: Whack – A simply-designed compiled programming language
> Whack currently lacks a comprehensively designed type system.

The type system is 90% of programming language design effort.

This is like releasing a car without a 'comprehensively designed engine'.

otabdeveloper2··on How to build a Moon base
'How' is the easy part.

'Why' is what they should really answer.

otabdeveloper2··on Orca: differential bug localization in large-scale services
I work in ad tech. The project is certainly "large scale", but 90% of the bugs are "CTR is down" or "CPM is down". Hard to see how this Orca could help in this context.
otabdeveloper2··on C++ Programming Questions to Ask on Interview (2017)
> the minutia that std::unique_ptr<> has no copy constructor.

This is not minutae. This is a test if you understand the theory behind ownership semantics.

otabdeveloper2··on Encrypted SNI Comes to Firefox Nightly
IPv6 will never gain universal adoption.

Nobody wants their home or their datacenter machines exposed to the whole Internet all the time.

NAT is a feature, not a bug.

otabdeveloper2··on Do We Worship Complexity?
Probably you're right, yeah.

For example, I know a heavily right-brained person, and when he reads a book, instead of the intuitive sequential pattern (even page-odd page-even-odd-even-odd) he may read it in a zig-zag (even-even-odd-odd-even-even).

The analogy is synchronous processing (left brain) vs multithreaded (right brain).

On the other hand, right-brained people seem to have problems doing 'obvious' things like finishing chores in order, telling left from right or positioning something on a blank page.

otabdeveloper2··on Dupa4s: The Principled Way to Print “Dupa” to the Console for Scala
Scala sucks ass.
otabdeveloper2··on Do We Worship Complexity?
> Is there really such a thing as left or right brained?

Yes, there really is, but the way it's described in American media is a load of crap. I don't think anybody published actual real science about this in English.

otabdeveloper2··on Do We Worship Complexity?
> left/right (logical/creative) axis

The logical/creative dichotomy is bullshit based on fake science.

In reality the left brain (dominant for most people) prefers sequential, step-by-step thinking, while the right brain prefers simultaneous and spatial thinking.

Math professionals are actually biased towards right brain people. (It's hard to get anywhere in real math using step-by-step algorithms.)

otabdeveloper2··on The Google+ project and exec team
It's not a Google thing. Every single large, successful company does this.

It is a no-brainer decision from a game theoretic point of view: these companies already have a top-of-the-line, best in the world product. Working on more products requires lots of inspiration, time and luck, and even in the best case all you get is just another amazing product. (I.e., just more of the stuff you already got.)

Using your money and fame to neutralize talent that could be used against you requires no effort or thinking at all, only money. These companies don't know what to do with their profits anyways.

otabdeveloper2··on The Google+ project and exec team
Megacorps don't work to make products. They work to keep their top-dog status perpetual. One way to do this is to hire smart people and keep them locked away wasting time.

Two benefits: them not working productively at a competitor's place is one, and them losing the skills and drive to make real-world useful things after a few years is another.

otabdeveloper2··on Panspermia
> Get a rock, water, and a heat source and wait a few million years...

And you get a warm, wet rock.

Statistics, probability theory and physics don't work like that. You can't arrive at the conclusion by stating a premise and wishful thinking.

otabdeveloper2··on The death of Google
> engineering brilliance

What engineering brilliance? Their only non-trivial product is search, and it sucks and keeps getting suckier every year.

Their ad business is no better than the competitors.

otabdeveloper2··on Ask HN: What can be done to prevent a climate catastrophe?
> We have 12 years to prevent a climate catastrophe

I don't know how old you are, but those of us over 20 remember that we had '12 years' 20 years ago.

Somehow the prophesied catastrophe never arrives and the date gets perpetually pushed into the future. Looks like a secular Seventh Day Adventists.

otabdeveloper2··on The Myth of the Infrastructure Phase
> Blockchain only has one major use case; cryptocurrency.

Currencies have value only because governments force everyone to use them for paying taxes and welfare.

Your 'tokens-as-shares' vision is flawed, because at the end of the day it devolves into a million little barter schemes, and barter sucks. (As we discovered back in the bronze age.)

The only place where blockchain could provide a use is with smart contracts. If you've experienced buying or selling real estate, then you understand how insanely inefficient low-trust, high-value deals can be. Anything that removes this friction would be a great boon.

otabdeveloper2··on Libnop: C++ Native Object Protocols
Proto/Flatbuffers are okay for message passing, but many times you don't want to pass messages, you want to serialize C++ structures. There's no way to represent your 1Gb in-memory hashtable as a Flatbuffer, and that is not okay.

Writing a binary-to-string converter sucks. You write code once, and debug it every day. Anything that makes debugging harder is humongous pain that shouldn't exist; binary-to-string converters can be written, but let's be real for a moment: this is something that is dead last on the list of business priorities. If your message can be parsed with ad-hoc shell or Python scripts, that's a huge win for everyone.

otabdeveloper2··on Libnop: C++ Native Object Protocols
It's insane that with this proliferation of serialization libraries none of them are still usable for real-world work.

Here in 2018, we still have to roll our own.

Libnop has the right idea, but still fails on two important points:

a) Versioning is a must-have feature. (And no, some weird non-standard 'table' type is not a replacement.)

b) The wire protocol needs to be human-readable ASCII. (Or at least a human-readable ASCII with no performance degradation option must be available.)

otabdeveloper2··on Do You Really Know CORS?
> Do You Really Know CORS?

Of course I don't, nobody does.

otabdeveloper2··on Firefox: The Effect of Ad Blocking on User Engagement with the Web [pdf]
It's the opposite, actually. Servers have very good and very fast network connections to other servers. Clients have very shitty network connections, especially with wi-fi or mobile devices.

CDN's can help with this somewhat, but a server-to-server network connection will still always be better and faster.

otabdeveloper2··on How France created the metric system
> the failing of the metric system

Really? If that's an example of 'failing', I'd like to see what success looks like.

otabdeveloper2··on UnQLite – An Embeddable NoSQL Database Engine
> An Embeddable NoSQL Database Engine

So, std::unordered_map?

otabdeveloper2··on Posts on Google
It won't. Google owns the Internet. What are you going to do? Leave and start your own internet? Get real.
otabdeveloper2··on Yahoo, Bucking Industry, Scans Emails for Data to Sell Advertisers
> Is it really more profitable

It is. Online, you can use statistics and probability theory to actually test what's more profitable instead of relying on ad-hoc metrics about what "feels good".

> They chase you around the web, even for products you already decided you didn’t want

These are a small minority of online ads. They're displayed in places where nothing more profitable or contextual can be displayed. (I.e., most websites, since most websites are junk.)

otabdeveloper2··on Go 2 Draft Designs
We need a variant of Greenspun's tenth rule for systems programming languages.

Any sufficiently old systems programming language that aims for simplicity and clean code will eventually devolve into a variant of C++, except ad-hoc and poorly specified.

otabdeveloper2··on Original Source code for the Furby [pdf]
You're right. For example, there's a similar distinction in Russian.
otabdeveloper2··on On Apple's Love Affair with Swift
'On a course' implies that there's some sort of definite plan and resources delegated to the task. Which isn't true of Firefox and Rust, as far as I know.
otabdeveloper2··on 1/0 = 0
> 0 being the only good choice

Devil's advocate: why not a maximum integer like 18446744073709551615 or 9223372036854775807?

0 looks like a valid number, while 18446744073709551615 is an obvious NaN for any programmer looking at the output.

otabdeveloper2··on A timesyncd failure and systemd's lack of debugability
Come on, it's not like shell scripts are debugable.
otabdeveloper2··on The Mind: Most polarizing card game of the year?
> a cooperative game that limits communication (which is essential for any cooperative game, to prevent quarterbacking)

Just no. The very point of cooperative games is learning to work together as a team. If you can't do that, then you lost the game. Ruining the rules so the game can't be lost is counterproductive.

← PreviousPage 7 of 8Next →