Better HN
topnewbestaskshowjobs
Log inSign up

ArrayBoundCheck

-10 karma · joined May 25, 2022 (4y ago) · 165 submissions

Submissions

comment 4y ago · link · parent

(Mostly a rhetorical question) I'll probably never be able to do that if it's based on karma but my question is, if I stop saying things that get my comments flagged but proceed to get into negative ranking (ex: -50 or maybe -100 if I get on an unlucky roll) will I be banned by the system automatically? I assumed so which was the other reason that annoyed me

comment 4y ago · link · parent

Some of those comments were in response to people calling me a liar with upvotes on their comments and downvotes on mine. It's incredibly irritating and frustrating when it appears those accusing me of lying not suffer any consequences.

For example (one that you linked to) a person said I was wrong and his comment wasn't flagged yet when I asked him to stop replying to my comments (many of my comments in the thread weren't on his comments) mine gets flagged https://news.ycombinator.com/item?id=32086054

comment 4y ago · link · parent

> IMO the main selling point of WASM is its predictable performance.

Not once in my entire life have I heard anyone say this

Almost always its either about it being faster or so they can use a language that isn't JS. And both are those have dubious value because I seen wasm be slower and people complain a lot about lack of tool support. Which is why the other day I claimed very few people use it. I seen many try it once or twice and not want to go through it again

comment 4y ago · link · parent

Why would I want to do that? Usually if there's a problem I'll either write a new test or see if someone modified a test I thought was covering the case

Usually people 'own' a file or part of the system so that wouldn't really be happening anyway

comment 4y ago · link · parent

I'm starting to understand why. It appears my workflow has the information other people would want from a git log elsewhere (test, specs, examples, etc)

comment 4y ago · link · parent

I set a breakpoint and run the test suite for that answer

comment 4y ago · link · parent

You didn't answer why. My code passes all the unit test and we almost always have real code using it immediately. The function works. Why am I reading it? The only thing I read are bug reports (usually a spec problem, not normally a logic bug) and new features, or test outputs

comment 4y ago · link · parent

Why are you searching a year or more back? Is this using git blame?

comment 4y ago · link · parent

> The purpose of a git commit message is to answer the question “why does this commit exist?”

Why? Every time I have asked this people say because you'll search the logs (which I have never done in my life) or because "it's good practice"

comment 4y ago · link · parent

I dislike zig for lack of destructors and "no hidden control flow". I'll probably dislike your language too but is there one big thing difference from zig and austral?

comment 4y ago · link · parent

So you wouldn't say you feel fearless about concurrent code?

comment 4y ago · link · parent

Rough. It seems like there's a lot of poor engineering in the compiler :( I almost wonder if the new gcc backend will be better but then I remember clang is significantly faster than gcc

comment 4y ago · link · parent

There's two things I always wanted to know

1. Why wasn't realloc part of the spec? When I looked at wasm and emscripten it appeared that realloc was essentially malloc+memcpy? That'd be painful when arrays are bigger than L2 or L3 cache. I think I heard arm cpu's all standardized to have virtual memory in 2005 or 2010 so I don't think arm hardware was an issue?

2. It seems like 100% of system calls would have to be implemented through javascript? Why wasn't there some things wasm implemented itself like a way to get time or rdtsc, realloc and other very common operations?

comment 4y ago · link · parent

Curiosity is getting to me. Why on earth would you use wasm outside of a browser instead of a container like most people?

When you said I was wrong I knew right away you either never actually tested or you're talking about outside of the browser. If it wasn't clear I was talking about wasm in chrome/safari/firefox this entire time

comment 4y ago · link · parent

Why did mods delete the post with the link showing this commenter is the one in fact making things up?

comment 4y ago · link · parent

How you use it in real life has to be taken in consideration. From memory system like calls go through JS and there's no realloc. I didn't want to say it in my first comment because I notice the more someone writes the more likely others will argue. I rather someone else post the SQL benchmark but apparently everyone drank the kool aid and had no idea wasm isn't that fast. I certainly would rather use JS than write c++/rust. I wouldn't be surprised if that list of companies using wasm only use it for one or two large projects then stuck to js because of how much work wasm is

comment 4y ago · link · parent

I'd say something unintentional is a bug. Perhaps someone can use this in a DoS attack

comment 4y ago · link · parent

Varied? You're joking they're all math

This guy found sqlite to be 19x slower. https://ricomariani.medium.com/wasm-sqlite-for-web-products-...

comment 4y ago · link · parent

I'm not sure which implementation browsers use but only one engine wasn't on average < 3x slower https://medium.com/wasmer/benchmarking-webassembly-runtimes-...

comment 4y ago · link · parent

> the speed is close to native

The numbers I seen suggest wasm is 3-5x slower then native which isn't bad IMO. JavaScript is also 3-5x slower than native. Is JS close to native speed? I don't think you can say it about one but not the other

comment 4y ago · link · parent

> Yes, reform the legal system sensibly. No, we don't let drug kingpins who have built up a serious crime organisation walk.

He ran a website. I don't call that a kingpin

123456