Rendered at 17:26:36 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
cyanregiment 3 hours ago [-]
Clicked like 5 pages and never found 1 code example.
Idk why languages don't have their syntax in a sandbox front-and-center on the home page.
It's like a video game site with zero screenshots or videos (also rampant).
New programming languages I want 2 things:
1. What does the syntax look like
2. Why would I use this language
Talk about the proof logic, show the syntax, thank you
kasumispencer2 1 hours ago [-]
> Clicked like 5 pages and never found 1 code example.
But I clicked one (1) link to the online book and found a thousand?
giancarlostoro 41 minutes ago [-]
Should be on the home page of any programming language site.
kasumispencer2 30 minutes ago [-]
Is there actually any difference when it's just one (1) link away? Are most of us seriously this busy that we cannot spend even half a minute on this?
1 hours ago [-]
rixed 2 hours ago [-]
I'm the opposite: when landing in a programming language site I want to know the user case the authors had in mind, the memory model, the type system, the compilation targets, the data layout, the control structures, and only at the end just check that the syntax is not indentation based.
sroerick 2 hours ago [-]
So I'm very seriously considering making my language indentation based. You're saying you wouldn't like that?
rixed 1 hours ago [-]
No indeed I'm not a fan. I find it brittle and arbitrary for data values especially; that also makes automatic code generation and edition harder, for no good reason.
But that's not an important consideration either way.
zlsa 2 hours ago [-]
I think this falls under "[wanting] to know the user case the authors had in mind"
BretonForearm 1 hours ago [-]
There is no "user case", it's called use case.
aleph_minus_one 57 minutes ago [-]
> There is no "user case", it's called use case.
Perhaps English is not a native language for zlsa?
giancarlostoro 40 minutes ago [-]
I love that people hate indentation based so I show them a poorly indented C style languages codebase to see how they feel about indentation.
koolala 36 minutes ago [-]
Isn't it easy to just auto format it?
Verdex 3 hours ago [-]
To borrow your video game analogy. F* is the dwarf fortress of programming languages. Screenshots are only going to confuse anyone who isn't ready to take a significant mental journey.
and click on the image below the text "You probably want to read it while trying out examples and exercises in your browser by clicking the image below.".
In the section of (1) also the PDF version is linked:
I wonder why more languages don't have a few simple examples of: "HTTP server", "hello world", "todo list app" that you can just click and it shows the code for how you'd make it in that language.
It matters a lot how the syntax looks IMO and seeing how, say, an API is scaffolded, helps understand a lot about the language in one glance
Edit: Page 18 of the PDF. That's the first time I found what the code looks like, thanks for sharing!
aleph_minus_one 1 hours ago [-]
> I wonder why more languages don't have a few simple examples of: "HTTP server", "hello world", "todo list app" that you can just click and it shows the code for how you'd make it in that language.
Often the reason is that the value that the programming language brings is thinking very differently about how to write code - the examples how to write something in it are merely the "more boring" consequences of this different way of thinking.
--
If you want a programming language that "just" enables you to write something well-understood (in particular in the area of web development) like your suggested
> "HTTP server", "hello world", "todo list app"
in a perhaps just a little bit more elegant/concise way, just look at which web development language/framework is currently fashionable on HN.
voodooEntity 16 minutes ago [-]
Thank you ! I just had the absolute same experience and was about to write a similar comment - take my upvote instead !
rainyq 3 hours ago [-]
just click the screenshot
cyanregiment 2 hours ago [-]
Takes you to an empty editor with still no code examples
remywang 1 hours ago [-]
That’s because syntax is the least interesting part of F*.
thomastjeffery 1 hours ago [-]
Then why are we all so interested?
Examples provide more than syntax. It's the semantics that we care about most.
aleph_minus_one 59 minutes ago [-]
> Examples provide more than syntax. It's the semantics that we care about most.
... and this semantics is explained in a quite encompassing way in the introductory notes "Proof-Oriented Programming in F*":
Idk why languages don't have their syntax in a sandbox front-and-center on the home page.
It's like a video game site with zero screenshots or videos (also rampant).
New programming languages I want 2 things:
1. What does the syntax look like
2. Why would I use this language
Talk about the proof logic, show the syntax, thank you
But I clicked one (1) link to the online book and found a thousand?
Perhaps English is not a native language for zlsa?
FYI: The link to this tutorial is unluckily a little bit obscured on the F* website: Go to
> https://fstar-lang.org/index.html#learn (1)
and click on the image below the text "You probably want to read it while trying out examples and exercises in your browser by clicking the image below.".
In the section of (1) also the PDF version is linked:
> https://fstar-lang.org/tutorial/proof-oriented-programming-i...
But I do see the editor to try it.
I wonder why more languages don't have a few simple examples of: "HTTP server", "hello world", "todo list app" that you can just click and it shows the code for how you'd make it in that language.
It matters a lot how the syntax looks IMO and seeing how, say, an API is scaffolded, helps understand a lot about the language in one glance
Edit: Page 18 of the PDF. That's the first time I found what the code looks like, thanks for sharing!
Often the reason is that the value that the programming language brings is thinking very differently about how to write code - the examples how to write something in it are merely the "more boring" consequences of this different way of thinking.
--
If you want a programming language that "just" enables you to write something well-understood (in particular in the area of web development) like your suggested
> "HTTP server", "hello world", "todo list app"
in a perhaps just a little bit more elegant/concise way, just look at which web development language/framework is currently fashionable on HN.
Examples provide more than syntax. It's the semantics that we care about most.
... and this semantics is explained in a quite encompassing way in the introductory notes "Proof-Oriented Programming in F*":
> https://fstar-lang.org/tutorial/proof-oriented-programming-i...
> https://fstar-lang.org/tutorial/
Does it get basic stuff like subtraction and u8 right, unlike Lean?
No, it isn't.
> No, it isn't.
https://fstar-lang.org/ claims otherwise:
"F* (pronounced F star)".