4 ms·
Jolie, the service-oriented programming language
- dlahoda 3y agohas refinement types. these exist in fstar lang and liquidhaskell. dependant types are not refinement [0] ts and rust have ideas to have them[1], but not so officially [0]https://www.reddit.com/r/dependent_types/comments/ay7d86/what_can_refinement_types_do_that_dependent_types/ https://www.reddit.com/r/dependent_types/comments/ay7d86/wha... [1]https://en.m.wikipedia.org/wiki/Refinement_type https://en.m.wikipedia.org/wiki/Refinement_type
- tialaramex 3y agoAlso see WUFFS for a special purpose language which leans really hard on refinement to deliver safety with socks-blown-off performance in a specific niche.
- ChicagoDave 3y agoDefinitely worth a look.
- phaedryx 3y agoI looked it up because I was curious. Jolie stands for Java Orchestration Language Interpreter Engine.
- greenthrow 3y agoSeems like a backronym to me.
- stevenae 3y agoFor those who don't know, jolie means pretty in french, and is a common woman's name.
- pgbi 3y agoIt does mean pretty but it is not a common french name.
- librasteve 3y agoon the basis that there aren’t many kids named Pretty by their English speaker parents, surely it’s more likely that a non-French speaker would name their kid Jolie
- afelixdorn 3y agoI don't think I've heard heard of someone named Jolie. According to data from INSEE (France's Census Bureau equivalent), since 1925, only 6 babies were named Jolie in 2011 and then 5 more in 2018. There's a Joline which you'd pronounce pretty much like jolie as the n is very weak, but it's barely more popular. Anyway, jolie does mean pretty, but it's not really a name (11~0 at this scale).
- rob74 3y agoI'm pretty sure you've heard of at least one person named Jolie: https://en.wikipedia.org/wiki/Angelina_Jolie https://en.wikipedia.org/wiki/Angelina_Jolie - but of course she's not French, I guess her parents picked the name because it sounded nice, and she thought it sounded so nice that she picked it as her stage name...
- misja111 3y agoHer mother had French-Canadian roots.
- soco 3y agoI suppose the parent commenter mistook Jolie for Julie which is indeed a common French (and not only) name.
- afelixdorn 3y agoYeah, but that's a last name. I was talking about first names which is usually what people mean when they say a common name. I'm guessing the other commenters are right, GP probably meant "Julie".
- karmakaze 3y agoLooking at a Database example[0] doesn't make me want to write this more than using any other framework. [0] https://docs.jolie-lang.org/v1.11.x/language-tools-and-standard-library/databases/index.html https://docs.jolie-lang.org/v1.11.x/language-tools-and-stand...
- naasking 3y agoMaybe it's just a bad example, it doesn't look much different than what I can do in C#.
- all2 3y agoMaybe we're just fish in water and don't know any different? GP, is there a better way?
- croemer 3y agoWhy would you showcase a bad example if there was a better one?
- naasking 3y agoWhat I meant is, not every language is better at every problem. It's maybe a bad example to showcase Jolie's strengths.
- croemer 3y agoWas curious at first but got more disappointed the further I read. The docs are overly wordy and in desperate need of editing. It claims it's a language, but it looks more like a DSL on top of Java with non-obvious syntax. It's been around since 2014? Is it used for anything serious? Or just riding the microservices gravy train?
- mhackaroons 3y agoIt is used in industry, yes, but is still quite niche. For example I know of journalism tools at media companies, document systems, websites, and a payroll system. It's definitely used as a stable platform in a few places but could use more libraries (things are getting active there though, plus you can reuse anything from the Java world). The docs really need some love.. : - )
- xonix 3y agoemail:string( regex(".*@.*\\..*") ) This is incorrect regex for email. The correct one is https://pdw.ex-parrot.com/Mail-RFC822-Address.html https://pdw.ex-parrot.com/Mail-RFC822-Address.html
- _yb2s 3y agoThat is an absurdly complex regex
- Twirrim 3y agoEmail address specs turn out to be rather complicated. I really wish people wouldn't code their own checks rather than use already existing standards. Some languages like Java even include proper checks in their standard library: https://java.net/projects/javamail https://java.net/projects/javamail Several jobs back I had no end of arguments with some Java devs about not writing their own checks, that kept routinely failing on legitimate addresses.
- smrtinsert 3y agoIt's all devs in general. As a java dev I have lost count of the number of times I have to tell any dev not to use a damn regex to validate emails.
- soco 3y agoBut why do you even need to validate that email? Send the subscriber a confirmation link - if they get it then it was valid, if not then it's on them to fix the situation in whatever way they find fit.
- _yb2s 3y agoA single massive and unreadable regex isn't an appropriate way to validate a spec that complex. With its complexity it can't be logically evaluated- only tested, whereas a function that breaks the spec out into steps/parts is going to be a lot more maintainable, readable, and auditable.
- 3y ago
- aleksiy123 3y agoKinda interesting that there seems to be a few similar ideas with https://serviceweaver.dev/ https://serviceweaver.dev/ I'm guess eventually this will be the way but not for a while.
- manlobster 3y agoI think it would be better if this was a code generator similar to `protoc` for gRPC, so we don't have to learn yet another implementation language.
- mhackaroons 3y agoOne of the devs here. We plan to release an updated code generator (jolie2java) that will make it easy to do exactly that. (For Java, but Jolie is already designed to support other langs as well in the future.) Specifically, you'll be able to use Jolie to write (tech-agnostic) APIs and then implement them in Java, using types automatically generated from the Jolie APIs.
- liampulles 3y agoThis is good to hear - the big problem I have with justifying more niche languages is that I have to ultimately use some niche library at some point that only exists for more established languages. I hope you guys try to make a first class transpiled language.
- cable 3y agoThis looks like Mule ESB 1/2.x configuration sans the XML
- tsuru93 3y agoI was kinda forced to use it for an university exam. The premise was interesting but working with it was bad. Maybe it improved in the last 5/6 years, but I doubt it's used for many (or any) real use case.
- lolinder 3y agoThe vast majority of programming languages would be terrible for production code in a real business setting. We share and discuss them here not because we're looking for something to replace the big few languages at work but because the niche and obscure ones often explore very interesting ideas.
- d--b 3y agoThis sounds very much like COM. https://en.m.wikipedia.org/wiki/Component_Object_Model https://en.m.wikipedia.org/wiki/Component_Object_Model
- hn_throwaway_99 3y agoA lot of this looks similar to what GraphQL with something like Apollo Federation gives you: 1. A contract-first language where all of your queries (reads) and mutations (writes) are defined in the GraphQL type language. 2. Refinement types can be implemented with directives or custom scalars. 3. The "built for the networked age" section is very similar to what Apollo Federation gives you - the ability to move implementations of part of your GraphQL API service to different servers with end clients being unaware. 4. Protocol agnositic - technically GraphQL is protocol agnostic but in really nobody cares because everyone uses HTTP or Websockets.
- FredrikMeyer 3y agoI assume this language is named after Jolie in Avatar The Last Airbender? (https://avatar.fandom.com/wiki/Zhu_Li_Moon https://avatar.fandom.com/wiki/Zhu_Li_Moon - the pronunciation is the same)
- bmacho 3y agoZhu Li eyes are curvy at the top and straight at the bottom (see the image), while the Jolie eye is the exact upside down of it.
- prmoustache 3y agoJolie stands for 'pretty/beautiful/attractive' in feminine form in french and is sometimes used as a noon when mentioning a person more often in a condescending manner.
- mhackaroons 3y agoWhenever Jolie is posted in a forum, the same discussion about its name is recreated. It is, however, the first time that I see the 'airbender explanation'. Nicely done!
- anentropic 3y agoI can't see past the gigantic tabs
- ivanjermakov 3y ago> The basic building blocks of software are not objects or functions, but rather services that can be relocated and replicated as needed. No? Most software I use is a single service (in a sense that it's compiled to a single executable).
- Alifatisk 3y agoSo it's like ballerina lang? (ballerina.io)
- deleted 3y ago[deleted]