Live data from Hacker News

Ballerina, a language with structural type system

v1-0.ballerina.io

111–120 of 126 posts

Re: Ballerina, a language with structural type system

#111
post #99

Earlier quoted context omitted.

It's a name, calm down. This is a terrible slippery slope we found ourselves falling down. We're about at the bottom of the hill where nothing can ever be said.

You see the part where he's speaking from experience?

Yes, he handled his experience wrong in my opinion.

Re: Ballerina, a language with structural type system

#112
I've had my eye on this for a while, it looks great! Co-designed by James Clarke (of SGML, DSSSL, and XML fame) and it uses XML as a built in native data type.

I don't do cloud stuff but I can't wait to give this a spin and see if there's any way I can use it to my benefit.

Re: Ballerina, a language with structural type system

#113
post #77
post #36

Earlier quoted context omitted.

Yeah sorry .. the styling on examples https://v1-0.ballerina.io/learn/by-example/ might be a bit much. We'll work on it.

Also the comments. They are unnecessary in many places in the examples and distracting. It’s obvious that the piece of code is “return string to caller”. The comment is just noise.

We will do another pass on these examples pretty soon. Thanks for the feedback.

Re: Ballerina, a language with structural type system

#114
post #49

Earlier quoted context omitted.

You don’t even need to read past the product name. Like a lot of geeks they just don’t have a clue how to sell, nor how to hire talent that can. There is no part of their branding that is not a straight disaster. (And that shoulder massage…oy.) Look, real ballerinas are totally hardcore badass atheletes who could easily kick all our flabby nerd asses while standing on one toe, and I take my hat off to them for what t…

> Look, real ballerinas are totally hardcore badass atheletes Yes. > who could easily kick all our flabby nerd asses while standing on one toe For the most part, no, though if both parties have to try to stand one toe during the exercise, maybe. > But how many professional software developers will really want to self-identify as “ballerinas” when discussing between themselves, never mind pitching to board rooms? Uh,…

Regarding the identity thing: programmers like collective nouns.

What do you call a bunch of google employees? Googlers (and they self-identify with that label). The same thing goes for a bunch of companies.

What do you call the people at a go meetup? Gophers. Ruby meetup? Rubyists.

There's a bunch of collective nouns. In the software community, they particularly pop up around companies we belong to, and programming languages we use.

It's about 50/50 with programming languages really. A bunch of C programmers isn't a "Unit of Eunuchs", but a bunch of python programmers are a "Plethora of Pythonists".

Rust programmers are a "Corrosion of Rustaceans, but java programmers aren't an "Orientation of Objects".

Collective nouns are somewhat random, but I assure you that when the programming language name makes it easy to create them, they will be created. Ballerina makes it very easy any of a number of collective nouns to form, and they totally would if the language took off.

Re: Ballerina, a language with structural type system

#115
post #81

Always happy to see another language being born, especially one that's put together like this - assuming all of it works (have not yet downloaded or played with it, this is based on reading your website) That said: 1. This is bikeshedding, but you cannot make a statement like "diagram is the code, code is the diagram" and not show how to actually do that. The home page even has a sequence diagram. If you meant that t…

Here's what the spec [1] says about the sequence diagram aspect of the language: "[Ballerina's] abstractions and syntax for concurrency and network interaction have been designed so that there is a close correspondence with sequence diagrams. This enables a bidirectional mapping for any Ballerina function between its textual representation in the syntax described in this specification and its graphical representation as a sequence diagram, such that the sequence diagram fully shows the aspects of the behavior of that function that relate to concurrency and network interaction."

The two biggest things that are different about Ballerina in my view are the language abstractions for providing and consuming network services, and the correspondence with sequence diagrams.

[1] https://ballerina.io/spec/lang/2019R3/

Re: Ballerina, a language with structural type system

#116
post #81

Always happy to see another language being born, especially one that's put together like this - assuming all of it works (have not yet downloaded or played with it, this is based on reading your website) That said: 1. This is bikeshedding, but you cannot make a statement like "diagram is the code, code is the diagram" and not show how to actually do that. The home page even has a sequence diagram. If you meant that t…

Here's what the spec [1] says about the sequence diagram aspect of the language: "[Ballerina's] abstractions and syntax for concurrency and network interaction have been designed so that there is a close correspondence with sequence diagrams. This enables a bidirectional mapping for any Ballerina function between its textual representation in the syntax described in this specification and its graphical representation…

Can you share a sample of code, its equivalent sequence diagram, and how one is converted to the other please? I see that the samples have caller->method() style code, but how is this a sequence diagram? And where's the actual bidi mapping?

To be clear: I'm not critical; its good that ballerina attempts to bridge the visualization and the implementation. I'd like to see an actual sample, though.

Edit: Never mind, found the other poster who discovered your IDE plugin that shows the sequence diagram equivalent. Not sure how this is part of the language, though.

Re: Ballerina, a language with structural type system

#117
post #72

https://v1-0.ballerina.io/learn/by-example/json-io.html returns @tainted json made me cringe a bit for some reason.

> Perl supported tainting from at least 1989 as the -T switch was included in Perl 3.

https://en.wikipedia.org/wiki/Taint_checking

Re: Ballerina, a language with structural type system

#118
post #102

Earlier quoted context omitted.

Why didn’t you expect that Sri Lanka has excellent Java coders?

Because I never heard of them. I heard of Bangalore and Gurgaon, but never Colombo.

Just check this out

"Sri Lanka comes in at number one in its preference for Java" source : https://blog.hackerrank.com/which-country-would-win-in-the-p...

Re: Ballerina, a language with structural type system

#119
post #83
post #39

Earlier quoted context omitted.

I'm the founder of WSO2. I'm from Sri Lanka. We have 100s of coders from Sri Lanka (not dozens). I'm the creator of Ballerina. I'm now its product manager. Ballerina is in its first GA release. Please elaborate on what features you see as "almost complete"? And regards to your comment about WSO2's inability to produce market-ready products, we have 500+ customers from all over the world for our products. What do we n…

Well, I just took a cursory glance at the documentation. Ballerina looks like it would be perfect for a data processing pipeline we run, I thought I could try it out for prototyping a new processing step, and see how I liked it. This first use-case I could think of involves XML processing. You have "native" xml types. Neat. After reading the language spec, all the xml examples, and the documentation for the 'xml' and…

The XML design is going to get a significant refresh. The draft proposal is here: https://github.com/ballerina-platform/ballerina-spec/blob/ma....

The XML programming model is rather different from DOM and others for a lot of reasons. I hope reading this proposal will help.

Re: Ballerina, a language with structural type system

#120

As a co-creator of a language (Julia) with a name that is feminine in most of the world, let me give some friendly advice regarding the name "Ballerina", which means "a female ballet dancer". The way you talk about Ballerina comes off rather tone deaf to gender issues. In the post linked here and elsewhere on the language website, the female ballerina—and she is definitely a she—is talked about as an object of grace…

Thank you for your comments. Both the cartoon and the sentence you highlighted have been fixed. We want to create an environment where everybody feels welcome. Your rule about not sexualizing the name seems like an excellent idea.
Post reply on HN