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

To each their own.

And right they are; sliding doors offer even less seal than the regular cheap doors usually used and as such less sound or odor protection.


The worst are the batwing / saloon doors, no idea who believes this is even a door


Gonna tell him what?


Because 10 supported that.


But it's _not_ c2rust. It started that way but this approach was abandoned in favor of a manual port. From the comment you replied to: > The decision to throw it all away and do a manual port, while surely gut-wrenching, was the right call. You just can't automatically translate the intent of the original C code into safe, idiomatic Rust.

From the second paragraph of TFA: > I threw away all of the C2Rust output and decided I would translate all of the files into Rust manually from C.

Please at least read the source before shit-talking it.


[flagged]


I usually don't comment because I am fine with reading stuff on here during my breaks and don't engage in discussions. Your poo-pooing of a hobby project that has no ambitions of being enterprise grade really rubbed me the wrong way though. If it brings you joy to call me a bot, go ahead though.


For the record, even my https://news.ycombinator.com/item?id=44464177 comment was flagged, along with EVERY single post under this submission.

See the parent of this comment, which is of course, not flagged.

Amazing times we live in.


[flagged]


Everyone's gotta start some time. My first comment wasn't until almost exactly a year after I finally made an account (according to search, but that lines up with my memory), and I didn't even create an account until I had been reading for a couple years IIRC.

I think it's often people that have an emotional response that make their first comment if they've been a lurker for a while already.

FWIW I think people are reacting negatively to you is because you've done the equivalent of walk into a community center where someone is showing their hobbyist art project and loudly proclaimed all the problems and that you'll be more interested when they fixed it up enough to make it to a real gallery. Not only is that person missing much of the point of why that person did it and judging it by standards it was never intending to strive for, but doing so around others that are there to appreciate it for what it is actually hampers their enjoyment and the empathic happiness they feel for someone striving to do something for the fun of it.

In other words, most people don't really care if this materializes as an actual product or project that's widely usable. It's a cool hobby project and some of us appreciate that, and appreciate people documenting their process in doing such things.


Thanks for the explanation. However, do you think that the author is going to learn Rust this way? You should honestly check out the source code. I do not think that this is in any way educational if the aim is to learn Rust. Maybe the aim is not that, but then why Rust? It could have been done in Forth, too.


The author literally said they were not aiming for idiomatic rust. They were focusing on translating as directly from C to Rust as possible.

If you still think they are using a transpiler rather than doing rote hand translation, please point out some specifics.


Example: https://github.com/richardscollin/tmux-rs/blob/main/src/file...

You are right, it is very far off from idiomatic Rust. It could have been done in virtually any programming languages. I am not sure why Rust was chosen if they decided to go against everything Rust stands for.


This is how a lot of rewrite projects start out, particularly in the hobby space. They focus on a 1:1 translation between the two languages until they're able to drop the original language's dependencies (compiler, etc). Then from there you start translating into idiomatic rust.


I have never seen rewrite projects start out this way. What is the point of the rewrite then, if this is 1:1? You will definitely implement bugs, too, and most likely introduce more.


Any ship of theseus rewrite is going to introduce bugs in the process, either by translating it 1:1 first or by replacing code with rust and talking over FFI.

The appeal of translating to rust first is that 1. you intimately learn a codebase you did not write, 2. you can refactor code during the following stages of the rewrite without worrying about FFI boundaries (which are their own massive source of complexity), and 3. you can work entirely in an ecosystem you prefer rather than attempting to work with tooling across ecosystems.

I personally prefer this 1:1 approach for hobby projects (where notably you don't have to continue maintaining a working product while the rewrite is in progress) because you can refactor in passes rather than in sections but it does have it's own drawbacks (added bugs/changed behavior from translation, etc) that you have to compensate for with additional tooling (like fuzz testing, conformance testing, etc).


IIRC Microsoft does similar things for the VSCode changelogs to highlight that all features work across all platform and colorschemes.


Microsoft has done this before with mauikit and mauilinux: https://github.com/dotnet/maui/issues/35

Unlikely that they even consider checking whether they are stomping across existing names.


> Unlikely that they even consider checking whether they are stomping across existing names.

Or it's on purpose as existing terms already have good amount of search traffic for those terms, and Microsoft know Google/Bing will rank Microsoft's own pages higher than what's already out there.


They even do that with their own products…


I would bet it's not. Based on the same starting point (phone in pocket) how many steps are there actually?

UI Option:

- take out phone

- unlock phone

- leave current app

- find and open control app

- find icon to toggle action

- lock phone

- put phone back in pocket

NFC option:

- take phone out of pocket

- bump phone against NFC sticker

- find NFC sweet spot

- put phone back in pocket


Your NFC option missed the "move to be within arms reach of said NFC sticker" step.

For some actions colocation might make sense.

But having to stand up to go rub a magic sticker on the wall or coffee table to turn on the lights seems pretty dumb compared to a few thumb flicks.


It is absurd. Get a button instead. Button option:

- press button


Buttons are $20. NFC stickers are $0.20.


A short one sentence explanation what DALL-E _is_ would have been a nice inclusion. I guess it's an image generating AI thing?


yes, you can read these blogs for more info: https://openai.com/blog/dall-e/ & https://openai.com/dall-e-2/


If you already have a USB A to Lightning cable you can keep using this, true. But the new cable that is included just does not fit. An android convert who might have a dozen USB A chargers but zero USB A to Lightning cables would either need such a cable, which is not in the box, or a new charger, which has a USB C socket on it to use the cable from the box.


In other words, you are admitting I'm entirely correct. No new chargers are required by this move.


You’re only kind of correct. If my new phone ships with a brand new cable I’m going to want to use it — cables age, and my newest cable (especially one from a reputable manufacturer) is going to get used. But if I don’t have a USB-C brick then suddenly I need to buy one to use my best cable.


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

Search: