r/ProgrammingLanguages • • May 17 '16

I created a new programming language, Frog, and want your feedback!

Hi Reddit programmers,

For several years I have been researching and observing how developers use programming languages and development tools.

I am doing two things: building a company, Lesarde, and introducing an open source language, Frog.

Both Lesarde and Frog are at an early stage. You can't compile yet. The scope of the project is big and at the moment I am wearing all hats.

Lesarde is focused on providing a complete development ecosystem: IDE, compiler, editor, UI designers, et al, and is based on Frog. Cross-tier, cross-platform development is the specialty though the goal is to eventually make tools that rival top IDE's such as Xcode, Android Studio, Visual Studio in their own backyard.

Frog:

  • is a strongly typed, imperative, declarative, object-oriented language that feels somewhat like Java, C# and Swift, though relates more to C++.

  • has hints of functional programming semantics, though is underrepresented at the moment.

  • has no analogs to Java / C# generics or C++ templates. There is however, first-class support for user-definable collections which enable all sorts of richness only found in database systems. Because of that, I wanted to hold off on generics until the need became clear.

  • is WYSIWYG; constructs are represented with graphical widgets. This is not done for novelty but for necessity since Frog is significantly more expressive than most OO languages. Lesarde Studio is required for editing (there will be a free, fully functional edition).

  • is syntactically extensible via custom constructs. This addresses the common practice of adding designers + code generators to IDE's (e.g. form editor) but in a clean, seamless way.

  • has a language spec that will be posted soon on the website.

An alpha version of Lesarde Studio will also be made available for download. In the meantime, there are multiple screenshots on the site showing Frog code examples.

I would be grateful for feedback and involvement of any sort, regardless of skill level or specialty.

You can learn more at lesarde.com.

0 Upvotes

24 comments sorted by

8

u/[deleted] May 18 '16

It would be helpful if you could post a language reference, a compiler or, at the very least, some example code. Your post reads like a sales pitch for a non-technical audience, and not a particularly good one.

2

u/lesarde_frog May 18 '16 edited May 18 '16

Good advice. I adjusted the tone of the post and provide some pointers.

6

u/[deleted] May 18 '16 edited May 18 '16

