GithubHelp home page GithubHelp logo

Comments (10)

vjeux avatar vjeux commented on May 26, 2024 1

We don't have any need for python so not directly useful for us, but I'm pretty sure people that use python would find it useful.

from pseudo.

alehander92 avatar alehander92 commented on May 26, 2024

Exactly this kind of use cases inspired me to create that project. (It's very weird because I even played with a toy web rendering engine several weeks before making the initial version of Pseudo)

I actually had a plan to add a JavaScript(probably ES6) to Pseudo compiler similar to Pseudo-Python, but I decided to get the python one to a relatively stable beta first.

If I decide to create a pseudo version of css-layout as a kind of real-world-example, would you like to help me if I have any questions about the current library?

from pseudo.

vjeux avatar vjeux commented on May 26, 2024

Nice! I'd be more than happy to answer any questions you have :)

from pseudo.

alehander92 avatar alehander92 commented on May 26, 2024

Excellent. Which of ES5 or ES6 do you think that is more suited for a JS->Pseudo compiler ? In the beginning I was planning on ES5, because I wanted it to be easily accessible for max number of people, but on the other side it doesn't make sense to fight with the legacy stuff there in 2016, when ES6 is closer to Pseudo's standard semantics

from pseudo.

vjeux avatar vjeux commented on May 26, 2024

This is a tricky question indeed. In theory I would have said es5 but as you mentioned, pseudo semantics are much closer to es6 so it makes sense to use that. You really don't want people to write function a() {} a.prototype.m = function() { } for oop instead of the easier class a { m() { } }

from pseudo.

alehander92 avatar alehander92 commented on May 26, 2024

I can work on Pseudo only in my free time, so while creating a js-to-pseudo compiler is relatively straightforward, I'll have to use pseudo-python in the near future. On the other side if I make a python version of css-layout , I'll be probably able to have Pseudo generate translations for it next week. Are you interested in Python or Go versions of the library? (I am making a list of several libs/tools as next targets of Pseudo, so if something can be useful for other people, it would make more sense for me to work on it)

from pseudo.

vjeux avatar vjeux commented on May 26, 2024

Just to be clear, I'm not interested in using Pseudo for css-layout, what we have is working well so far and don't plan on changing it. I wanted to give you an idea of existing projects that could have been using Pseudo :)

from pseudo.

alehander92 avatar alehander92 commented on May 26, 2024

I wouldn't advice you to use Pseudo too : ) I had an idea to fork css-layout and make a css-layout to Python regex transpiler similar to your current C#/Java translators in order to use it with Pseudo-Python and I was just wondering if something like that would be useful for you (pushing such a thing to css-layout upstream, not the pseudo translations)

from pseudo.

vjeux avatar vjeux commented on May 26, 2024

However, we may not include it to the repo just yet. The more languages we add, the harder it gets to actually build features as you've got to manage all those different environments which is painful :(

from pseudo.

alehander92 avatar alehander92 commented on May 26, 2024

Makes perfect sense, I'll have it in mind.

as you've got to manage all those different environments which is painful :(

That's exactly one of the things I hope to ease with the project.

Thanks for the clarifications, I'd open another issue if I have anything to ask about the porting of the library : )

from pseudo.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.