Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 7y ago · link · parent

I just reviewed roughly 20 vendors. Doesn't feel crowded at all when they all basically do the same thing.

There's a ton of room in this space for real innovation. Instead, as mentioned, we get substitutes for innovation, like "AI".

If infosec weren't a dark horse, we wouldn't be miserably to protect against breaches. Clearly there is a need not being addressed.

comment 7y ago · link · parent

I don't think the implication was that Go does it efficiently.

comment 7y ago · link · parent

Java services have managed for a long time to do just fine. Usually you just have dedicated threadpools for those db/ whatever calls.

But yes, eventually, for very heavy cases (more than what I would call "high") you will want async/await.

comment 7y ago · link · parent

Serial?

comment 7y ago · link · parent

Why would they not just use threads?

comment 7y ago · link · parent

My point is more that if they can do all of those things and "game" the interview they seem like a good hire.

comment 7y ago · link · parent

If they understand how it works well enough to go through a code review and modify it based on that code review, what's the problem? That just... sounds like what your work is going to be.

comment 7y ago · link · parent

This all feels like a stretch.

comment 7y ago · link · parent

Oh, those are costs of hiring someone, not just the firing.

And I said earlier I maintain that my method of interviewing will actually reduce those costs.

comment 7y ago · link · parent

I don't really like arguing analogies. I'm not convinced that a take home + code review is easily gamed.

comment 7y ago · link · parent

For what it's worth, I'm not convinced that my approach will actually let more "bad" people through. My personal opinion is that you will improve both your rate of good candidate hiring and lower your rate of good candidate rejection.

I believe that the existing system intends to optimize heavily for "reject bad candidates" and actually fails at that too.

Give candidates a take home, then review it with them.

I have a lot of reasons for believing this approach would be far superior to the "sit in a room and get interrogated for 7 hours" approach.

comment 7y ago · link · parent

Ah, interesting. I haven't really noticed that sort of thing myself.

comment 7y ago · link · parent

cargo doc does do that already, not sure what you mean.

IDEs should also be autocompleting trait impls.

comment 7y ago · link · parent

So, to be clear, firing is not the goal, it's just the worst case. 100k sounds high but honestly, not something I'm familiar with. I wonder how much money is lost on recruiting being so ineffective? Given that the current process is about ~6-7 hours of eng time per on-site candidate, I'm not convinced that the cost of firing is going to outway the costs of recruiting being considerably optimized.

I'm not sure I see how someone is going to: a) Write a take home project b) Explain their design decisions, respond to code review, etc, in person

and somehow not be able to "write code worth spit" or otherwise game the system consistently.

edit: Would love to hear (in the US) where that 100k comes from. At-will state means I can fire you for whatever reason, can't imagine it really comes close to 100k tbh.

comment 7y ago · link · parent

I'm not saying to not interview people I'm saying that the existing process is petrified of a bad apple making their way through it, at almost all costs.

How many people can truly, reliably, "fake" their way through a take home? How many people could then do an in person code review and fake their way through that as well?

I doubt it's that many, but you'll get way better returns on good candidates, in my opinion.

comment 7y ago · link · parent

> The problem with take-home tests is you may have had help

I think we over focus on these scary edge cases where some trickster is trying to con their way into the job. The worst case is you just fire them when they are unable to do the work, and that's on them.

Besides, what environment discourages help? I ask friends for help with my job all the time.

The cost of over optimizing for avoiding those false positives (ie: bad candidate marked good) is a huge drop in true positives (ie: good candidate marked good). It's silly.

comment 7y ago · link · parent

Reducing memory pressure on systems that need to handle lots of concurrent connections.

comment 7y ago · link · parent

> Async+Await+Futures isn't needed at all

Define "needed" ? Code with async/await is radically simpler compared to without - this is not just basic sugar but really, really important due to rust's borrow semantics There is code I have written that required Rc/RefCell ceremony to get around the borrowchecker that will be completely handled by async/await.

