Better HN
topnewbestaskshowjobs
Log inSign up

xtrapolate

529 karma · joined Jan 2, 2018 (8y ago) · 142 submissions

Submissions

comment 8y ago · link · parent

> "The other thing that you shouldn't do, even though C/C++ allows it, is pointer arithmetic. Again, it's one of those epiphany things C programmers remember from their early days. It's something they just couldn't grasp until one day they did, and then they fell in love with it. Except it's bad. The reason you struggled to grok it is because it's stupid and you shouldn't be using it. No other language has it, because it's bad."

Honestly, this is a pointless rant. "Do this, but don't do that (because that's stupid)".

> "No other language has it, because it's bad"

The reason you "don't have pointer arithmetic in other languages" is - it's been abstracted away from you, for your convenience, so that you can just concentrate on your business logic and not have to worry about the rest. You may not deal with pointer arithmetic, but the people developing your JVM/CPython/V8/Chakra sure do. Author is simply ranting about the possibility of abusing/misusing the mechanisms offered by C/C++.

comment 8y ago · link · parent

> "Frankly on windows this is AFAIK a mostly-unheard-of technique. No one does mapping."

Unheared by you.

In a world consumed by Electron apps and Javascript, lots of people couldn't care any less about performant IPC, sharing data across processes, and multiprocessing in general.

comment 8y ago · link · parent

> "So it has been almost a decade. How much longer before the whole move semantics addition to the language specification becomes relevant to you?"

I'm not debating the usefulness of move semantics. I'm debating the weight being placed on them in these so-called "C++ interview questions". Wouldn't it be better to discuss the actual problem, rather than a concrete solution we ended up having in C++11?

comment 8y ago · link · parent

> "Unique_ptr is such a fundamental type that, if one claims to be a c++ programmer, one has to know it and understand how it works."

No.

Those utilities weren't standardized before C++11. People wrote their own implementations before that. People had to understand stack unwinding and scoping, memory, RAII, design patterns that relate to allocation/de-allocation of memory, ownership transfer.

Then came in the people that decided it'd be a great idea to start quizzing others about C++11 concretions.

comment 8y ago · link · parent

You can "test the theory behind ownership semantics" without relying on the intricacies of a C++11 construct (however trivial).

comment 8y ago · link · parent

> "Just xtrapolate from these numbers."

They could've simply involved the male population as-well, but for reasons unknown, chose not to.

comment 8y ago · link · parent

> "we helped Callisto send a survey to 125 of the 384 female founders who have participated in YC"

Anyone aware of similar efforts to survey the male founders?

comment 8y ago · link · parent

> "It just takes a SCHED_FIFO task with forced CPU affinity. Android does not make it easy to get one."

Are you aware of any non-RTOS that "makes it easy to get one"?

> "Speaking of this, you can have sub-millisecond latencies on Beagleboard."

I did not make myself clear, so I'm taking the blame here.

I'm mostly interested in the use case. If it's just capturing audio alone, this number makes sense, and no fancy hardware is necessary.

The moment we're introducing some-kind of processing, or even logging the stream to disc, buffering becomes necessary and latency is introduced. Assume audio stream read by a "user-mode" service, then redirected out through headphones - are we still talking sub-millisecond latencies?

comment 8y ago · link · parent

Audio latency issues on PCs are largely alleviated thanks to better softwate (device drivers that shorten the path to/from the hardware - such as ASIO4ALL) combined with better hardware (soundcards interfacing over PCI-E/Firewire/Thunderbolt/USB) at affordable prices. Plenty of audio cards today will offload computation off the CPU via discrete DSPs.

On Android devices (and smartphones in general) - hardware would be the limiting factor.

comment 8y ago · link · parent

I don't quite resonate with the analogy here. It's about using the right tool for the job. Most small-scale personal projects, by their very definition, don't require an orchestration framework.

comment 8y ago · link · parent

Which companies performed the security audits?

comment 8y ago · link · parent

> "Product: Everhour. HQ: Minsk, Belarus"

comment 8y ago · link · parent

So Go is somehow immune from a similar fate? What's the reasoning behind this?

comment 8y ago · link · parent

> "Memory management in Kit is manual (no automatic garbage collection), with some convenience features to make this easier."

I was curious, but there aren't any examples of this on https://www.kitlang.org/examples.html

comment 8y ago · link · parent

I see there's no privacy policy, and no clear guidelines on opting out. Why? Privacy was the focal point of 2018, but you're somehow ignoring that altogether?

comment 8y ago · link · parent

> "Because after a day of work, most people just want to see funny pictures and check their email and login to a bank account to pay some bills. They're consumers, not producers."

You're simply saying people want affordable technology. In that case, what is Chromebook's advantage over the competition? The market is flooded with cheap hardware, targeting those exact types of consumers.

comment 8y ago · link · parent

Numpy is fast thanks to having much of its code compiled as a native library.

They were purposefully working to reduce abstraction, since performance mattered from day one.

WASM is a huge step backwards in that regard. If you care about performance, just install Python on your box and "pip install numpy". Do you absolutely have to have it come in a browser now?

comment 8y ago · link · parent

> "Part of an effort to make a Jupytr notebook-like environment without relying on server side code."

So there won't be any server side code, you'd just be downloading the entire Python stack and dependencies every time you want to use this through your browser. This time it will be WASM though, instead of x86/x64/pyc.

That we can, doesn't mean that we should.

comment 8y ago · link · parent

> "Finally they let you hire some help and instead of getting busy helping writing tests and refactoring he starts thinking about the best way to throw you under the bus to your superiors."

Here's what actually happens.

By that point in a project's lifecycle, that's not what they usually ask of the new hires. People are usually tasked with fixing bugs/maintenance, and implementing new business logic. Both of which are extremely challenging and stressful when working on a project that comes with no tests, or documentation.

Your actual task as the new hire is to start generating more value for the company, but that's so much more challenging when you have no way of validating your solutions, no infrastructure to rely on, and no metrics or documentation to consult. At that point, being the new hire, you're taking a lot of heat for not getting things done on time - mostly through no fault of your own. At that point, "wanting to throw you under the bus to your superiors" is a very natural response - it's a defense mechanism, you're (rightfully) frustrated. You're between a rock and a hard place. At that point you're no longer doing software engineering, it turns to politics/coverups/fire-extinguishing on a daily basis. Can you not relate to that?

comment 8y ago · link · parent

Do you seriously think they care about re-using a name for a throw-away non-classified project? People have better things to do with their time.

comment 8y ago · link · parent

A different approach to decoding vibrations into speech, involving a laser microphone: https://en.wikipedia.org/wiki/Laser_microphone

comment 8y ago · link · parent

Now let's get this down to earth. You're walking outside, it's dark, you get catcalled by a passerby. What's next? Do you pull out your phone and call the police? Try and take a picture of the person catcalling you? Where's your evidence? By the time you're done reaching for your pocket, that other person is long gone. That is to say, we now have a new law which is incredibly difficult to enforce, so what's the point exactly?

Why don't we tackle problematic social phenomena through education instead?

comment 8y ago · link · parent

Simple stress tests should've revealed this. Basic profiling should've revealed this. This article makes it appear that they've went live without ever really testing the infrastructure under any kind of load whatsoever.

The article refers to some mysterious "engineering team". It would appear very little actual engineering took place at that company.

comment 8y ago · link · parent

> "Because of quotas, there is more diversity in tech. That's a fact."

Fair enough. Besides the obvious "diversification" of the company's populace, what other success factors can be directly attributed to quotas?

comment 8y ago · link · parent

> "This is an obvious false correlation. You have no evidence that Apple would not be even more successful were the engineering team more diverse."

This argument goes both ways. We also don't have concrete evidence proving that "diversifying the engineering team" will necessarily result in success.

comment 8y ago · link · parent

> "Do you like discrimination?"

I'd argue "diversity quotas" are the very archetype of discrimination.

comment 8y ago · link · parent

"We moved to GraphQL because things were bad, and now things are good. GraphQL is amazing".

I don't want this to come off as a personal attack (and I apologize if it does), but your comment contains absolutely no information whatsoever regarding a specific situation/use-case, nothing from which the rest of us can formulate our own opinions on the REST/GraphQL discussion.

comment 8y ago · link · parent

Is entanglement an actual physical phenomenon? What exactly needs to happen in-order for a photon to "become" entangled?
12345