Better HN
topnewbestaskshowjobs
Log inSign up

SolarNet

1,816 karma · joined Jun 14, 2011 (15y ago) · 1,039 submissions

Submissions

comment 9y ago · link · parent

> Arbitrary precision rationals increase in storage and processing time each time you multiply them

Only if you store the arbitrary precision number. Last I checked you can't actually have a tenth of a cent, so it has to be rounded at some point. Like when you store it. I was advocating calculation be done with arbitrary precision numbers which do not have this problem.

> Fixed-point arithmetic

This is a decent solution as long as you have enough precision and a strategy for detecting lost cents.

> Floating point arithmetic

Which is non-deterministic based off of optimization level and hardware. Waits for the bank to switch to a new cluster and watch all of their numbers change for the lols. No wonder banks don't know how much money they have.

comment 9y ago · link · parent

Well first riddle me this. How do you calculate a ⅓% (1 / 3 of a percent) fee with integers. Depending on your choice of solution I can tell you how it has a problem and how arbitrary precision numbers would solve it.

comment 9y ago · link · parent

I think there is a deeper problem here with HR. Uber didn't care enough to figure out whether it was sexist or not (or even care enough to do anything about it at all). That means Uber is sexist simply by not caring enough to check (regardless of whether this was or wasn't sexism).

* As always a lot of caveats apply: If sexism is defined as legally culpable discrimination of a protected class (rather than looser social definitions, or even broader sociology definitions). If we take her statements at face value.

comment 9y ago · link · parent

> Where does it say the manager "wasn't telling male workers to wear long sleeved shirts?" Even if so, how's that sexist? To say that something's sexist because a man gets different advice than a woman with no context is unacceptable criteria for sexism.

I'm saying she was told to wear a long sleeve shirt. I find it exceedingly unlikely a man was told the same thing and she didn't hear about it (especially as the male employees were joking about it with her, it seems likely they would have told her). Hence, only she was told that, which is a sex based (a protected class) restriction on clothing.

> She's complaining about getting reprimanded for "working from home for one hour in the morning."

Something everyone else on her team did that day. You are right we don't have enough context. But I'm saying it's (reasonably) possible. Suppose she was the only female on the team (likely) and there was a male coworker who was also a similarly experienced junior dev (possible). If she is told not to work from home, but he is allowed to, she is told to work at his desk, he can work anywhere, she is told to work on thanksgiving, he is not... that is straight up sexism. Even without those conditions the tone of the emails could have also implied it in each of those instances (to be clear those instances are all reported by her, but her coworkers actions and identities are not).

So yes, it could be just a bad manager. But it sounds like she told HR a lot of times she thought it was sexism with no response. Regardless of if it was or wasn't sexism, HR did nothing. That puts the blame on Uber, rather than just a shitty manager. And that means Uber can't say whether it was or wasn't sexism, because they didn't bother enough to care to investigate it. All of which speaks poorly of Uber.

comment 9y ago · link · parent

> What if she was the only Jainist in the group, would it be religious discrimination?

If it had to do with her religious practices, yes. If she was singled out for no other given reason and she was the only one and the decision maker had made comments on her protected class status related to it... yes (if it walks like a duck...)

> E.g. if I'm overweight

Not a protected class without a medical note classifying it as a disability. Bad example.

The better example would be a Hijab (religiously protected class, distracting clothing), which yes, she has a right to wear as long as it doesn't directly interfere with her work (e.g. assembly line or something); just saying it is distracting does not count.

Notably, sleeveless clothing is not a fireable piece of clothing unless it is for everyone. And since it seems exceedingly unlikely that this manager is saying the same thing to her male employees (especially as the male employees are joking about it, it seems likely they would have told her), it is sexist discrimination.

> It could also be jealousy, unrelated to sex.

