6 ms·
Rust programs written entirely in Rust
- deleted 5y ago[deleted]
- boulos 5y agoThe entirely bit from the title was unfortunately auto-removed, but that's the key to the article's removal of libc.
- brundolf 5y agoWithout that word it sounds like it’s going to be a satire piece I wish HN would chill out with the auto-editorializing
- lmm 5y agoI wish HN would remove the user-submitted title box, since it just encourages you to put your heart and soul into something that then gets overwritten by the mods anyway.
- garmaine 5y agoSeriously, why is it there? What purpose does it serve?
- colejohnson66 5y agoAt least you can edit it after posting in order to correct it. But yes, why bother putting it if it’s just ignored?
- brundolf 5y agoI'm not sure they could automatically determine the title for every conceivable web page. There's the tab title, but that oftentimes isn't just the article title. For example it may be "The Website | The Article"
- slater 5y ago"please use the original title, unless it is misleading or linkbait; don't editorialize"
- slater 5y agoTo the downvoters: That's a direct copy/paste from the HN Guidelines: https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- klyrs 5y agoIt's easy to read that as snark, because that's what OP claims to have done.
- rvense 5y agoI think you mean "use the title, unless it is or; don't"
- slater 5y agoIt's direct copy-paste from the guidelines. Take it up with dang, not me.
- nyuszika7h 5y agoDo you understand what sarcasm is?
- Aissen 5y agoIMHO, this rule is important, but definitely simplistic. For instance, it's often important to contextualize; doing that without editorializing is subject to interpretation.
- 0xdeadb00f 5y agoPretty much. Many have complained about this. In fact I believe its one of the reasons lobste.rs exists
- fulafel 5y agoOr makes you feel frustrated when submitting when you conscientously obey the original title rule, which results in a bad title.
- deleted 5y ago[deleted]
- boulos 5y agoTo be clear, I find the automatic edits to usually be useful. I left my comment to explain why I flagged the article (assuming 'dang looks at flagged posts and then has to wonder "Why is this flagged?").
- brundolf 5y agoI don't think that's a proper use of flagging: > What does [flagged] mean? > It means that users flagged a post as breaking the guidelines or otherwise not belonging on Hacker News.
- kroltan 5y agoYou could contrive that this breaks the "don't editorialize titles" guidelines, in the lack of a better option.
- 0des 5y agoIt means that N people worth X points more than you flagged it in a short span of time, so the site hides it unless someone vouches for you.
- AnimalMuppet 5y agoUnless you have "show dead" turned on, in which case you see it anyway. (You still can't comment on it, though.) And, if it's dead and you see it and you don't think it should be dead, you can "vouch" for it. If enough people do that, it can lift the "flagged" status.
- boulos 5y agoI actually unflag after corrections. I think one-off flagging doesn't end up triggering any badness for the poster (and the rules for comments vs posts are different). Only once enough people flag something does anything happen.
- brundolf 5y ago
- 1vuio0pswjnm7 5y agoManual editorialising, too. (cf. correcting an error) Recent example: https://news.ycombinator.com/item?id=28365163 https://news.ycombinator.com/item?id=28365163 As a joke I was thinking about making a web page that automatically updates its <title> tag to match whatever title HN chooses for its corresponding thread on the HN front page. :)
- mulmen 5y agoThe best kind of joke is one that nobody gets.
- pjerem 5y agoYeah, when explaining the joke IS the joke. At least I’m self-sustaining when I need some laughs.
- dang 5y ago>> I wish HN would chill out with the auto-editorializing > Manual editorialising, too This is a classic sample-bias situation. The bad changes you notice stand out a lot more than the good changes you notice—or more likely, pass over without noticing. https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=by%3Adang%20dislike%20notice&sort=byDate&type=story&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que... If any of you know a strategy that's applicable in general, which would result in a better-quality front page over all, I'd love to hear it. This is a global optimization problem, though. You can't judge it by local failures, and (much as I wish otherwise!) batting 100 is not an option.
- 1vuio0pswjnm7 5y ago"If you know of any strategy which would result in a better-quality front page over all, I'd love to hear it." Thats a loaded question. :) The title issue is just a small annoyance, not an indicator of overall success, and it seems like there could be an easy fix. For example, a policy that submissions use the contents of <title> tag verbatim where possible. This should work for the majority of webpages. If not, I'd be interested in understanding why. I would think it would mean less work for a mod since then he does not have to entertain requests to change titles. Its arguable that any problem with a title (or the contents) of submitted webpage is a problem best addressed to the author of the page. Its not that I find editorialising titles offensive, its that there is an inconsistency of enforcement of the "HN rules" where HN users are scolded (not necessarily by a mod) for editorialising titles and then elsewhere titles are mysteriously changed for no stated reason. That rises to the level of an annoyance. We might think of it as curiousity. Users just want to understand how HN works. Maybe its impossible to be 100% consistent, and unreasonable to be expected to meet that bar, but when making (inevitable) exceptions perhaps its wise to be aware that sample bias will apply and explain why a title was changed. There might be good reasons for it. PS - Thanks for all the work you do.
- cpach 5y ago“I wish HN would chill out with the auto-editorializing” Feel free to send an e-mail to 'dang and bring it up. (The e-mail address is linked at the bottom of this page.) He’s very nice and approachable.
- chrismorgan 5y agoFYI: the original poster can immediately after submission edit it and fix the title, and HN will leave it alone the second time.
- brundolf 5y agoI think people often don't notice and then click away and go about their business. Nobody expects content they've just submitted to get silently changed under their nose.
- mlindner 5y agoIs there a way to ping dang so that he comes and fixes it? I wasn't aware HN did crazy shitty crap like this.
- pronoiac 5y agoThe "contact" link in the footer points to the mods' email address. I've dropped a line.
- isatty 5y agoI thought this was a way to get literally anything to the top of HN - add as much rust as possible.
- deleted 5y ago[deleted]
- dang 5y agoSorry! Fixed entirely.
- GolDDranks 5y agoI wonder if this can, in the future, provide yet another alternative to building binaries with statically linked musl libc. People criticise doing that, often deservedly so, but having had to build stuff inside containers with deliberately old libc just to get the binary to run on another, older system, I find joy in having a binary that I know to run in "every $HW_ARCH Linux userland". (Of course, even then, calling newer Linux syscalls brings upon some version limitations...)
- BiteCode_dev 5y agoI wish to compile python from source in a way that will work in every $HW_ARCH Linux userland. What are your advices? What does your setup look like? I'm really inexperienced with compiling software, but I'm playing with the idea of automating the creation of stand alone python distributions every time one is release to have a repo of it. It looks full of gotchas though, espacially when you need to deal with ssl and tkinter.
- kkirsche 5y agoI don’t know it’s current status but either PyOxidizer or Nuitka are the two Python compilers I’d look to for that. It is full of trade offs, but to an extent that’s many dynamic languages like Python (said as a Python developer) https://nuitka.net https://nuitka.net https://github.com/indygreg/PyOxidizer https://github.com/indygreg/PyOxidizer
- BiteCode_dev 5y agoI already can compile python using "make altinstall", nuitka is more suited to compile a whole python project. The problem is more, as you said, libc, for compat.
- GoblinSlayer 5y agoYou can just extract that old libc.a and link against it. It's one file.
- fnord77 5y agoso this would allow binaries that would run on both alpine and glibc linuxes?
- timClicks 5y agoThis is already possible, by statically linking musl. But the build process is probably simpler by using a pure Rust alternative.
- vlovich123 5y agoWhat happens if such a binary links in a C library? Won’t the missing init be a problem?
- kzrdude 5y agoIf you rewrite the libc functions, maybe something could be offered like actually thread safe and safe environment variables. Or maybe that doesn't matter if no C libs are being linked in?
- alakep 5y agoThis is the most hacker news article I’ve ever seen
- Zababa 5y agoI like seeing how the Rust community is becoming more mature. Learning to live with and accept existing code was really hard for me when I started programming.
- Flow 5y agoYou learn over time to encapsulate and insulate to avoid other's crap code to infect your code-poems. Less jokingly, programming has so many pain points that you learn to avoid. Simple things like reformatting a file, while a simple thing and seemingly necessary, can later end up being transformed into some of the less enjoyable mergings you have done. Like a binary butterfly effect.
- newpavlov 5y agoI really hope that we will get a libc-free Linux target. Mustang/rsix looks like a great step in this direction, similarly to steed (https://github.com/japaric/steed https://github.com/japaric/steed) before it. But I think that ideally it should be done properly in Rust proper, not in outside projects. Here a relevant issue, but there is not much progress on it: https://github.com/rust-lang/rfcs/issues/2610 https://github.com/rust-lang/rfcs/issues/2610
- sunfish 5y agoIf there's community interest, there is a possible path where Mustang matures to the point where it makes sense to talk about how to incrementally migrate the parts that make sense into Rust proper.
- jeffrallen 5y agoYay. This is something that, as a Go programmer, turned me off of Rust. We need to build a new world on new foundations without the risks of libc.
- pjmlp 5y agoDespite my critics of Go, one thing I really appreciate is the Go toolchain, and the decision to bootstrap the language. With Go the usual "my compiler compiles your language" is out of the discussion table.
- chakkepolja 5y agoFor me, its cross compilation being as easy as compiling with environment variable.
- steveklabnik 5y agoThe problem is, on most platforms, that is literally impossible. Go has had to roll this back on many of them due to it. Linux making this possible is actually an outlier here, not the norm.
- floxy 5y agoAny updates to the rust-in-the-linux-kernel project? https://news.ycombinator.com/item?id=26831841 https://news.ycombinator.com/item?id=26831841