Better HN
topnewbestaskshowjobs
Log inSign up

meisel

644 karma · joined Feb 10, 2020 (6y ago) · 163 submissions

Submissions

comment 11mo ago · link · parent

What does this sort of language complexity mean for future changes in Rust? In C++, its existing complexity makes new changes so much more difficult. Is Rust reaching a similar place?

comment 11mo ago · link · parent

I think only a small percentage of users care that much about running LLMs locally to pay for extra hardware for it, put up with slower and lower-quality responses, etc. . It’ll never be as good as non-local offerings, and is more hassle.

comment 11mo ago · link · parent

Is mining via CPU even worthwhile for the hackers? I thought ASICs dominated mining

comment 12mo ago · link · parent

It wouldn’t be surprising if cars also record audio of conversations to use for ad targeting. It has already been conclusively shown that TV companies have done this.

comment 1y ago · link · parent

Are you interested in beating Linux performance-wise? Eg:

- Moving away from the too-small 4kb default page size (while having a good strategy for dealing with fragmentation)?

- Make it easy to minimize/track interrupts on a core, for low-latency contexts

comment 1y ago · link · parent

Really neat. Do you have any specific long term goals for it? Eg, provide an OS distro (using Linux drivers?) to provide memory safety for security-critical contexts?

Also, are there any opportunities to make this kernel significantly faster than Linux’s?

comment 1y ago · link · parent

While we’re at it, bring back shower doors/curtains. It’s such a pain having this huge puddle outside the shower just because they decided it shouldn’t have one. It’s not so common to be missing one in US hotels, but it’s common internationally.

Edit: apparently the virus has spread, and some US hotels now don’t have them

comment 1y ago · link · parent

How many people just avoid working with await in Python at all costs (e.g., favoring something like multiprocessing instead?). It’s always felt less comfortable in Python than in other languages

comment 1y ago · link · parent

The graphs aren't showing up for me on the site unless I click on them

comment 1y ago · link · parent

No it’s not? Her Wikipedia page says “Hedy”

comment 1y ago · link · parent

For a language that’s so low level and performance focused, I’m surprised that it has those extra io and allocator arguments to functions. Isn’t that creating code bloat and runtime overhead?

comment 1y ago · link · parent

The real optimization here is to move off UIKit and interact with the GPU more directly

comment 1y ago · link · parent

In my experience, C++ is a much more complicated language. The 8 ways to initialize something, the 5 types of values (xvalues etc.), inconsistent formatting conventions, inconsistent naming conventions, the rule of 5, exceptions, always remembering to check `this != other` when doing a move assignment operator, perfect forwarding, SFINAE, workarounds for not having a great equivalent to traits, etc. . Part of knowing the language is also knowing the conventions on top that are necessary in order to write it more safely and faster (if your move constructor is not noexcept it'll cause copies to occur when growing a vector of that object), and learning the many non-ideal competing ways that people do things, like error handling.

comment 1y ago · link · parent

Would it help a lot to run it through multiple different AI systems and verify that they agree on the result?

comment 1y ago · link · parent

Is there a target use case(s) for this language, at least initially? It seems to focus on programming in a platform-independent sense, but where is it most likely to actually succeed? Are there particular OS’s or other languages that they try be particularly compatible with?

comment 1y ago · link · parent

How does Flix decide if it’s worth it to auto parallelize a map operation? Eg, if it’s a very trivial map operation, it may add overhead to parallelize it

comment 1y ago · link · parent

Yeah, and his behavior in this LLVM discourse thread made me not want to ever try Zig: https://discourse.llvm.org/t/rfc-libc-taking-a-dependency-on...

comment 1y ago · link · parent

Another speed up method here would be using simd, although it would be interesting to see in the assembly if it was auto-vectorized already.

This reminds me of a trick to sort floats faster, even if they have negatives, nans, and inf: map each float to a sortable int version of itself where one can compare them as ints (the precise mapping depending on how you want to order stuff like Nan). The one time conversion is fast and will pay off for the lg(n) comparisons. Then after sorting, map them back.

comment 1y ago · link · parent

Yes, that's the one I was thinking of, thank you

comment 1y ago · link · parent

I knew that name looked familiar, I thought about mentioning tpde here :)

That's interesting to hear that IR is missing a lot. I'm also surprised that it could provide much gain over hashing the preprocessed output - maybe my workflow is different from others, but typically a change to the preprocessed output implies a change to the IR (e.g., it's a functional change and not just a variable name change or something). Otherwise, why would I recompile it?

Parse caching does sound interesting. Also, a lot of stuff that makes its way into the preprocessed output doesn't end up getting used (perhaps related to the 40-50% figure you gave). Lazy parsing could be helpful - just search for structural chars, to determine entity start/stop ranges, and add the names to a set, then do parsing lazily

comment 1y ago · link · parent

Very interesting stuff. However, for my day-to-day work, I'm in a large C++ code base where most of the code has to be in headers due to templating. The bottlenecks are, very roughly:

- Header parsing (40% of time)

- Template instantiation (40% of time)

- Backend (20% of time)

For my use case, it seems like this cache would only kick in when 80% of the work has already been done. Ccache, on the other hand, doesn't require any of that work to be done. On a sidenote, template instantiation caching is a very interesting strategy, but today's compilers don't use it (there was some commercially sold compiler a while back that did have it, though).

comment 1y ago · link · parent

Another idea would be to still run the rest of the E2E tests pre-merge, but as a separate job that only makes itself known if a failure occurs.

comment 1y ago · link · parent

I don’t think you truly get the “best” of both worlds, because the rate of accidentally omitting a broken test and letting something slip into master is now non-zero (flaky tests aside). This is still a tradeoff. But maybe it’s a good one!

I do wonder if this is as feasible at scale, where breaking master can be extremely costly (although at least it’s not running all tests for all commits, so a broken test won’t break all CI runs). Maybe it could be paired with, say, running all E2E tests post-merge and reporting breakages ASAP.

comment 1y ago · link · parent

It seems like it takes just one user using a certain piece of hardware to justify it being supported in the kernel, which is surprising to me. The cost to kernel dev velocity is not weighed more heavily against that?

comment 1y ago · link · parent

Yeah, I’ve hit many pain points over the years with SwiftPM. Its restrictions on compiler flags is also problematic.

comment 1y ago · link · parent

Thanks for that sequence, I can really picture it now

comment 1y ago · link · parent

TurboTax and other tax companies don’t just lobby to prevent a free filing solution, they also lobby for more complicated tax laws to create a greater need for their product

comment 1y ago · link · parent

If you’re at the point where the shell might be a bottleneck to your script, it probably should be written in a proper language and not bash

comment 1y ago · link · parent

Got it, so this could not be extended to non-literal strings
123456