News for hackers. Stuff that matters.
Re:Turkey buys Delphi licenses for an estimated one million ... by zozbot234 on Wednesday January 22, 2020 @06:18AM (#22116518)
QuickBASIC works the same way. Rust doesn't really build its help documentation for "built-in" access in the programming environment (everything is web-based, even "local" docs launch in a web browser) but examples are a first-class feature; they're reused as test cases.
Re:Turkey buys Delphi licenses for an estimated one million ... by cerebellum42 on Wednesday January 22, 2020 @09:07AM (#22117617)
Even though the Rust docs aren't built for this purpose first, in IntelliJ or CLion I can still press Ctrl + Q on a method and see the full method documentation with examples. I think what IntelliJ does is simply parse the doc comment for that method and then render the markdown contained in it in the little popup. The standard docs are built from those comments as well.
Re:Turkey buys Delphi licenses for an estimated one million ... by adwn on Wednesday January 22, 2020 @09:03AM (#22117581)
> Rust [...] everything is web-based

Correction: Rust's help and documentation is HTML-based, and getting a local, automatically updated copy is trivial.

> even "local" docs launch in a web browser

Uh, so what? Can you name a better format for programming language documentation that's also ubiquitously supported?

Re:Turkey buys Delphi licenses for an estimated one million ... by thu2111 on Wednesday January 22, 2020 @11:19AM (#22118829)
Well, JavaDoc is a mix of HTML and custom tag language based, whereas Kotlin moved to Markdown + some similar tags. Because HTML is a pain in the rear to write compared to Markdown and can't express everything you want concisely.

Maybe you mean Rust's documentation is rendered to HTML. In which case, sure, but so what? Good docs can be rendered to non-HTML formats too, typically for IDEs to display quickly without needing to load a full browser.

Re:Turkey buys Delphi licenses for an estimated one million ... by arghwhat on Wednesday January 22, 2020 @12:30PM (#22119773)
With Go, the ability to instantly read docs for anything (even just pulling docs for a single function) in terminal is extremely helpful and far superior to a HTML-only approach. "go doc net/http.Client" pulls up the docs for the http client type.

It's one of the features I miss most as I code Rust, and the lack is very detrimental to the coding experience, as pulling up a browser is a massive context switch.

Re:Turkey buys Delphi licenses for an estimated one million ... by ChainOfFools on Wednesday January 22, 2020 @10:15PM (#22124506)
it's a mere scripting language, but I love the similar way powershell does this also, get-help [some-command] -examples
Re:Turkey buys Delphi licenses for an estimated one million ... by zozbot234 on Wednesday January 22, 2020 @09:10AM (#22117637)
> Can you name a better format for programming language documentation that's also ubiquitously supported?

Info format. It's supported by Emacs, and Emacs is the most ubiquitous of IDE's.

Re:Turkey buys Delphi licenses for an estimated one million ... by randomblast on Wednesday January 22, 2020 @09:16AM (#22117679)
> Emacs is the most ubiquitous of IDE's.

Sorry, have you been in a coma for 30 years?

Re:Turkey buys Delphi licenses for an estimated one million ... by SEJeff on Wednesday January 22, 2020 @09:38AM (#22117864)
Your question is rhetorical here, right?
Re:Turkey buys Delphi licenses for an estimated one million ... by adwn on Wednesday January 22, 2020 @09:48AM (#22117941)
> Info format.

I said "ubiquitously supported". There are several orders of magnitude difference between info format support and HTML support.

> Emacs is the most ubiquitous of IDE's

That's laughably wrong.

Re:Turkey buys Delphi licenses for an estimated one million ... by blacksmith_tb on Wednesday January 22, 2020 @06:19PM (#22123146)
Well, it may be on everyone's machine (just type 'which emacs') but that hardly makes it the most commonly used IDE, which I think is what's hard to stomach.
Re:Turkey buys Delphi licenses for an estimated one million ... by agumonkey on Wednesday January 22, 2020 @07:50AM (#22117055)
Talking about that, rust html docs gobs a whopping 400MB (2/3 of the install size IIRC). When compressed they're 22MB.
Re:Turkey buys Delphi licenses for an estimated one million ... by cesarb on Wednesday January 22, 2020 @10:05AM (#22118093)
Not long ago, there was support on Firefox to directly open HTML pages within compressed files (through the jar: protocol). If that still existed, it would be an option to distribute the rust HTML docs within a compressed .jar file, and let the browser read directly from it.
Re:Turkey buys Delphi licenses for an estimated one million ... by agumonkey on Wednesday January 22, 2020 @11:29AM (#22118933)
yeah that's a pity

albeit there's still zcat

Re:Turkey buys Delphi licenses for an estimated one million ... by zozbot234 on Wednesday January 22, 2020 @08:23AM (#22117292)
Rust and cargo are quite wasteful of disk space anyway, they should fix that first. 400MB is a drop in the bucket.