4 ms·
This seems to just about single-handly take my least favorite syntax feature from each of of the languages it cribs from... FS path based import, overly verbose
by TylerE 6y ago
This seems to just about single-handly take my least favorite syntax feature from each of of the languages it cribs from... FS path based import, overly verbose types with too much &{}% noise, "let" noise, oh and it runs on JVM.
Edit: I'm not quite as negative as I sound, but given the headline (or the CTA on the homepage for that matter), I am much less than whelmed. This seems fine I guess, but just another "check all the boxes" language that doesn't really bring much of anything obvious new to the table.
- herbstein 6y ago> This seems fine I guess, but just another "check all the boxes" language that doesn't really bring much of anything obvious new to the table. Full disclosure: I have contributed a small amount of code to the standard library of Flix. Personally I find the inclusion of Datalog as a first-class citizen in an otherwise functional language to be a pretty powerful feature that I personally haven't really seen done before.
- tw25513397 6y ago> Personally I find the inclusion of Datalog as a first-class citizen in an otherwise functional language to be a pretty powerful feature that I personally haven't really seen done before. It's neat, but IIUC, it needing to be a language feature (versus being included as a library) emerges from the lack of macro support. That's one of my issues with non-macro languages, I have to wait for the language owners to add this stuff.
- jorkadeen 6y agoIn Flix, Datalog constraints are first-class values. This is strictly more powerful than a macro system. For example, the Datalog programs that are constructed can depend on input values to the program. This is not the case for macros which are expanded compile-time. (Unless you have some kind of reflection in mind...) EDIT: I hope to explore a macro system for Flix in the future. So we are definitely on the same side of the issue; just wanted to point out that the current system is more powerful.
- fanf2 6y agoHow does Flix compare to Mercury? https://mercurylang.org/ https://mercurylang.org/
- deleted 6y ago[deleted]
- pie_flavor 6y agoYou may want to check the language guide. / is just the namespace separator, it's not a file finder. Could just as easily have been made :: instead.
- jorkadeen 6y ago> This seems fine I guess, but just another "check all the boxes" language that doesn't really bring much of anything obvious new to the table. Flix aims to occupy a unique point in the design space. It combines features from programming languages like Go, Haskell, OCaml, and Scala in a way that no other language does. It has: - a sound type system (like Haskell and OCaml) - a complete local type inference algorithm (like Haskell and OCaml) - eager evaluation (like OCaml and Scala) - CSP style concurrency (like Go) - type classes (like Haskell) - full tail call elimination (like OCaml and Haskell) If you look at the "Innovations" page you will find that Flix has (at least) two features found in no other programming language: a polymorphic type and effect system and first-class Datalog constraints. (I am one of the authors of Flix).
- the-smug-one 6y agoRacket has delimited continuations (from which you can build effects w/o the types) and Datalog as a #lang. Sure, not a lot of types unless you use Typed Racket, that's true. I also don't see why you couldn't swap out Datalog with another constraint system, like that described in Monadic Constraints (Wadler, Stuckey, Sch-something). I think the effect system is cool. How does Flix differ from Eff or Unison in this matter?
- jorkadeen 6y agoThe Datalog implementation in Racket is neat, but does not support stratified negation nor are the Datalog constraint first-class. Both features make it significantly more practical to work with Datalog. Also, the Flix type system ensures - at compile-time - that all first-class Datalog values constructed at run-time are stratified. The effect system in Flix is focused on a single effect: purity. It is very fine-grained (compared to e.g. systems based on rows) and it supports effect inference and effect polymorphism. Eff and Unison have richer effect systems - based on algebraic effects - which allow re-interpretation of effects. However these effects system struggle more with effect inference. For example, I believe that in Eff you only have a restricted form of effect polymorphism / the use of higher-order functions is more limited. (I am one of the authors of Flix)