HackerTrans
TopNewTrendsCommentsPastAskShowJobs

atiedebee

no profile record

comments

atiedebee
·vor 7 Tagen·discuss
But the goal isn't to catalogue all human knowledge. Having an article for every living person would be "cataloguing all human knowledge" but it would also be a meaningless endeavour. Some knowledge is worth preserving in an encyclopedia, other knowledge isn't. That is why they have their notability guidelines.
atiedebee
·vor 7 Tagen·discuss
Right before the statement in Wikipedia being an ideological playground:

> Our best hypothesis is quite simple: some of the mods just don't like Odin as a language and don't want it on Wikipedia as any form of "advertisement".

It doesn't directly say "political bias", but it certainly is implied (not as in national politics, more like ideological)
atiedebee
·vor 8 Tagen·discuss
> But the tech giant says it kept operational carbon emissions down by continuing to purchase massive amounts of clean energy.

I never got this line of reasoning. If you are using 37% energy and you buy it from providers of clean energy, doesn't that mean that someone else won't be able to use that energy and will have to use fossil fuels anyways? It's the equivalent of "reducing" a country's emissions by forcing companies to move to a country where they ARE allowed to pollute and just importing the produce from there.
atiedebee
·vor 8 Tagen·discuss
They have hardware decoders for JPEG? I have never heard of this and it seems overkill considering how simple it is to decode.
atiedebee
·vor 12 Tagen·discuss
By cheating you gain a certificate that says you can do things which you cannot. The difference between cheating in university and forging a degree is the time it takes.

When going to a doctor, you wouldn't want them to have cheated for their exams during training. You expect them to be well equipped to practice medicine and to ensure you get correct diagnoses and care. When hiring a programmer or software engineer, you should expect them to be able to provide you a proper, well architected application given the requirements.
atiedebee
·vor 14 Tagen·discuss
Except that brotli uses Huffman coding. It's main claim to fame is using higher order statistics to select a Huffman table and its built-in dictionary.

This class of compression programs sees larger differences due to the way the data is modelled instead of the specific entropy coder used.
atiedebee
·vor 15 Tagen·discuss
Which slice? The large text compression benchmark uses enwik8 for a "smaller" input that is easily reproducible. The predictability of enwik9 can vary significantly depending on where in the file you are, as shown by Matt Mahoney https://www.mattmahoney.net/dc/textdata.html
atiedebee
·vor 18 Tagen·discuss
It depends on the format. Brotli switches the Huffman codes used based on the previously decoded bytes, but gzip and bzip2 for example use the same Huffman codes for a bigger block of data. But even then, there might be some more details that you'd need to work out, like the decoding of LZ offsets.
atiedebee
·letzten Monat·discuss
I imagine you would want to test "idiomatic" code for these comparisons. It doesn't make much sense to compile with C++ and write everything in C.
atiedebee
·vor 2 Monaten·discuss
Another interesting one is the ZPAQ compression program[1]. It is one of the top performers on the large text compression benchmark[2] and uses the bytecode to specify how to model the data.

[1]: https://en.wikipedia.org/wiki/ZPAQ

[2]: https://mattmahoney.net/dc/text.html
atiedebee
·vor 2 Monaten·discuss
I hope the brakes in my car don't need developers
atiedebee
·vor 2 Monaten·discuss
Does HN randomly charge you money for using these phrases?
atiedebee
·vor 3 Monaten·discuss
I made a program with some inline assembly and tried O3 with clang once. Because the assembly was in a loop, the compiler probably didn't have enough information on the actual code and decided to fully unroll all 16 iterations, making performance drop by 25% because the cache locality was completely destroyed. What I'm trying to say, is that loop unrolling is definitely not a guarantee for faster code in exchange for binary size
atiedebee
·vor 4 Monaten·discuss
> I don't know about survival bias. LLMs are well suited to this task of taking in this cloud of soft data like a description of symptoms and spitting out a potential diagnosis.

And it will do so confidently and incorrectly. A single description of symptoms from a patient is very unlikely to be enough. This is why doctors are there to ask follow-up questions and do examinations. Symptoms alone can describe a dozen different illnesses.
atiedebee
·vor 4 Monaten·discuss
A lot of them are better in many areas. JPEG is just good enough (tm)
atiedebee
·vor 4 Monaten·discuss
I read a while back that bzip2 is named that way because the original bzip used arithmetic coding. The person who made bzip then made bzip2 to use Huffman coding due to patent problems with arithmetic coding.
atiedebee
·vor 4 Monaten·discuss
bzip3 is very different from bzip2. It is not even made by the same person and is not nearly as ubiquitous.
atiedebee
·vor 4 Monaten·discuss
> I know this position is wrong, but it feels hard to spend my time on something that someone else might not have spent the time to create

I don't think that position is wrong. I felt similarly when tutoring a high-school student recently. They didn't do any work themselves, they were forced by their parent to come to me two days before a test. I offered to help, but when I realized that the student didn't care enough to study by themselves, I basically lost all motivation to help them.

It feels the same with AI-generated content. If the "creator" didn't care to spend time on it, why should I spend mine?
atiedebee
·vor 5 Monaten·discuss
ISO C99 actually defines multiple types of deviating behaviour. What you're describing is closer to implementation-defined behaviour than anything else.

The three behaviours relevant in this discussion, from section 3.4:

  3.4.1 implementation-defined behavior
  unspecified behavior where each implementation documents how the choice is made
  EXAMPLE An example of implementation-defined behavior is the propagation of the high-order bit when a signed integer is shifted right.

  3.4.3 undefined behavior
  behavior, upon use of a nonportable or erroneous program construct or of erroneous data, for which this International Standard imposes no requirements
  Possible undefined behavior ranges from ignoring the situation completely with unpredictable results, to behaving during translation or program execution in a documented manner characteristic of the environment (with or without the issuance of a diagnostic message), to terminating a translation or execution (with the issuance of a diagnostic message).
  An example of undefined behavior is the behavior on integer overflow.

  3.4.4 unspecified behavior
  behavior where this International Standard provides two or more possibilities and imposes no further requirements on which is chosen in any instance
  An example of unspecified behavior is the order in which the arguments to a function are evaluated.
K&R seems to also mention "undefined" and "implementation-defined" behaviour on several occasions. It doesn't specify what is meant by undefined behaviour, but it does indeed seem to be "whatever happens, happens" instead of "you can do whatever you want." But ISO C99 seems to be a lot looser with their definition.

Using integer overflow, as in your example, for optimization has been shown to be beneficial by Charles Carruth in a talk he did at CppCon in 2016.[1] I think it would be best to have something similar to Zig's wrapping and saturating addition operators instead, but for that I think it is better to just use Zig (which I personally am very willing to do once they reach 1.0 and other compiler implementations are available).[2]

[1] https://youtu.be/yG1OZ69H_-o?si=x-9ALB8JGn5Qdjx_&t=2357 [2] https://ziglang.org/documentation/0.15.2/#Operators
atiedebee
·vor 5 Monaten·discuss
Recompiling the dependencies should only really happen if you change the file with the implementation include (usually done by defining <library>_IMPLEMENTATION or something like that.