News for hackers. Stuff that matters.
Re:Why is a Rust executable large? (2016) by kekebo on Thursday May 16, 2019 @08:10AM (#19928162)
Design choices shouldn't be a reason to not include the FAQ
Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @09:57AM (#19929078)
Design had nothing to do with not including the FAQ.

The FAQ was often out of date, hard to maintain. It was super long. It's not clear how often it was actually used.

Re:Why is a Rust executable large? (2016) by dmix on Thursday May 16, 2019 @11:39AM (#19929992)
Was there a reason why the runnable code example (plus a link to more examples "Rust by Example") that was front & center of the old homepage was removed?

I found it difficult to find any code examples on the new site.

Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @12:16PM (#19930313)
There's been a years-long discussion about how to get a good code sample, and we've never found anything satisfactory. Short examples don't show anything interesting, and interesting examples are too long. Nobody was happy with the old code sample, and nobody was happy with all of the suggested alternatives.
Re:Why is a Rust executable large? (2016) by staticassertion on Thursday May 16, 2019 @12:43PM (#19930557)
Every time a new language is posted on HN I spend ~15 seconds looking for code and, if I can not find it, I close the tab.

I can't imagine that isn't the case for many others.

I think Go nails this with the multiple code samples.

edit: In retrospect, I'm sure this is beating a dead horse and you're all well aware of this. I wonder, instead, what the approach is to fixing these problems when they reach a standstill? It sounds like no one could agree, so progress halted.

Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @12:52PM (#19930646)
Everyone's experiences are different. Many languages don't even have a centralized web presence, and many don't have code snippets on the home page. Just as you'd absolutely expect it, I would equally never expect it.

You can see some code in less than fifteen seconds by clicking the big yellow "get started" button.

Re:Why is a Rust executable large? (2016) by pdimitar on Thursday May 16, 2019 @04:16PM (#19932698)
I think your parent commenter gave you a very valuable marketing feedback and you should take it seriously and not deflect it with the diplomatic yet hollow "everyone's experiences are different".

Did you agree with their feedback? Disagree? State it plainly, no one is going to sue you for it. :)

Many people who frequent HN are quite busy professionals. I too quickly close web pages that show zero code, or motivation for creating the language, or brief install instructions. To me it means that the creators can't present well and that leads me to assume that their programming language is bad at expressing intent as well (and thus verbose or confusing). Is this a wrong assumption? Very likely, but the first 10-30 seconds of percepting something new are not rational. That's a widely accepted psychological premise in marketing.

You might disagree and that's okay. Marketing however isn't at all about what you like but what your average site visitor likes.

So, finally, what was wrong with the code samples? They might have been too simple to be useful but they still did send the right signal to your busy programmer visitor -- IMO.

Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @04:29PM (#19932842)
Feedback is valuable, and I did take it seriously. It's not new feedback.

> Marketing however isn't at all about what you like but what your average site visitor likes.

I agree 100%. But anecdotes, mine, yours or anyone else's, aren't data.

Re:Why is a Rust executable large? (2016) by dmix on Thursday May 16, 2019 @01:12PM (#19930818)
Ohh that’s where it is. That page with install instructions and examples is perfect.

I wasn’t looking to “Get Started” but why I might want to use it. Install instructions plus a basic example is all 90% of people want from a programming website.

Re:Why is a Rust executable large? (2016) by marcosdumay on Thursday May 16, 2019 @12:58PM (#19930703)
You are coming from the perspective of somebody with deep knowledge of the language. For somebody that never saw it, a short code sample say a lot.

I know this because the first Rust code I've seen was that short sample. But then, I completely understand if you desire to focus the site on people with experience on Rust.

Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @01:02PM (#19930739)
I may have experience, but it wasn't me that decided this. It was also from talking to a lot of new people, and their reactions to various code samples.

> I completely understand if you desire to focus the site on people with experience on Rust.

It's not, actually! It's the opposite. However, the audience is not just pure programmers either, it's also people like CTOs, etc.

Re:Why is a Rust executable large? (2016) by dmix on Thursday May 16, 2019 @12:30PM (#19930440)
golangs multiple options (via dropdown) always seemed the best to me https://golang.org/

Nim's line length one is okay https://nim-lang.org/

Although I'm sure you guys debated it to death already I still find it unusual to not be able to find a any example of actual within a few clicks. Committee-driven design is always difficult.

Re:Why is a Rust executable large? (2016) by intertextuality on Thursday May 16, 2019 @01:57PM (#19931211)
Go's page is for programmers; Rust's new page is for non-programmers. I think it's a mistake that you have to click "Get Started", then read through installation instructions, to finally see what Rust code looks like. It's all backwards. A short snippet (or two) should be front and center.

Crystal lang is another very good example: https://crystal-lang.org/.

Re:Why is a Rust executable large? (2016) by yxhuvud on Thursday May 16, 2019 @04:42PM (#19932996)
Something similar to how Crystal approaches it could perhaps work, giving a whole bunch of different small examples (including compilation errors) with corresponding entrances to documentation.
Re:Why is a Rust executable large? (2016) by rat9988 on Thursday May 16, 2019 @01:30PM (#19930983)
Their new website is more marketing oriented. They tried to look for a "good" example and didn't find it. So basically they saw that the language looked ugly and didn't want to show it, which is in my opinion very dishonest. I remember voicing my dissatisfaction on this change. A snippet code should show what the language looks like, not mislead the reader.
Re:Why is a Rust executable large? (2016) by p1necone on Thursday May 16, 2019 @07:27PM (#19934506)
Seems like there should be two sites; one for people they want to "market" to, and one for developers.
Re:Why is a Rust executable large? (2016) by sambe on Thursday May 16, 2019 @12:04PM (#19930214)
Nonetheless, it feels like there should still be an FAQ for actual FAQs. It's harder to maintain than other documentation?
Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @12:15PM (#19930304)
We've empirically found it harder. It's completely disconnected from everything else, and covers a wide range of things, and so it's very easy to get lost in the shuffle.
Re:Why is a Rust executable large? (2016) by not2b on Thursday May 16, 2019 @03:55PM (#19932453)
So assign the job to people who can focus on just that; community volunteers can often do a better job than the core team for an FAQ, because they are more in touch with people new to the language are confused about than core developers with deep knowledge of everything. It will be dynamic and questions/answers will become obsolete, so that has to be handled.

(I was the G++ FAQ maintainer back in the 1990s; yes, I'm old).

Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @04:26PM (#19932805)
> So assign the job to people who can focus on just that

This requires having a person who can. We never had one.

> community volunteers can often do a better job than the core team for an FAQ

Absolutely! The original version was written by the community. After such a heroic effort, they couldn't maintain it. I believe it was a lack of time, not desire, but regardless, that's just how it goes.

Re:Why is a Rust executable large? (2016) by sly010 on Thursday May 16, 2019 @02:18PM (#19931408)
> It's not clear how often it was actually used.

"Frequently"

Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @02:50PM (#19931794)
Ha!
Re:Why is a Rust executable large? (2016) by xondono on Thursday May 16, 2019 @08:45AM (#19928426)
It is if you are standardizing documentation. I don’t expect FAQs in the main website.

https://doc.rust-lang.org/1.0.0/complement-lang-faq.html

Re:Why is a Rust executable large? (2016) by kekebo on Thursday May 16, 2019 @08:57AM (#19928519)
Given that a lot of these questions seem relevant for people considering to try rust for the first time, including some sort of link on the main website might be helpful.
Re:Why is a Rust executable large? (2016) by roblabla on Thursday May 16, 2019 @09:00AM (#19928550)
A redirect would be helpful so the old links still work.
Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @12:17PM (#19930327)
We generally tried to have redirects, but we are humans and therefore fallible. Please file bugs!
Re:Why is a Rust executable large? (2016) by roblabla on Thursday May 16, 2019 @01:56PM (#19931202)
I would, but then the linked FAQ is outdated (in fact, the 1.20 version[0] indicates it moved to the website), and I don't think having a redirect that points to the prev website would work. According to [1], the presence of an FAQ on the website is an unresolved question.

[0]: https://doc.rust-lang.org/1.20.0/complement-lang-faq.html

[1]: https://github.com/rust-lang/www.rust-lang.org/issues/445

Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @02:49PM (#19931788)
Ah, I thought you could redirect to prev. Sorry about that!
Re:Why is a Rust executable large? (2016) by bscphil on Thursday May 16, 2019 @12:33PM (#19930463)
Heh. "Currently, Rust is still pre-1.0" doesn't seem to agree with the URL. ;-)
Re:Why is a Rust executable large? (2016) by steveklabnik on Thursday May 16, 2019 @12:37PM (#19930503)
Just another demonstration of how easy it is to let this kind of thing get out of date.