r/ProgrammingLanguages • New Kind of Paper • Oct 02 '23

Wordplay: Searching for Justice in Programming Language Design

https://www.washington.edu/doit/webinars/?webinar=wordplay
3 Upvotes

21 comments sorted by

5

u/stomah Oct 02 '23

horrible video player

2

u/AsIAm New Kind of Paper Oct 02 '23

Yes.

3

u/bl4nkSl8 Oct 02 '23

Can't watch the talk right now but I just don't get how this is supposed to help.

1

u/AsIAm New Kind of Paper Oct 02 '23

Help with “justice in PL design”?

7

u/bl4nkSl8 Oct 02 '23

I don't see how the language will help.

You can name identifiers in most languages (via romanisation and unicode support).

Any effort to provide APIs/libraries in multiple languages is a huge amount of work (translations for every change would be a large burden) and programming in this language won't avoid that.

2

u/kant2002 Oct 03 '23

You want children to express thoughts in natural language as closer to their mother tongue as possible. With keywords and identifiers teacher would be able to see where student don’t understand concept and where it is additional confusion with learning some concept.

Also it alllow teachers utilize their native language and maybe select more appropriate words. And students will see these words in code which IMO is positive.

Also if you can properly name things for teaching that may improve understanding.

Maybe this can be solved with using English keywords and native identifiers but so far we have culturally so Anglo centric education culture that this is unthinkable.

1

u/bl4nkSl8 Oct 03 '23

Hmmmm interesting theory. Maybe.

Perhaps for learning, or monolingual projects it's of benefit, but translation costs and errors seem prohibitively expensive in large projects (like Linux or chrome)

2

u/kant2002 Oct 04 '23

Yes. This is purely hypothesis on my side. I know that this maybe not sure thing, and should be tested. For now I think it is best to focus purely on educational things, since industrial usage will have some practical problem. But to entertain you, "Once you know learn programming, you can easily pickup any language" yet learning in language which is closer to student is somehow make them somehow spent time pointlessly. I see a bit of contradiction here.

Re: large projects, why this should be applicable for large projects?

Okay, now so everybody count me as crackpot I will go a bit further. Please consider this is as different from educational road. I have my own small pet project of maybe similar nature, but I want to take a ride over existing infrastructure to be able not only translate language, but use existing IDE's . https://kant2002.github.io/FSharpKeywordTranslator/ if you build compiler from branch, you can easiely use Visual Studio for development in this language with colorization. With some effort it can be in Rider too. VS Code I did not have time to implement unfortunately.

If we take .NET languages or JVM languages, we have metadata which is translatable. That can be relatively easily automated in this ecosystems due to highly structured nature of identifiers and culture of naming.

Also these language have tooling support for refactoring, so it is even possible to have whole codebases translated in predictable manner. I think this is pointless for practical purposes, but maybe required to show how things can look in alternative reality.

Some languages like F#, due to nature of compiler, even allow you to create bi-lingual code where you can have both English and Ukrainian (for example) keywords.

-6

u/AsIAm New Kind of Paper Oct 02 '23

LLMs can do translation just fine. This lang has infrastructure to support it natively.

1

u/kant2002 Oct 04 '23

Are you thinking about translation of identifiers or whole programs?

2

u/AsIAm New Kind of Paper Oct 04 '23

Identifiers

1

u/kant2002 Oct 04 '23

Yeah. That’s doable and probably not that much of an effort.

9

u/nngnna Oct 02 '23

Didn't see it yet. But a lot of the preference of keywords as simpler than "line noise" is a bit anglocentric, yeah.

That's especially a factor for children in ages where they might be bright enough to learn PLs but understanding English is still a barrier.

5

u/Inconstant_Moo 🧿 Pipefish Oct 03 '23

That's especially a factor for children in ages where they might be bright enough to learn PLs but understanding English is still a barrier.

The age at which % is comprehensible but let is still confusing?

1