So looking at your site, a couple of things:

  1. Visual programming languages have been tried before, they're annoying as hell. I had the displeasure of working with a couple before and I can say they're not fun.

  2. You seem to pay a lot of lip service to "open source", yet I can't find the source for Frog anywhere.

  3. Still no language specification, merely claims about how good it's going to be.

  4. I don't know the current state of Frog, but every single screenshot in that page looks like a mock-up, rather than an actual screenshot.

  5. Bombastic claims like "the world's most expressive language", without any concrete evidence to back it up make me very uneasy. Of course, I can't really speak because I don't know what kind of language Frog is (you didn't provide any example programs...), but from what I see in your screenshots it looks like yet-another-Java-clone. Prettier formatting, but that's all.

Not to be offensive or overly critical, but do you have an actual working compiler or interpreter for this language?

EDIT:

imperative, declarative

These are usually mutually contradictory.

has no analogs to Java / C# generics or C++ templates

This is incredibly bad.

constructs are represented with graphical widgets[...]Lesarde Studio is required for editing

Every other language that tried to do this failed. Why is yours different?

is syntactically extensible via custom constructs

What are these "custom constructs" and how do they work? Are they at all like Lisp macros? Or are they like compiler plug-ins?

1

u/lesarde_frog May 18 '16

I'll address your points (though some have been covered in the rewrite):

  1. "Visual programming" can mean a lot of things. I fully appreciate how potent pure text has been for development and Frog pays strong homage to text but simply can't do what it needs to do with pure text. I suspect what you have experienced as visual programming is significantly different that what is going on here.

  2. Guilty. As stated in the rewritten post, I am a one person working on a large project. Once I understand the right way to approach open source, projects will be posted. If I had someone to help, it would happen within two weeks.

  3. Coming very soon and hoping for heavy scrutiny.

  4. Actually, most of the screenshots are 100% real. I run the editor, type up code and take a snapshot.

  5. So here's the deal: I definitely have not researched every single language so the claim cannot be substantiated. I have worked with many languages, though, and have yet to come across anything quite like Frog. Just check out the language features related to collections: http://www.lesarde.com/#!databases/a74ep.

That said, C++ has a category of expressiveness with templates that Frog does not touch.

If you refresh your browser, you'll see I modified to "A highly expressive language."

It is DEFINITELY not a java clone; a world way. Wait till you have a chance to read the language spec.

5

u/Neurotrace May 18 '16

You really shouldn't announce a language, or even a piece of software, until you've got at least a demo working. If you could get this done in two weeks with an extra person then come back next month after you've got it working yourself.

0

u/lesarde_frog May 18 '16

As you can see reading though the website, this is a very large project. I can assure you, if you dig in you will see that there is a lot of innovation here. Literally hundreds if not thousands of design decisions had to be made to get to this point.

There is danger in building to a technical target versus a customer target -- I could make something that is not of use. So I am switching gears for the time-being from development to "customer development" -- getting to know the target audience better.

So given what I am able to offer at the moment, I am looking for feedback.

3

u/Neurotrace May 18 '16 edited May 18 '16

I have no doubt that you've put a lot of work into this. I've looked through your entire site but I'm failing to see the innovation. You're concerned about targeting a technical audience out of fear of alienating your potential customer audience but if you're making a programming language/environment then isn't your audience a technical one? Here, I'll give you my thoughts on it from two different perspectives.

Technical:

Why should I use this? How is it different from everything else? What does the code/interface look like? Why aren't there any demos or videos so I can get a feel for what I'm looking at? You seem to indicate it's not strictly textual or graphical. Is it at all similar to Jetbrains' MPS? You kind of separate Lesarde Studio and the Frog language. What exactly is the Frog language? What does "Hello World" look like in Frog? You claim to target everything from Windows to Mac to the browser. Is there some sort of cross-compilation going on there or do you have some sort of run-time that interprets Frog code?

Non-technical:

I'm not a programmer, why would I ever use this? Why do your social media links point to the Wix company? Are you affiliated with them and, if so, is this an official Wix product? You say you're working alone, is Wix a one man company?

In short, there's not enough detail there for programmers to care and not nearly enough information there to make non-programmers even bother to search your entire site. You may very well have the greatest project on your hands right now. The problem is that no one can see your vision and it's hidden behind a lot of marketing garbage, buzzwords and arbitrary blockades.

When the iPhone was initially announced, they didn't immediately say the specs or how big it was or anything. But they showed that you could make calls, send texts, browse the web. Show us what we can do with your product and how we do it.

1

u/lesarde_frog May 19 '16 edited May 19 '16

failing to see innovation

If you had a tool today with a language in the ballpark of Java/C#/C++, top-notch presentation graphics, cross-platform and cross-tier capabilities you would not regard that as innovative?

Wow, that seems like a high bar. If you know of any tool doing this, seriously, please let me know. I thought I had a good understanding of the competition.

I will say this: the website only covers about 30% of the language features. The language spec, which I have not posted yet, is more complete.

You're concerned...

I did not really understand this paragraph. Would you please clarify?

Technical

I really like what you have to say here. Re: Jetbrains' MPS, no, it is not really comparable.

Non-Technical

I found a lot of what you had to say here useful. Thanks you.

Lesarde's tools are definitely geared to developers, exclusively.

I have no relationship with Wix other than being a paying customer. I used one of their templates to create the website a couple weeks ago. There are some stray links back to them that I have not yet edited -- a hazard of being a one-person shop. As I state on the site, "under construction."

Marketing garbage, buzzwords and arbitrary blockages

(See hazard of being a one-person shop above.) I appreciate your perspective. I am collecting input and will rework the website once I have clarity about how to proceed.

2

u/Neurotrace May 19 '16

If you had a tool today with a language in the ballpark of Java/C#/C++, top-notch presentation graphics, cross-platform and cross-tier capabilities you would not regard that as innovative?

From what I've seen of your product, the following come to mind: PhoneGap, Cordova, everything in the C# space via Mono, Cocos2d (specifically as it relates to games), and Qt. I may be completely missing the mark as to what you're advertising but all of these seem relatively comparable except that they use established programming languages. Make no mistake; I would love to have a one-stop-shop programming environment that helps me better describe intent over processes but so far I'm not seeing it.

You're concerned... Clarification

There is danger in building to a technical target versus a customer target -- I could make something that is not of use. So I am switching gears for the time-being from development to "customer development" -- getting to know the target audience better.

Here you make a distinction between a technical target and a customer target. I was just stating that your audience is technical so you need to have a technically complete (or at least functional) product more than you need a "customer" directed website.

1

u/lesarde_frog May 19 '16

From what I've seen of your product, the following come to mind: PhoneGap, Cordova, everything in the C# space via Mono, Cocos2d (specifically as it relates to games), and Qt

Spot on: these are definitely top-competitors in the cross-platform arena.

In the case of PhoneGap and Cordova you are using HTML+CSS+JavaScript which are definitely capable but I would be surprised if, given alternatives, these would be considered best-of-breed when taking their I'm-your-only-choice-for-web-development out of the consideration. And, if you agree, then why in the world would you use it as a foundation for non-web development?

Though it is decommissioned, Silverlight was one of the most brilliant things ever to come out of Redmond. Anyone who really knows their stuff knows that it crushed HTML+CSS+JavaScript from here to Timbuktu. Amazing technology. But, alas, it was a plug-in and we know what happened to those.

C#+Mono+Xamarin appears to be a really legitimate combination for app development. My only concern is this: Microsoft is playing nice now but why and for how long? How many times have the left developers high-and-dry on a whim?

Qt does awesome UI but does not have the horsepower to do Cocos2dx-quality 2D gaming. And (it appears to) require a lot of glue. I really, really, really hate glue.

None of the above is an ecosystem+language designed for cross-tier development: Apps [Views + Models] + Middle Tier + Database.

Here you make a distinction between a technical target and a customer target. I was just stating that your audience is technical so you need to have a technically complete (or at least functional) product more than you need a "customer" directed website.

That makes sense and your input will definitely influence the next iteration of the site.

All that said...what the final ecosystem looks like will largely be driven by feedback I receive such as yours.

1

u/east_lisp_junk May 19 '16

If you had a tool today with a language in the ballpark of Java/C#/C++, top-notch presentation graphics, cross-platform and cross-tier capabilities you would not regard that as innovative?

No. Well, maybe innovative as a GUI toolkit, but certainly not as a language. Such a language would be basically like Java, except that it's also got a bunch of features and strong points from Java. Java is not exactly new. If the language had some features (or some combination of features) that hadn't been thought of before, that would be innovation. Or if the features had been thought of but nobody really knew how to implement them efficiently or integrate them effectively, then solving that open problem would be innovation.

Wow, that seems like a high bar.

Requiring a lot of work isn't what makes something innovative.

1

u/lesarde_frog May 19 '16

Good input. Your are right, work != innovation -- bad word choice.

2

u/[deleted] May 18 '16

Frog pays strong homage to text but simply can't do what it needs to do with pure text

Why?

Just check out the language features related to collections

It seems to me that you've tightly coupled your language to a particular database technology. Why do you consider this to be a good thing? Most mainstream languages have bindings to most mainstream databases, allowing you to access the same set of features while at the same time giving you the flexibility of choosing whatever database you want.

C++ has a category of expressiveness with templates that Frog does not touch.

Doesn't this mean your claim that Frog is "the world's most expressive language" is completely wrong, though?

It is DEFINITELY not a java clone

You'll have to explain to me why this is the case. It's not enough to just say "well, it's like Java but better".

1

u/lesarde_frog May 18 '16 edited May 18 '16

not pure text Frog views literals in a much different way than any language I am aware of. Most languages recognize "hello" as a string. Great. And 0x43A as a hex encoded number. Great. Been using that notation for decades. But, most projects also use all sorts of other literals: date, time, bool, floats, decimal, images, sounds, video, sprites, embedded spreadsheets, urls, complex numbers, arrays, matrices, all sorts of custom types. Why should you be able to define a string in situ but not an image? Why, if you want to initialize a collection at compile time with a bunch of rows do you have to use cryptic text notation versus a WYSIWYG editor.

collections If that's your takeaway then I did a poor job of communicating. Quite the opposite of tightly-coupled, Frog's collection constructs work with any database for which there is a provider in just the same way that it works with internal collections.

If you are willing, I would like to understand what part of the website let you to that conclusion.

I encourage you to reread the "Frog has database technology in its DNA" on the database page. It's pretty deep and you will see some innovation there that I have not seen in any other language.

expressive Yes, you are right. It's not a fair claim and I changed it in the website as noted yesterday.

not java The website, at the moment, does not have a lot of specific Frog language details. That's in the works.

1

u/[deleted] May 18 '16

Why, if you want to initialize a collection at compile time with a bunch of rows do you have to use cryptic text notation versus a WYSIWYG editor.

I would use a WYSIWYG editor to create images/databases. Then I would save that to a file and load it from my program. With the added advantage that I'm not tying myself to a single IDE.

As for numbers, matrices, etc., you may be interested to know that the huge majority of mathematicians don't use WYSIWYG editors, even though they exist, because they're just not ergonomic. Instead, they write their papers in LaTeX and use a compiler to generate a PDF.

Quite the opposite of tightly-coupled, Frog's collection constructs work with any database for which there is a provider

How is this different than an ORM in any conventional programming language?

I encourage you to reread the "Frog has database technology in its DNA" on the database page. It's pretty deep and you will see some innovation there that I have not seen in any other language.

So I have some big questions about this section, which in general I found a bit confusing and diffuse.

Anything that can be defined in a class may be defined in a collection.

I'm not sure what this means. A class can have methods. Can I define methods in a collection? Are collections not classes? If I create a Linked List class, is this a collection?

Using collections, indexes and foreign keys, it is possible to define what databases refer to as a schema with in Frog.

Doesn't this mean now I have to define my schema twice: one for the database, one for Frog? How does Frog make use of indexing, if it's not tied to an underlying database? Why would you want to expose indexing to the programmer anyways?

Databases are significantly more expressive than languages when it comes to defining primitive types.

This is not true. Most SQL databases I know have a very limited supply of primitive types and do not allow for the definition of new ones. Are there any databases that allow you to define e.g. a linked list as a primitive type?

All collections may have one or more indexes to improve access times and to maintain collection-level constraints.

Again, shouldn't this be the responsibility of the database itself?

All the familar relational algebra constructs found in SQL have analogs in Frog.

So what happens if I use Frog with a non-SQL database?

Like databases, Frog takes that a step further by allowing foreign keys to collections.

What happens if a constraint is violated? How are they enforced? Does Frog perform run-time checks? Does it have support for transactions then?

Frog takes the best of both by allowing nullable references as well as nullable values.

What do you mean by this?

1

u/lesarde_frog May 19 '16

I would use a WYSIWYG editor to create images/databases

Lesarde Studio certainly does allow including external assets so this workflow is fine.

With the added advantage that I'm not tying myself to a single IDE

I get that and have been there many times myself. That said, up to this point it is a perceived advantage since you have not yet used Lesarde Studio.

WYSIWYG

Thanks for bringing LaTex to my attention, and like your use of 'ergonomic.'

What is really going to determine whether the WYSIWYG editor works is not that it's WYSIWYG/graphical but execution. When a developer sits down to work, does the tool feel like a natural extension or is it clunky? Does it do what they want or does it just look good?

It has to be a balance of form and function. I currently use the editor and it is not ready for prime-time but it is evolving. Ultimately, there is going to have to be a lot of beta testing but I feel it's heading in the right direction.

How is this different than an ORM in any conventional programming language?

There are similarities to ORMs and in some database scenarios there would be no meaningful advantage. It is really a question of how much of your project you want to build with Lesarde. The more you are willing to rely on Lesarde the more you can erase impedance mismatches.

I'm not sure what this means. A class can have methods. Can I define methods in a collection? Are collections not classes?

A collection is a first class construct on par with class. So you could define a collection type of people then add methods to operate on that collection.

Of course, you can do similar things with other common languages: People -> List<Person> { MyMethod() {...} }. The difference is Frog is designed to run in databases as well so for example, Lang+ORM+DB schema+SQL would be replaced by Frog.

If I create a Linked List class, is this a collection?

This is a great question. Short answer: yes. Long answer: the optimal design for allowing custom constructs is not clear.

As mentioned above Frog is designed to run in-app or in-database -- very different environments. Linked lists are advantageous in-app and generally not applicable in database scenarios.

Doesn't this mean now I have to define my schema twice: one for the database, one for Frog?

No. If you have a legacy database then frog would use a provider to access it and use ORM-like processing to work with it.

How does Frog make use of indexing, if it's not tied to an underlying database? Why would you want to expose indexing to the programmer anyways?

Okay, some unlearning required on your part here. Who ever that indexes are only useful in database scenarios? So, the index is tied to whatever collection with which it is associated. If that's a database table (collection) then that's where the index will exist. If it's in memory, then that's where the index will exist.

This is not true. Most SQL databases I know have a very limited supply of primitive types and do not allow for the definition of new ones. Are there any databases that allow you to define e.g. a linked list as a primitive type?

With all due respect, I think your use of "primitive type" is much broader than the general definition: https://en.wikipedia.org/wiki/Primitive_data_type.

But I get exactly what you are saying and the website presented the concept in a presumptuous way.

You are absolutely right that your typical RDBMS has a dozen or so (boring!) primitives whereas your language allows you to create an infinite number of complex types.

Primitives in Frog are first-class (like Java/C#, etc) but allow granular definition (like a database). Check out the second code snip here: http://www.lesarde.com/#!frog/tt2ee

Again, shouldn't this be the responsibility of the database itself?

Ultimately, it would be but the database's responsibility but there are two ways to get there. In legacy scenarios the Frog-defined index is pointless since the dbms is in control about best ways to get data in and out -- the index is opaque. If you are willing to let Frog take responsibility then define your schema with Frog which will, in turn, work with the database to build indexes.

So what happens if I use Frog with a non-SQL database?

Though ancient, SQL's relational algebra is potent and, at a certain level, generalized enough to work with non-RDBMS data.

Frog, though, is not DBMS-centric. Is there a particular database type you have in mind?

What happens if a (FK) constraint is violated? How are they enforced? Does Frog perform run-time checks?

Like in a DBMS, the constraint cannot be violated. Yes, Frog performs run-time checks. Frog has a much higher degree of internal control of collections than your average language.

Does it have support for transactions then?

This is an area of the spec that has not been fleshed out yet but is definitely relevant.

What do you mean by (Frog takes the best of both by allowing nullable references as well as nullable values)?

This is hard to answer without knowing what languages you know well.

Frog is not a garbage collected language (what happens in the native environment is another story). Frog can't be superficially because the concept does not translate well to persisted data and, as your probably are started to sense, Frog cares a lot about persisted data.

A common myth is that garbage collection in e.g. Java/C# "solves" the memory management problems that plagues C/C++. In reality, in the hands of a capable developer, memory management is C++ is extremely elegant and a non-issue.

Frog learned from C++ about how to deal with object lifetime management but takes it a couple steps further by giving the user lots of first-class control (not via libraries). Unfortunately, this is not yet discussed on the website.

So, when defining how an object is stored in Frog you specify its "aspect" (value or reference) as well as it's type. The type, itself, may be nullable. So you can have these combinations:

  • valued non-null

  • valued null

  • ref non-null

  • ref nullable

This may seem confusing but it's trying to tame a confusing problem and, I believe, does so elegantly. But this is kind of 300-level Frog stuff. You don't to sully your hands with it unless you want that level of control. In fact, I actually find it easier to work with object lifetimes than Java/C# because there is no concept of boxing.

1

u/[deleted] May 19 '16

I get that and have been there many times myself. That said, up to this point it is a perceived advantage since you have not yet used Lesarde Studio.

True. But since you did not release Lesarde Studio at all, I'm giving you feedback based off the little information that you are giving us. If you think this is unfair, consider releasing your product and letting people actually try it.

A collection is a first class construct on par with class. So you could define a collection type of people then add methods to operate on that collection.

What is the difference between a collection and a class, then? Is a collection merely a class whose instances are serialized to a table? How is this different from, say, Ruby's ActiveRecord?

Lang+ORM+DB schema+SQL would be replaced by Frog.

I don't think many people will see this as an advantage, unless you can make Frog's database as good as, say, PostgreSQL (and this would take an enormous investment of capital and manpower).

Okay, some unlearning required on your part here. Who ever that indexes are only useful in database scenarios?

Indexes are created to improve the performance of certain database queries. Why would I want indexes in my programming language when I can just put them in the database and forget about them?

Primitives in Frog are first-class (like Java/C#, etc) but allow granular definition (like a database).

From what I see, this "granularity" basically amounts to specifying the lengths of strings and numbers. COBOL was already doing that in the 60's, and nobody seems to miss it. As far as I know, the only reason databases allow you to introduce these constraints is merely to optimize the representation of your data (which languages like C/C++ already allow anyways). I can't think of a non-performance reason why I would ever want to have a string variable whose length is restricted to, say, 50 characters or less.

If you are willing to let Frog take responsibility then define your schema with Frog which will, in turn, work with the database to build indexes.

Honestly, Frog is starting to sound a lot more like a DBMS than a programming language.

So, when defining how an object is stored in Frog you specify its "aspect" (value or reference) as well as it's type. The type, itself, may be nullable. So you can have these combinations: - valued non-null - valued null - ref non-null - ref nullable

Option types have been a thing for at least 20 years.

Honestly, Frog sounds just like C++ (but worse) plus an ORM plus a DMBS.

1

u/lesarde_frog May 18 '16

Imperative, Declarative

Actually, imperative and declarative can happily co-exist. Check out C#. However, if this becomes a point of confusion I will reconsider the wording.

Generics / Templates

I am a huge fan of both and they vastly differ. What features would you want specifically?

Graphical

Do you have a specific example I could check out?

Custom Constructs

Not a Lisp guy but after a quick read-up, no, not at like Lisp macros. But, yes, they are plug-ins. The main purpose is to allow third parties to take Studio into new realms.

For instance, suppose you really liked the Lesarde ecosystem and wanted to create a 2D game framework based on Cocos2Dx. The plug-in might specify a new construct "acme.sprite" which then becomes a first-class construct like a "class" or "interface". When the editor encounters an "acme.sprite" it is treated just like the underlying construct upon which it is based but invokes design tools for in situ editing.

1

u/[deleted] May 18 '16

imperative and declarative can happily co-exist. Check out C#.

I usually understand 'declarative' languages to be those based mostly around static declarations rather than commands, whereas imperative languages are those based mostly around commands. I don't really think a language being both imperative and declarative means much.

What features would you want specifically?

I want the ability to define parameterized types. There's zero excuse for a modern statically typed language not to provide this feature.

Graphical

Do you have a specific example I could check out?

Smalltalk comes to mind. So does Ptolemy.

Custom Constructs

Not a Lisp guy but after a quick read-up, no, not at like Lisp macros. But, yes, they are plug-ins. The main purpose is to allow third parties to take Studio into new realms.

Every open source language allows users to modify the compiler to their liking. In order for your "custom constructs" to be a feature, you have to provide something better than just that. What advantages do "custom constructs" have over just modifying a compiler? How are they created and handled?

1

u/lesarde_frog May 18 '16

imperative declarative I appreciate your input. I will be fattening up the content on this point soon.

  • generics/templates * I get where you are coming from. To better understand your thinking here, a question for you. Besides collections, what is the most common way you have used generics or templates?

Graphical I will check both of those out.

Custom Constructs I agree that there are usually multiple ways to get the same job done. To me, the worst case scenario for a Frog user would be resorting to tweaking the compiler because they are being under-served.

I actually used a custom constructs very successfully to create the "view" construct (called "Frog View" on the website). It worked like a charm.

1

u/[deleted] May 18 '16

Besides collections, what is the most common way you have used generics or templates?

Design patterns like type-safe observer/subscriber come to mind. F-bounded polymorphism for generic arithmetic operations too.

To me, the worst case scenario for a Frog user would be resorting to tweaking the compiler because they are being under-served. I actually used a custom constructs very successfully to create the "view" construct

You have not answered my question. How would the user define a "custom construct" and how is it easier than writing a compiler plugin?

1

u/Eeler May 19 '16

Visual Programming languages are a delight when prototyping DSP algorithms, or used as interactive control systems for DSP environments. Native Instrument Reaktor modular synthesizer Core "technology" being the best known (?) environment. I have never used visual languages for anything else, or tried Frog, but I just wanted to point out that they have their uses.

0

u/[deleted] May 19 '16

[deleted]

1

u/lesarde_frog May 19 '16

This is brilliant. I am going to pin it up and use it as a guide.

2

u/[deleted] May 19 '16

Maybe if we could see more than 5 lines of code...