On Javascript and simplicity

If you still have doubts about Javascript: becomingbeing the most popular programming languge, its probably because you are not exposed enough to the web-based Applications paradigm shift efffects.

Not only there seems to be more javascript code (in terms of sheer volume) out there, its also about the number of users using applications that are driven by it, most of them not really knowing, or wanting to know, what it is, but thats an entirely different story for someone to tell, again.

We are relying on 4 primary programming languages. C/C++ for backend 'stuff', PHP, Javascript and SGL for frontend/light-weight 'stuff'. Well, we do use bash scripting for _so_ much systems and operations 'stuff', some python and perl here and there, as well as some java and Flash/AS3 for more frontend 'stuff'.

SGL is our home-grown programming language, it stands for Switch Glue Language, Switch being the main framework/library everything - all services, tools, other libraries, etc - are based on. The idea is that we can use this language anywhere we want to script operations and 'glue' things(services, resources, operations, etc) together. Currently, its used for two major services.

Our frontend developers eventually have to learn, or at least get familiar with, all those three main frontend languages, PHP, Javascript, SGL. Interestingly enough, Javascript code output surpassed PHP output, in terms of volume, mostly because our apps got more functional, fancy, whatever cool bang you get from client-side logic on the browser -- I wouldn't know really, I don't know much about frontend development, our main frontend team do though and that's all that matters (partial unordered list: phaistonian, hatdi, sug, stelabouras).

Given that SGL has been long due for a rewrite ( the currenty language syntax and semantics ), I thought I put aside some time to rwrite it, this time around using Javascript language syntax and semantics so that, when its ready, we could replace PHP with SGL thus, effectively, switching from 3 frontend languages to just one. Our developers, current and future ones, would only need to learn a single language, which may be the greatest benefit to this shift, but it sure is not the only one.

This will be my third attempt to writing a programming language ( SGL being the second, PASTE was the first.. those were the days) and thanks to Javascript being a standard, its a 'simple' enough matter of writing an efficient enough VM that will run the emitted bytecode ( I am toying with the idea of being able to target PHP and other languages, eventually, generating - say, PHP code from SGL code and so on ).

So far the lexer, most of the parser and some parts of the VM are in place. Hopefully, there will be enough time and sustained motivation to keep this going (its a side project, so it can't really preempt current major Phaistos projects ) until its ready, perhaps by the end of the month.

Simplicity is the ultimate sophistication- Leonardo da Vinci

3 Comments for “On Javascript and simplicity”

  1. # Sakisk

    avatar

    Πολύ ενδιαφέρον project! Περιμένω να μάθω νέα για την εξέλιξή του

  2. # Spiros S.

    spairus

    You're always up to something, aren't you! Greetings to Crete and Phaistos :)

  3. # Αλέξης Στρατουδάκης

    tidur

    this sounds like awesomeness in the making - again! ;)

Το σχόλιο σας

Post as anonymous

HTML tags are not allowed for comments on this blog


Mark Papadakis

Moires, Heraklio, Crete, Greece
Bytes conjurer. Seeking knowledge 24x7
About MarkP

Favorite Quotations

  • Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works best.
  • Focus is a matter of deciding what things you are not going to do.
  • Simple is Beautiful
  • In the information age, the barriers [to entry into programming] just aren't there. The barriers are self imposed. If you want to set off and go develop some grand new thing, you don't need millions of dollars of capitalization. You need enough pizza and Diet Coke to stick in your refrigerator, a cheap PC to work on, and the dedication to go through with it. We slept on floors. We waded across rivers.
  • Fear is the path to the Dark Side. Fear leads to anger, anger leads to hate, hate leads to suffering.
  • Easy is what I know, difficult is what I don't.

    Activity Log

  • 18.03 20:28  @stevedekorte : I know at least one person close to me (@stelabouras) who 'd go to great lengths to be granted beta access to this game :)
  • 14.03 21:12  Unity 3D (http://unity3d.com/) is one of the most promising,exciting and important technologies/products of this gen.Definitely one to watch




Search