HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ncruces

2,361 karmajoined قبل 3 سنوات
https://github.com/ncruces

Submissions

SQLite: Vec1 Version 0.7

sqlite.org
3 points·by ncruces·قبل 4 أيام·0 comments

Open Source for IBM Z and LinuxONE

community.ibm.com
48 points·by ncruces·قبل 21 يومًا·10 comments

Show HN: A Wasm to Go Translator

github.com
7 points·by ncruces·قبل 4 أشهر·1 comments

Hyb Error: A Hybrid Metric Combining Absolute and Relative Errors (2024)

arxiv.org
19 points·by ncruces·قبل 10 أشهر·2 comments

comments

ncruces
·قبل ساعة واحدة·discuss
They are not, especially after twilight, or before dawn.
ncruces
·أول أمس·discuss
Why didn't you include GitHub as a search term? Yes there's growing interest in replacements. It's dwarfed by reality.
ncruces
·أول أمس·discuss
Also can the code even be copyrighted?

For my machine translation of SQLite to Go I added this to the README as to licencing:

Most of the code here is machine translated using wasm2go. As such, the original authors retain copyright and the original licenses remain in effect. Everything else is licensed under MIT-0.

The translator (wasm2go) has a licence chosen by, and a copyright notice from, me. Makes no sense for the translated code.
ncruces
·قبل 4 أيام·discuss
Has the dictator been removed for it? Someone cherished by them? Or are we to assume those are impollute?
ncruces
·قبل 9 أيام·discuss
It could be worse can only take a government so far. Eventually, just preaching to the choir catches up with you.
ncruces
·قبل 10 أيام·discuss
The first word in your comment spoils the rest of it.
ncruces
·قبل 11 يومًا·discuss
That's … exactly what they're doing. This is the outcome.
ncruces
·قبل 12 يومًا·discuss
And all it takes is not blindingly accepting the first thing it spews if you suspect there's a better answer (and are in a position to evaluate that better answer).
ncruces
·قبل 12 يومًا·discuss
I'm using this new programming language: it's called LLM prompting, and everything is undefined behavior.
ncruces
·قبل 15 يومًا·discuss
And the fixed version of that screen (a few tweets later), simply removes the copied text.

Which goes to show there was never any original work to fallback to.

"See, if I remove the detailed descriptions - and the LLM regurgitated the rest - nothing will have been copied."

Some people really want to defend "build me a copy of thing because I don't like the license" to be acceptable behavior.
ncruces
·قبل 15 يومًا·discuss
If you build flattened a vector of them (as they argue), it can approach a byte code interpreter, though it won't be a very dense vector, if it holds "pointers" (that you need to chase) to the instructions instead of the instructions themselves.

A lot of the slowness of interpreters (and why JITs work) comes from the fact that you're executing (and trying to predict) the interpreter's branches - not the branches in the interpreted code.

This doesn't move the needle there, at all.
ncruces
·قبل 15 يومًا·discuss
Should population density in cities also be measured in hab/km³ rather than hab/km²?

We are used to stacking people vertically in cities.
ncruces
·قبل 15 يومًا·discuss
You might be surprised to learn that the work of a copywriter is also copyrighted.
ncruces
·قبل 16 يومًا·discuss
Using acronyms is one of those ways. /s
ncruces
·قبل 16 يومًا·discuss
I'm using this other cool visualization [1] for my sorting repo [2] (thanks invzhi!)

1: https://github.com/invzhi/sorting-visualization/

2: https://github.com/ncruces/sort

Those choices (what counts as a step) are interesting because e.g. for my quicksort they make it look median-of-3 is about as fast as median-of-ninthers (it's not it's significantly faster), which would make my strategy of starting with median-of-3 and doing a round of ninthers for pathological input a bit absurd.

The visualization was still incredibly useful (I found) in getting a sense that the algorithm is working correctly. You can clearly see how median-of-ninthers is working in that gif.
ncruces
·قبل 16 يومًا·discuss
This is a good point.

If we don't care about inspecting the output, why don't we just replace the Rust compiler with something that generates assembly from Rust source, and then cross check the output with a few million random Rust programs?
ncruces
·قبل 16 يومًا·discuss
You have a grammar file in a formal language, and want to generate a faster parser in another formal language.

What's wrong with the source language that it's better to use a sufficiently smart random code generator for the target language, and then fuzz the hell out of the output of it until it behaves the same as the slow translated code, than to create a sufficiently smart compiler from the source to target languages?

I mean this sounds like if we replaced GCC with a really smart random assembly generator and a fuzzer for the output.
ncruces
·قبل 17 يومًا·discuss
But as long as I'm on GitHub, it's much easier to just add this (and the RISE RISC-V runners, and a few QEMU targets) to CI.

PS: I do also test NetBSD in CI.
ncruces
·قبل 18 يومًا·discuss
> So besides the bragging rights (I guess?) and discovering latent bugs exposed by the exotic architecture, what's in it for a project to deal with this extra architecture

I submitted the story, and I'm mentioned in it.

For me, it's about demonstrating my stuff runs everywhere Go does.

In particular, this makes s390x the only bigendian architecture I can test on "actual hardware" (vs. QEMU binfmt emulation).
ncruces
·قبل 18 يومًا·discuss
Possibly? Yes. But for every Argentina, there's 10 other countries where you'd loose (far more than) 40% to social security, taxes, and middleman that will handle all the paperwork for for you, particularly if we are talking about "real, productive swe jobs [that] earn enough to support not only themselves, but everyone around them as well making the place they live in a tiny bit better."

I basically have one such job, living in a stable but bottom of the table EU economy, and 40% is exactly the ballpark.

People love to rationalize tax evasion like that.