Cool little language, but > functions are pure. I think you need to reconsider what pure means
that reminded me of https://78.media.tumblr.com/7d824a0db91b6be904ad3a52b79e0d6a...
Eul – The language
21–30 of 33 posts
Re: Eul – The language
#22Earlier quoted context omitted.
Since we're suggesting alternatives already I would like to throw Nim into the mix. - Variables aren't immutable by default, but neither are they mutable by default. - Globals are discouraged. - Nim compiles to C so integration with C libraries is easy and overhead is also similar to C. - Productivity is subjective but I'd say it's significantly more productive than C. - Despite going through a C compiler the compila…
If we're playing "recommend a language", I'll mention my personal favorite: Zig. -`const` for declaring immutables, `var` for mutables, do what you want. -Use globals if you want, or don't. -Can directly import C headers, generally no need to write bindings. -Personally I've found it significantly more productive -Compiles fast, but lets be fair, people only bring this up because C++ and Rust are the outliers here by…
Re: Eul – The language
#23Re: Eul – The language
#24I'd love to hear more. Maybe I'm a bit confused: the documentation says that functions are pure, and then the example functions look like they are full of side-effects. Does anyone have a good explanation of how purity and effects work in Eul?
That said, these functions look pretty impure.
Re: Eul – The language
#25Re: Eul – The language
#26Every single macOS download I've tried of Eul has been completely broken. It simply won't launch. Doing so from the Terminal gives the following output: dyld: Library not loaded: libnanovg.a Referenced from: /Applications/eul.app/Contents/MacOS/./eul Reason: image not found Weirdly, `otool -L eul` tells me that eul links against no dynamic libraries whatsoever (not even libSystem) and `otool -l eul` backs this up. I'…
https://github.com/eul-im/eul/issues/83#issuecomment-3844554...
eul only supports twitter, slack and skype atm and the rest say they're coming later in march. The roadmap shows may-june.
Re: Eul – The language
#27Every single macOS download I've tried of Eul has been completely broken. It simply won't launch. Doing so from the Terminal gives the following output: dyld: Library not loaded: libnanovg.a Referenced from: /Applications/eul.app/Contents/MacOS/./eul Reason: image not found Weirdly, `otool -L eul` tells me that eul links against no dynamic libraries whatsoever (not even libSystem) and `otool -l eul` backs this up. I'…
Re: Eul – The language
#28Earlier quoted context omitted.
Since we're suggesting alternatives already I would like to throw Nim into the mix. - Variables aren't immutable by default, but neither are they mutable by default. - Globals are discouraged. - Nim compiles to C so integration with C libraries is easy and overhead is also similar to C. - Productivity is subjective but I'd say it's significantly more productive than C. - Despite going through a C compiler the compila…
If we're playing "recommend a language", I'll mention my personal favorite: Zig. -`const` for declaring immutables, `var` for mutables, do what you want. -Use globals if you want, or don't. -Can directly import C headers, generally no need to write bindings. -Personally I've found it significantly more productive -Compiles fast, but lets be fair, people only bring this up because C++ and Rust are the outliers here by…
- Many apps for Elementary and other Gnome platforms are written in it
- oop
- properties/automatic getter,setter
- for each loops
- closures
- reference counting
- great compatibility with Gnome things
- interoperable with c
GTK example (from german wikipedia):
using Gtk;
int main (string[] args) {
Gtk.init (ref args);
var window = new Window ();
window.title = "A simple GTK+ Program";
window.set_default_size (300, 50);
window.position = WindowPosition.CENTER;
window.destroy.connect (Gtk.main_quit);
var button = new Button.with_label ("Click me!");
button.clicked.connect (() => {
button.label = "Thanks!";
});
window.add (button);
window.show_all ();
Gtk.main ();
return 0;
}
https://en.wikipedia.org/wiki/Vala_(programming_language)
https://wiki.gnome.org/Projects/ValaRe: Eul – The language
#29Earlier quoted context omitted.
On the other hand, Rust definitely does not have "Fast compilation", and although debatable, I would say that "Simplicity" is not one of Rusts many virtues.
> On the other hand, Rust definitely does not have "Fast compilation", True, though several people are now working on compiler performance. > and although debatable, I would say that "Simplicity" is not one of Rusts many virtues. I've found that Rust seems as simple as it can be given the problem it's solving. For instance, lifetimes and borrow checking aren't trivial , but I have a hard time thinking of a simpler ab…
That said, I don't think Rust is that complicated - it's just that a lot of the concepts it uses are unfamiliar to a lot of people and 'best practices' are not always set in stone because of that, which causes confusion - that's more of a maturity thing than anything else. Contrast with C++ (or C# or Java) which certainly is a complex language, but people aren't that confused by it because there are a wealth of books which prescribe the best ways to do things in any given scenario.
Re: Eul – The language
#30Every single macOS download I've tried of Eul has been completely broken. It simply won't launch. Doing so from the Terminal gives the following output: dyld: Library not loaded: libnanovg.a Referenced from: /Applications/eul.app/Contents/MacOS/./eul Reason: image not found Weirdly, `otool -L eul` tells me that eul links against no dynamic libraries whatsoever (not even libSystem) and `otool -l eul` backs this up. I'…
You can make syscalls with inline assembly (SVC 0x80).