You can read more about this here:

https://aturon.github.io/tech/2018/04/24/async-borrowing/

> performs worse than a basic epoll loop

There are open issues and afaik all of these are solvable problems with known/ theorized solutions.

> is more confusing, and less able to handle complex flow

Sorry, that's absolutely just not the case Even if "confusing" is subjective, you can not tell me that writing complex loops/ control flow is easier in futures than in async/await. Just look at the examples here:

https://docs.rs/dtolnay/0.0.4/dtolnay/macro._01__await_a_min...

comment 7y ago · link · parent

None of what you're describing really tracks for me, having written many thousands of lines of rust and interfacing with my third party crates.

"async/await doesn't solve much" like your whole post confuses me.

I think right now a lot of rust libraries are "hyper generic" because they're intended to be lower level and to be built on top of. Like hyper, as an example. I've never found it particularly hard to work with generic libraries though.

comment 7y ago · link · parent

Sure, but:

a) All reference counts after the fork are going to cause a copy of memory, so any memory access (even a read) can trigger a copy.

b) Even to send 'xs' over you must serialize it via pickle, and then the callee must deserialize it

That may be fine for your use case but it's strictly worse than just sharing a reference across a thread.

comment 7y ago · link · parent

There's a lot going on here, so there are a lot of potential fixes. The obvious and straightforward ones are the memory safety issues. MS can start fuzzing this software, and fix that stack information leak to better leverage ASLR. This should at least mean that (for one of the described attacks) the attacker needs a new capability (write-what-where or a new infoleak).

I think ForceASLR should improve process randomization across restarts? Not sure. Assuming it does that makes the repeated exploit attempts for one of the attacks harder.

They can start authenticating the API calls to prevent lying about what process/thread you are.

I think these are probably not crazy difficult things for MS to take on. There's a lot more to the attacks here, but seems like those are the places to start. Or just rip this system out and replace it idk.

comment 7y ago · link · parent

I think it's probably something along the lines of:

* Rust meets basic constraints (performance, reliability)

* A few early movers chose rust, and they likely share information and libraries, so it makes sense to just go in on it

Given that cryptocurrency is a fairly young space, having everyone leveraging the same tooling probably increases productivity. One day someone might say "We can get more productive if we leverage Language X, let's invest there", but until then everyone else is probably thinking "Oh, the libraries I need are in Rust, guess I'll use Rust".

comment 7y ago · link · parent

> all of rust is technically undefined behavior.

Even if this is technically true (and I'm not really convinced that it is) it is not practically meaningful.

comment 7y ago · link · parent

I would imagine that they could solve this fairly easily by wrapping XorShiftRng in a newtype, and then implementing CryptoRng for that newtype. It's an awful thing to do in consumable code, but so long as it's done in the test module it should be perfectly fine.

comment 7y ago · link · parent

I have a hard time reasoning about multiprocessing code, for various reasons. It's bitten me in a lot of weird, distinct ways, not really worth listing here.

To communicate across mp you use pickle, which is a pretty significant performance impact relative to something like threading. There's also the issue of copy on write memory + reference counting interacting poorly.

comment 7y ago · link · parent

The interface may have improved, I haven't paid attention to mp in a long while. If I'm reaching for mp I generally just accept that I'm using the wrong language.

comment 7y ago · link · parent

I think this article justifies 'simpler' as more than just "characters to write". Rust is a fairly different language in that it isn't GC'd, and the async/await sugar really alleviates a lot of pain around that (among other things).

As for calling async from sync, I imagine you just create a runtime and block on it.

comment 7y ago · link · parent

a programming language designer should be responsible for the mistakes that are made by the programmers using the language. [...]

It's very easy to persuade the customers of your language that everything that goes wrong is their fault and not yours.

- Tony Hoare

comment 7y ago · link · parent

I don't think you'd ever write that in Java because Java would punish you for it. You can always blame the programmer, but I'm always going to blame the language for making 'bad' easy.
1
132133134
164