News for hackers. Stuff that matters.
Re:Show HN: Beef, a new performance-oriented programming lan... by jlukecarlson on Wednesday January 08, 2020 @11:47AM (#21993088)
Hey if I can make a small recommendation, I’d suggest putting some code examples directly in the readme.

Currently the examples are buried multiple pages into the documentation, making it harder to evaluate the project at a glance

Re:Show HN: Beef, a new performance-oriented programming lan... by vosper on Wednesday January 08, 2020 @06:54PM (#21997081)
Further to this, check out the page for Inko: https://inko-lang.org/

They have a nice little dropdown in the top corner, right there on the front page, that lets you see little code snippets. I really like that.

Should slightly more accessible code snippets have any influence on my choice of language? Probably not. But I like it nonetheless.

Re:Show HN: Beef, a new performance-oriented programming lan... by YorickPeterse on Wednesday January 08, 2020 @07:58PM (#21997474)
When making the Inko website I saw a bunch of other language websites (e.g. D's website) use this approach, so I copied the idea. I'm glad it turned out useful :)
Re:Show HN: Beef, a new performance-oriented programming lan... by grok2 on Thursday January 09, 2020 @01:29PM (#22003935)
I like pyrets front page too for this https://www.pyret.org/ -- lots of examples and code-comparisons to other languages. Very neat.
Re:Show HN: Beef, a new performance-oriented programming lan... by azinman2 on Wednesday January 08, 2020 @10:33PM (#21998324)
Doesn’t seem to be the case on mobile?
Re:Show HN: Beef, a new performance-oriented programming lan... by whammywon on Thursday January 09, 2020 @09:50AM (#22001616)
In keeping with this, Python also has something similar: https://www.python.org/
Re:Show HN: Beef, a new performance-oriented programming lan... by lilyball on Thursday January 09, 2020 @03:21PM (#22005220)
Inko's page looks almost exactly like rust-lang.org used to look like in the past, before Rust rebranded their site for marketing reasons.
Re:Show HN: Beef, a new performance-oriented programming lan... by admay on Wednesday January 08, 2020 @11:57AM (#21993205)
I'd like to just add a +1 to this. I had a tough time finding some good code examples and would love to see a small example of code in the readme. Something beyond a hello world, preferably but that's just me
Re:Show HN: Beef, a new performance-oriented programming lan... by bobajeff on Thursday January 09, 2020 @05:25AM (#21999989)
I want to add that it's helpful to describe the kinds of problems it addresses and to show how.

Is love to see a presentation on it.

Re:Show HN: Beef, a new performance-oriented programming lan... by rishav_sharan on Thursday January 09, 2020 @10:19PM (#22008076)
Zig is the gold standard here. Every section of the site has a cide sample of.