Welcome to the Chata Programming Language
1–10 of 24 posts
Re: Welcome to the Chata Programming Language
#28If adding a value to a type where the result exceeds the type's maximum capacity in either the positive or negative direction, the type must remain at its previous value.
Note
This means that if you add 1 to an int at value 2^31, it will stay at 2^31. This is also called "saturating" a value.
Re: Welcome to the Chata Programming Language
#3> First, let's write a standard that's as polished as it can be. Then, once the standard is ready, we can start making it real.
I've learned on several occasions that things don't actually work that way. Writing the actual code and running/testing it is the only way to ensure that your ideas will indeed work and that you didn't miss corner cases. Except of course if the problem at hand is trivial, but that's clearly not the case here, and I feel like trial and error will be much necessary.
Note that this isn't only true for code. It's about writing in general, even when doing theoretical science that doesn't translate to code in the end.
There is a PhD Comics, I think, where a character says something like "remember kids, the only difference between fooling around and doing science is writing it down". Exactly.
---------------
From the todo list:
> procedural, functional, imperative?
Authors should probably also look into reactive programming and dataflow languages such as Lustre, Esterel, ReactiveML, etc. Probably some good inspiration there for this kind of tasks :).
Re: Welcome to the Chata Programming Language
#4Re: Welcome to the Chata Programming Language
#5Re: Welcome to the Chata Programming Language
#6Wait, noise cancelling works by wireless beaming its signal? What like into your head!?
Noise cancelling works by emitting a synchronised inverse of the sound wave to cancel.
Re: Welcome to the Chata Programming Language
#7Re: Welcome to the Chata Programming Language
#8this is a very interesting feature: 8 If adding a value to a type where the result exceeds the type's maximum capacity in either the positive or negative direction, the type must remain at its previous value. Note This means that if you add 1 to an int at value 2^31, it will stay at 2^31. This is also called "saturating" a value.
Re: Welcome to the Chata Programming Language
#9Re: Welcome to the Chata Programming Language
#10Naming for an international audience is hard.