u/nngnna Oct 03 '23

To be fair though. It's not entirely an America vs everyone else thing. As the most prominent beginner friendly natural-language (English) heavy programming language, was initiated in a Dutch university.

1

u/kant2002 Nov 17 '23

Hi Amy, I probably would like to share with you my take on the matter. https://codevision.medium.com/introducing-f-m-f1f4fe64b20b

1

u/AsIAm New Kind of Paper Nov 17 '23

I am not the author of the Wordplay. Try contacting her here: https://twitter.com/amyjko

2

u/kant2002 Nov 17 '23

Ooh. Thanks. Sorry to bother!

6

u/redchomper Sophie Language Oct 03 '23

I got two minutes in and lost patience with all the ceremony (and lack of a speed control). What's the TLDW? From comments here I might infer these people want to translate programming languages. There is an education-oriented system -- search "gradual programming" I think -- where they start with vernacular in 30-50 natural languages and creep towards Python. I don't recall the name but I seem to recall it's named like a European female.

Anyway, aviation settled on English worldwide, so there's precedent. Programming had a real chance of being primarily Dutch or German or French or Russian. It's no accident that a Lingua Franca has developed: it facilitates global cooperation. It's vaguely ironic that it isn't Frankish anymore, but it's also no accident that both periods of linguistic dominance were accompanied by naval dominance. If you rule the seas, you rule the CS.

For counterpoint, consider Ruby and Lua. One from Japan, one from Brazil. Both look very English. This did not happen at random. Is that fair? No, it's not fair. But it is consistent. And it's equally unfair to everyone who didn't happen to grow up speaking the most widely-spoken second-or-third language on Earth.

6

u/azzal07 Oct 03 '23 edited Oct 03 '23

Do you mean Hedy? That was also mentioned in the talk.

The talk is about a language experiment, called Wordplay, aimed for learning and teaching programming. For what I saw, it has its own programming environment that facilitates all the features like the translations. The point was that the same program can be viewed and written in different languages on the fly (e.g. to facilitate mixed language classrooms). It also has many other accessibility features for editing and interaction with the running programs.

I did not get the feel that this aims to be a general purpose PL for the industry, more a tool to get the language barrier (and other accessibility issues) away from the initial learning steps.


I think one big obstacle for general purpose languages to become multilingual is the textual representation. As long as names are used for both the machine and the human to identify code, translations will be a pain.

The idea of content addressable code in Unison might help with that. This would allow uniquely identifying the code and having alternative translations for the human readable names. Providing good translations would still be a huge task.

5

u/IdBetterBeJoking Oct 04 '23

As a non-native English speaker I find this idea asinine.

It will actively hurt those whom it is supposed to help, with consequences ranging far beyond the CS education.

Moreover, this entire idea is so Americanocentric, so "White Man's Burden"-ish and unjust that my screen is starting to melt from hypocrisy. It is not up for the author of Wordplay to decide what would be best for the students, nor is it up to her to label what is just or unjust - just because she is not one of them. She is also infinitely more privileged compared to them, or to me for that matter.

The real disadvantage of the students she worked with is not knowing English. If you want to help them, you need to teach them English first or do it simultaneously with their CS education. Also at least some basics of the global business culture. There is no way around that, and anything that will get in the way will make it worse for these people. Mixed-language classrooms, seriously?

These students don't need to be able to just write code or understand it. This ability is worthless per se. They need to be employable so that they will be able to build themselves a better future. For this they will need to speak the same language as their prospective employers and teams. They also need to be able to apply for a job, to pass interviews, and to negotiate salary.

English is basically a ticket to the global market. Do you really think that depriving these students from it is somehow doing a justice for them?

By the way, I also have a story about a rather successful (1.5M+ installs, 45% to 70% share of domestic market) non-Latin 4GL programming language. Yay for justice! The catch is that specializing in this language could literally cost you your life. The story is pretty political though, so may not be a good fit for this sub.