Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ahem, by law programming languages must have code samples on the front page




Yes, after wandering through a few pages trying to find an example that actually did something, I gave up and moved on.

This was especially confusing to me when I clicked on the "try" button and was dropped into a page with an empty text box. Most playgrounds I've seen before at least have a "hello world" there. There's a run button, but it's not particularly useful with an empty file!

If this was released in April, I'd assume it was a joke: no va, no go... Not Go.

The code block after "Welcome" is the code sample. Very literate.

Is it meant to do something? It doesn't follow the same cause/effect syntax as the tutorial, and plopping that welcome block into https://playground.nova-lang.net/ doesn't seem to do anything. I assume it's the note taking part of the syntax?

Its not necessarily meant to do anything on its own. The text there is the same cause/effect syntax, just with slightly different delimiters. If you were to include the fact it needs to execute for the rule to work on after the code, like: "|| - Welcome to Nova! -", then the rule would execute.

OH! Ok that makes more sense. `:` from the tutorial is `-` or `~`, because it's the first char after the pipe.

I do lose track after that though, in my brain, It looks like the entire second part after the second pipe character should be just one long fact assigned to the stack between tildes, but I think it's adding each one of the bullet-prefixed lines to it.


That is one of a couple syntactical shorthands, explained a small bit here: https://nova-lang.net/introduction-to-nova/sight/#sometime-y...

yeah, the "." is a syntax for putting multiple things on the same stack

[0] https://nova-lang.net/introduction-to-nova/sight/#sometimes-...


A caption for that sample, indicating it is one, would help.

It's there, but yes the home page is very confusing. I lost interest very fast.

I found some example code on their github https://github.com/dan-online/Nova

This is an unrelated synonymous language. Besides this and submitted one, there're few others found online, one[0] being 20y+ old (first release 06/2003). There's also a research one on functional parallel programming[1], but no public implementation seems to exist. (Though conceptually Futhark is similar; maybe that Nova even influenced Futhark's creation.)

[0]: http://www.navgen.com/nova/index.html

[1]: https://research.nvidia.com/publication/2013-07_nova-functio...


*homonymous (a synonym is the opposite of a homonym)

Are you sure that a synonym is the opposite of a homonym, rather than say, the logical inverse corollary of a homonym? I'd think "the opposite of a homonym" would just be a word spelled differently from the target word, no?

A synonym is a different word with the same meaning. A homonym is the same word with a different meaning.

A homonym is not the same word. Homonyms include both homographs, which are still two different words with different meanings, just spelled the same way (e.g lead[verb] and lead[noun]), and homophones, which are also still two different words with different meanings, just pronounced the same way (e.g. there and their). That said, homonyms also includes word pairs that are both homographs and homophones like "bat", being the animal, the verb, and the baseball equipment (presumably among other uses).

True, thanks. Had forgot this term even existed.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: