Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ArrayBoundCheck
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
61.
▲
by
ArrayBoundCheck
4y ago
Implementing it without embed. With embed the author says > It feels like I wasted a lot of my life achieving something so ridiculously basic that it’s almost laughable Which makes me think I should never get involved with an ISO committ
62.
▲
by
ArrayBoundCheck
4y ago
> And we got laughed out of the room for it I get this every time I talk to programmers about a concept that isn't completely obvious. And some that are completely obvious
63.
▲
by
ArrayBoundCheck
4y ago
I don't know how people can use the data. There's so much of it! I don't see any harddrives that are 80TB. It seems like people would need some kind of raid setup that can handle 200+TB of uncompressed data
64.
▲
by
ArrayBoundCheck
4y ago
Are you a programmer? Embed is the easiest feature to implement that I have ever heard
65.
▲
by
ArrayBoundCheck
4y ago
The very few people who I known worked there seemed to like it. Is there any particular reason why you left? I know one of them said he only left because they were overworking him
66.
▲
by
ArrayBoundCheck
4y ago
Noone should imagine that. You definitely don't want two threads accessing the same vec or array at one time. Maybe if there's a lock
67.
▲
by
ArrayBoundCheck
4y ago
> The compiler does not work at that level of resolution. It’s unclear that it should The correct solution is to never ever use rust. It's a failed experiment that noone noticed failed
68.
▲
by
ArrayBoundCheck
4y ago
So are you still unsure? Since you said from where you use C headers would absolutely top a reason for me. I hate that bs gruntwork
69.
▲
by
ArrayBoundCheck
4y ago
> Can you share any compiler benchmarks showing Rust compiles slower than C++? You got to do this yourself because YMMV My projects don't use many includes and little templates. So C++ is more than 4x faster. I think in one case it
70.
▲
by
ArrayBoundCheck
4y ago
What do other people call it? > 50% of the time people don't know what I mean until I show code
71.
▲
by
ArrayBoundCheck
4y ago
I'm taking a reference to the array the vec is pointing to not the vec. Rust needs to be more fine grain because it's obnoxious and C++ container invalidation is less bad https://news.ycombinator.com/item?id=321886
72.
▲
by
ArrayBoundCheck
4y ago
I only understand it because I learned how not to shoot myself in the foot with the canon that is C++ I'll sum up "container invalidation". In C or C++ if you append an array you may cause the array to grow which means it mig
73.
▲
by
ArrayBoundCheck
4y ago
From what I hear 1. No headers (you can use headers to import C functions. None needed for other zig functions). 2. defer 3. Comptime
74.
▲
by
ArrayBoundCheck
4y ago
Not sure? I wasn't aware people didn't get this problem. Maybe its the domain I'm in. Uncomment to fix. I have to repeat myself all the time and it's obnoxious (IDK how to show code on this site but heres a link https:&
75.
▲
by
ArrayBoundCheck
4y ago
I tried it again in 2021 and it still failed to deal with constant functions. Here's it again in 2022 https://play.rust-lang.org/?version=stable&mode=debug&editio...
76.
▲
by
ArrayBoundCheck
4y ago
I never tried zig but I want to address something the article wrote > People struggle with Rust for a number of reasons ... the borrow checker! The borrow checker was the easiest thing for me to learn and the only thing I liked about rus
77.
▲
by
ArrayBoundCheck
4y ago
A couple years ago I saw a video of a guy filming himself talking to a road maintenance worker. In an angry tone he said they didn't have enough pylons and noone can see them when they drive uphill and they're causing accidents. T
78.
▲
by
ArrayBoundCheck
4y ago
That's an everyday mistake I think the better guess is having people opt into amazon drivers using ring to let themselves in so their package isn't stolen from their porch
79.
▲
by
ArrayBoundCheck
4y ago
They could have went the C# route, but didn't
80.
▲
by
ArrayBoundCheck
4y ago
I guess I'll rewrite my original comment here to clarify I don't know why google created this language. It offers nothing new and I can't see why they'd use this over rust when rust can be used. I don't see why they
81.
▲
by
ArrayBoundCheck
4y ago
This is the 3rd language I know about that google created. I have no idea why they don't use rust with their C++ code base and I don't know why they made this instead of use zig which actually brings something new to the table. Ov
82.
▲
by
ArrayBoundCheck
4y ago
> but the annoying part is that the same rules don't get applied across Yeah! Why do I have to sponsor hires who happen to be not legal citizen. I have to hop all these hops to hire while your local grocery store doesn't have t
83.
▲
by
ArrayBoundCheck
4y ago
> Because sometimes we can learn from history. If a mistake was made at ... A commit message helping me learn anything that I didn't get from a code comment sounds like a stretch. I'm doubting this > How do you see if someon
84.
▲
by
ArrayBoundCheck
4y ago
(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
85.
▲
by
ArrayBoundCheck
4y ago
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
86.
▲
by
ArrayBoundCheck
4y ago
> 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 th
87.
▲
by
ArrayBoundCheck
4y ago
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&#x
88.
▲
by
ArrayBoundCheck
4y ago
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)
89.
▲
by
ArrayBoundCheck
4y ago
I set a breakpoint and run the test suite for that answer
90.
▲
by
ArrayBoundCheck
4y ago
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 lo
More ›