HackerLangs
TopNewTrendsCommentsPastAskShowJobs

ncruces

2,361 karmajoined 3 ปีที่แล้ว
https://github.com/ncruces

Submissions

SQLite: Vec1 Version 0.7

sqlite.org
3 points·by ncruces·3 วันที่ผ่านมา·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
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
·3 วันที่ผ่านมา·discuss
Has the dictator been removed for it? Someone cherished by them? Or are we to assume those are impollute?
ncruces
·8 วันที่ผ่านมา·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
·10 วันที่ผ่านมา·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
·17 วันที่ผ่านมา·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.
ncruces
·18 วันที่ผ่านมา·discuss
You've proposed that N times already.

Brands could do that - or an approximation of that by having an higher launch prize for the initial batch - yet they mostly don't.

Maybe the intent here is not keeping difference to themselves, and there's more brand value in not profiting from supply constraints, while being perceived as doing something about mass scalping.

Since most brands don't seem to agree with you, and if you just feel like you should be able to use your extra money to get lucky, you can still try to convince one of the lucky ones. I guess the few who might take it to eBay will charge even more for the privilege.

Not everything needs to be about efficient markets.