These slides need a lot of work. I'll read the paper later, but the slides really lack context and motivation. * I'm a little disheartened to see "Objectively: no. All languages are Turing-complete" in the context of the question of needing another language. It's a throw away comment and largely irrelevant when considering the actual use of programming languages. If one has to state this platitude, it is more accurat…
I am not sure that fst and snd decreases readability. There was studies that showed that at least for alphabetic languages humans recognized words by the first and last characters initially ignoring the middle. So these abbreviations nicely play on that.
The Verse Programming Language [pdf]
291–300 of 387 posts
Re: The Verse Programming Language [pdf]
#292Earlier quoted context omitted.
Correct, but "non-determinism" is a misnomer used in programming language theory to refer to generators and pervasive backtracking. Prolog, Icon, jq, etc. -- all fully deterministic, but known as non-deterministic owing to the pervasive generators and backtracking.
It is not a misnomer. You can use generators and backtracking to simulate non determinism. That means the simulator plus non deterministic algorithm are deterministic but the algorithm is not.
Re: The Verse Programming Language [pdf]
#293Very intriguing! Is there an explanation anywhere of how this is different from Prolog? It seems like almost the same thing. That is not a criticism BTW, I love Prolog. From what I can tell the main difference is it has functions with return values. It also looks like it has different semantics for the choice points, letting you nest alternatives in arguments and other expressions. I do like how choice points are see…
Re: The Verse Programming Language [pdf]
#294These slides need a lot of work. I'll read the paper later, but the slides really lack context and motivation. * I'm a little disheartened to see "Objectively: no. All languages are Turing-complete" in the context of the question of needing another language. It's a throw away comment and largely irrelevant when considering the actual use of programming languages. If one has to state this platitude, it is more accurat…
> These slides need a lot of work. I'll read the paper later, but the slides really lack context and motivation. SPJ is an exceptional public speaker, but that involves a lot of talking, a lot of context, audience participation, and a lot of wild gesticulating at slides. I'm not sure if this talk was recorded, but I am sure if it was the recording will be much better than the slides, the slides are not really designe…
Re: The Verse Programming Language [pdf]
#295Earlier quoted context omitted.
In Python the standard library is fairly easily traversed and understood and if there's a better way of doing something it's usually linked I think. In C++ we have.. this.. https://en.cppreference.com/w/cpp/algorithm/transform_reduce
I know supposedly "harder to learn" languages (i.e., functional languages), but my god does that example and C++ look impenetrable.
Re: The Verse Programming Language [pdf]
#296Earlier quoted context omitted.
In my uni they still teach C++ as a first language, that's why the "don't learn it as a first language" got me confused. The core language is very useful for learning programming, it is actually very clean.
My lecturer in second year, > 20 years ago mind, said we are learning C, because C++ is C with an ugly object oriented graft on top.
The more your C++ code resembles C, the worse it is.
Re: The Verse Programming Language [pdf]
#297Earlier quoted context omitted.
In Python the standard library is fairly easily traversed and understood and if there's a better way of doing something it's usually linked I think. In C++ we have.. this.. https://en.cppreference.com/w/cpp/algorithm/transform_reduce
Python's standard library includes many modules for specialised applications and yet it's surprisingly lacking in fundamental data structures and algorithms. Personally I think that's the wrong way round. Simple things like building dicts from different data structures or working with optional values that can be something or None just aren't there and you always seem to end up with some kind of utils.py full of hand-…
Re: The Verse Programming Language [pdf]
#298Earlier quoted context omitted.
I know supposedly "harder to learn" languages (i.e., functional languages), but my god does that example and C++ look impenetrable.
That is not idiomatic C++. The author is showing off esoterica.
Re: The Verse Programming Language [pdf]
#299Earlier quoted context omitted.
I didn't understand "false?" as a NULL value but more of a "Nothing"/"None" in the context of a Maybe monad. Since the language doesn't even have a Boolean equivalent, it makes sense to introduce a value for a failed condition or zero values. The problem with SQL's NULL are its properties (comparison and arithmetic in particular), which doesn't seem to apply here (e.g. "42 + false? === false?, just as with monadic fu…
I don't quite follow the second paragraph. You say > The problem with SQL's NULL are its properties (comparison and arithmetic in particular) [...] Which I follow, then you say that those unfortunate properties don't apply and give a counterexample (I think it is intended as a counterexample) of > 42 + false? === false? But that seems to be the same as SQL's NULL: benji=# \pset null NULL Null display is "NULL". benji…
Consider a column with values (10, 20, NULL, 30).
In SQL the AVG() function would return 20, i.e. ignoring the NULL value entirely. COUNT(*) on a table, however, would happily include NULL values, whereas COUNT(col_name) wouldn't. The behaviour is all over the place, especially when different dialects and settings are considered.
Re: The Verse Programming Language [pdf]
#300Earlier quoted context omitted.
The approach of using a function to describe a type where success is the identity is a very simple way to implement dependant types
But how does it help me implement a gameplay mechanic for the "metaverse"?
For instance this might be super mario... mario moves forward or the gumba moves forward or mario hits the gumba and mario enters death animation and the gumba stops or mario hits the gumba from above and the gumba enters death animation or mario hits a coin box and a his coins increase and mario stops and the box enters coin animation.