Except no, it was pretty clear it would have to be related to her being female if that was the case (because unless the guy was bi-sexual, it's unlikely she would be getting jealous at a male coworker doing the same thing).

> Everyone's assumption might be right, given Uber's culture. But this story isn't really conclusive by itself. Now if there were many female engineers with a lot of diversity among them under this manager, and only female engineers were banned from some work environments, then that'd be stronger evidence of sexism.

Yes, but we don't have many female engineers (~15%) to ask. And many of them report sexism quite often when leaving the field entirely. Seems a bit of a chicken and an egg if it wasn't for the fact that both the chicken and the egg are very clear about the problem when asked.

You are right. It may not be sexism. And just a shitty manager. Even so, parts of it seem like they could be sexist. She is calling it sexist. And it is representative of a shitty culture either way. And the sexism charge could have been avoided by simply having better management practices. It's almost like if you don't protect your employees bad things (like sexism, racism, etc.) can happen.

comment 9y ago · link · parent

Ah that makes more sense. I thought the OP was implying Razer is Chinese as I have seen others do.

comment 9y ago · link · parent

Yes. But then you write that at the boundary. Along with the other consistency checks. And you are forced to think about it at the appropriate time, instead of forgetting about it entirely (floats) or introducing subtle errors (integers, and then likely casting it to a float to calculate 1% and then adding it back by casting back to an integer; hint: that's also a bad idea because it has floats in it - which as we've learned recently on HN - are not that deterministic or precise).

comment 9y ago · link · parent

Instructions unclear booted left-pad (if a developer is stupid enough to use floats for money, I doubt they are aware of how library systems work).

comment 9y ago · link · parent

> they can't translate emails correctly

Between UK English and US English?

comment 9y ago · link · parent

Considering they kept using the spillway even though it was damaged (because they hadn't repaired it as they should have due to lack of funds), and they had to use the emergency spillway (which wasn't reinforced because they didn't do it 12 years ago when they should have). I vote more than expected rainfall (216% of normal by some accounts - though they might have also been storing more water than normal due to the drought) and lack of proper funding to keep the engineering tolerances where they were supposed to be.

But I'm more inclined to suspect the problem is larger. For example that anthropogenic climate change is increasing the amplitude of the El Nino effect.

comment 9y ago · link · parent

Or use a language with arbitrary precision numbers (they are only like 50 years old so I can see why many people don't use them /s). As someone else already pointed out, this still prevents calculations of fees as a percentage, and other issues.

comment 9y ago · link · parent

For developing skills, a simple answer is learn a new language. Do a personal project in something dynamic and object oriented (e.g. not C). C is a great language and you will be happy you know it. But learning new languages forces you to think differently which allows you to think differently in the languages you already know.

Also knowing how to build web connected GUI apps in an afternoon is also a very liberating skill for a developer (Python, Ruby, Clojure are all good choices; or C#, Java if you wanna stick somewhat closer to what you know).

comment 9y ago · link · parent

The manager wasn't telling male workers to wear long sleeved shirts, so that's the most obvious one. It was also obviously the last straw. Often in stories like these the last straw seems pretty stupid compared to a larger problem. People have a breaking point but it's often a small thing that puts them over it, the straw that broke the camels back.

Although the story doesn't spell out the gender of everyone on the team - the statistics of 11 engineers implies she could be the only female - only controlling her work behavior (where and when she can work), but not her coworkers (that they can work from home), if all her coworkers are male, is pretty sexist. And it may be indicative a deeper - and more pervasive - problem of sexism (for example, she was regularly managed differently because she was female, which sounds like the case) that was the main problem for her.

comment 9y ago · link · parent

You aren't following the instructions. You have to rewrite all comparisons to use a small sigma.

`0.f == x` becomes `SIGMA > x`

`0.f == y` becomes `SIGMA > y`

`x == y` becomes `SIGMA > abs(x - y)`

All the expression work if written correctly.

comment 9y ago · link · parent

Because unless you are on a video card (e.g. doing SIMD) floating point operations are very very expensive.

comment 9y ago · link · parent

> She lied blatantly about their blood-testing medical equipments which can potentially kill people with wrong testing results,

I think is the only one which is actually crime and which she has already been punished for.

comment 9y ago · link · parent

The post you were replying to even said:

> Note the title is wrong but the linked response from Facebook describes what they actually do quite succinctly.

And you still responded with this. Come on.

comment 9y ago · link · parent

Unless you wanna kill it before it is deployed. For example if the U.S. was aware that a nation state was about to pull out on funding for it and wanted to keep the economic dominance of GPS.

comment 9y ago · link · parent

Or you could argue this reminds people they are on equal footing with the other.

comment 9y ago · link · parent

Except without a better way to package a binary it will be compared as one.

comment 9y ago · link · parent

Municipal and County Attorneys are really really scummy. It's basically just a job to be corrupt in. They have long forgotten their constitutional duty. The lawyers who remember that are either busy earning a lot of money the hard way (being corrupt is the easy way) or protecting those who need it. Taking money from traffic cams is just another way this is expressed.

Local elections matter people.

(I have family members who are attorneys and public officials in small towns, I speak about this from experience listening to them rant).

comment 9y ago · link · parent

I mean there is also the conceit that there is a black hat movement (e.g. dedsec) backing the main character composed of a few hundred people writing exploits, etc. Which is of course a bit of superhero-esque fiction. But the point is if Anonymous was organized and a bit more radicalized, it would be possible to write hacks like this.

For example if instead of presenting at conferences the exploit writers shared them with other people who weaponized them and hooked them up to a proprietary toolkit to act at the push of a button. Supported by a team of people who managed an OS that provided these features. Supported by a team of people who managed and maintained exploits into various networks.

In the game dedsec is a terrorist organization, with hundreds of cells, all cooperating and sharing exploits, source code, 3d printing designs, botnets, etc. internally. There are missions where you build a new tool for their OS by working with multiple cells. Getting the prototype code, testing it, giving it to a another cell to integrate, and then having it.

The point is with devoted manpower of that degree, and with common purpose, this could actually happen, even if it's super unlikely, like many non-magical superhero movies.

comment 9y ago · link · parent

Talk about scientific illiteracy in science media.

> “traveling salesman problem”

They quoted it - which means they obviously don't know what they are talking about - and then go on to talk about esoteric things (Ising machine) as if that's some sort of justification.

An Ising machine is also a Turing machine and the traveling salesman problem is NP complete. Which means no breakthroughs. It can however, maybe, be more performant at certain kind of problems (like statistical solutions to optimization problems... like the traveling salesman problem). Like a GPU is more performant at doing lots of floating point operations at once; but not that it will be any faster, in the large scale, at solving hard problems like the traveling salesman problem.

And they present it with a vague description which makes it sound like it might just be some sort of quantum system. It isn't. The failure to provide facts, to challenge assertions and claims, to actually know, in our news media is super annoying.

And the clickbait, uggh.

comment 9y ago · link · parent

Score attack games where you basically run to the right, although there are other variations (like ninja games). Alternatively just get the kid into speed running, same idea. Some examples:

* http://store.steampowered.com/app/325150/

* http://store.steampowered.com/app/230270/

comment 9y ago · link · parent

He should just buy his son a laptop and put a zachtronics game or factorio or minecraft or any other game that has some sort of educational or artistic goal. Heck, for high score, just put runner game on there. Mods can fulfill boosts, etc.

comment 9y ago · link · parent

At first I thought this was a list of animals going extinct or something.

comment 9y ago · link · parent

Well I think instruction set is a pretty easy bar to start with. Heck you could do it automatically. Is the executable compliant x86? is the User's machine x86? I could program a prototype for that in a few minutes if I had the info valve does already.
1
212223
35