Hacker Newsnew | past | comments | ask | show | jobs | submit | maverwa's commentslogin

Where do you see the lack of respect? The author wanted to learn how gzip works and chose to implement it in a language they like to do so. As a learning tool, not because the world needs another gzip decompressor.

Chose to paste the C into an LLM and said 'make it rust'?

What is your source for that accusation?

Original zlib code: https://github.com/madler/zlib/blob/develop/contrib/puff/puf...

The code of the article: https://github.com/ieviev/mini-gzip/blob/main/src/main.rs

Top level declarations of the C code:

    #define MAXBITS 15   
    #define MAXLCODES 286
    #define MAXDCODES 30
    #define MAXCODES
    #define FIXLCODES 288

    struct state

    local int bits(struct state *s, int need)
    local int stored(struct state *s)

    struct huffman

    local int decode(...)
    local int construct(...)
    local int codes(...)

    local int fixed(...)
    local int dynamic(...)
    int puff(...)
Top level declarations of the Rust code:

    const MAXBITS: usize = 15;
    const MAXLCODES: usize = 286;
    const MAXDCODES: usize = 30;
    const FIXLCODES: usize = 288;
    const MAXDIST: usize = 32768;
    struct State<'a> 
    struct Huffman<'a>

    fn decode
    fn construct
    fn codes
    fn fixed
    fn dynamic
    fn stored
    pub fn inflate

..that doesn't proves anything.

it's just convenient configuration macros and generic procedures names being reused to implement the steps for the DEFLATE algorithm.

There are only finites ways for you to express a piece of code in a language.


True! Technically even 9.99% would be three nines!

If I understand the description of this „telemetry“ in fyns „MANIFESTO.md“ correctly, it does not make outbound connections you did not asked for. It sets the user agent http header to something that identifies your OS, CPU, python version and if you are running in Ci when communicating to the package registry. It does not send any of that to astral, not ist any of that highly personal.

Sure, it should not be there by default, especially OS & CPU imho. But it’s not really what I’d call „invasive telemetry“.


With CRTs I would think that the problem may be that they do not see a full picture at all. Because the full screen is never lit all at once? Don’t know how persistence of vision works in this case…

Except if you need WSLg, because then you can add RDP issue to all your Wayland issues, and, not infrequently, also xwayland issues! You can have all the fun!


Mend is not a competitor, renovate is the software, mend is the company.

They are tools that automatically check your repo for dependencies and create PRs when there are updates. It supports a wide range of package managers and other places dependencies may be specified.

Dependabot is another solution which is more „GitHub-native“ maybe.


Maybe worth mentioning that this „1.50€ compensation“ rule only matters if you use the „Deutschland-Ticket“ which is a fixed price ticket for a whole month, unlimited travel on the Regio lines (short distance trains, i.e. non IC)

If you bought a regular route ticket you get 25% and more than an hour delay, and 50% at more than two hours. Not sure how it is with other multi-use tickets.

This, combined with the certain delays CAN make traveling by train quite affordable… /s

https://www.bahn.de/service/informationen-buchung/fahrgastre...


The difference being that while people have a good intuition on one may spend their vacation and what one would talk about, it’s not so easy to extrapolate for other things. Sure, everybody knows that media talks more about homicides and terrorism than the thousands of people dying or „old age“-kind of things, but it’s not always easy to keep in mind on how far apart these numbers are.

I think „manipulation“ may be to strong of a word here, since it assumes intent to manipulate, which is not necessarily to focus on „out of the ordinary“ events. But I think nonetheless that this infographic is interesting and important, because it reminds us that these biases exist and how big they are.


Thank you for HACK. I love it!


if you are in the business of buying parts, assembling them, and selling the assembly under your brand (as tuxedo and others like them are), then Apple is a indeed not an option. Their chips might be the best, but you still can only get them in Apple devices, in the specs Apple provides and with no official support for any OS beside macOS / iOS.


That's true. What I wanted to point out is the fact that the most tightly integrated and arguably the most locked down platform on the market is more open than a platform designed to be adapted by others and sold by many.

I don't expect any daily-driveable alternative operating systems on Apple systems since it's a continuously moving target, yet Apple doesn't have a such heavy-handed approach. They just do their thing and do not hinder things actively like NVIDIA and Qualcomm.


This comparison makes no sense. It's desktops/laptops vs phones. In either case Apple is the worst offender. You cannot even use Nvidia/AMD/Intel DGPUs with AS Macs, or install other OSes on iPhone.


> You cannot even use Nvidia/AMD/Intel DGPUs with AS Macs

afaik you technically can, except that m1/m2 force pcie bars to be mapped as device memory (forbids unaligned r/w), so most gpu software (and drivers) that just issue memcpys to vram and expect the fabric to behave sanely will sigbus. it's possible to work around this, and some people indeed have with amdgpu, but it'd absolutely destroy performance to fix in the general case

so it doesn't really have anything to do with apple themselves blocking it but rather a niche implementation detail of the AS platform that's essentially an erratum


You would think Apple would update this or put out another support page supporting what you're saying: https://support.apple.com/en-us/102363

There's also an Apple VP saying unified memory on AS doesn't leave room for DGPUs and separate VRAM.

I think this is more than just an erratum, even with newer chips. It's monopolistic behavior all too common nowadays.


don't see why they would care to put out docs on it considering macos doesn't even permit kexts anymore, there'd be no gpu drivers anyways. i figured it was obvious we're talking in the context of running linux on these things, given the parent topic.

> There's also an Apple VP saying unified memory on AS doesn't leave room for DGPUs and separate VRAM

can you link to this? my intuition is that they're speaking on whether apple would include dgpus inside AS systems like they used to with nvidia and amd chips in macbooks, which i agree wouldn't make much sense atp


There were uses for DGPUs in MacOS before AS, those uses could have continued, but Apple left no choice. It's weird how continuity wasn't as important to Apple in this case.

Whatever kernel or hardware facilities are available to Apple's own GPU driver, should be available to other GPU drivers. Anything else is myopic thinking, which I realize might be common for Apple, but it is also monopolistic.

Linux also allows userspace drivers with less performance I think, but I don't think DGPU use can be made performant because of AS hardware choices.

I am predisposed to ignoring link requests for things that can be easily googled.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: