Giter Site home page Giter Site logo

Vegey about flash HOT 46 OPEN

robert-mcdowell avatar robert-mcdowell commented on July 29, 2024
Vegey

from flash.

Comments (46)

 avatar commented on July 29, 2024 1

astro new and astro init commands are already working, heheheh.

$ git clone https://github.com/alien-as/astro
$ cd astro
$ npm link

Now:

$ astro new particle-control
$ ls -a || dir
  • src
    • main.as
  • .gitignore
  • astro.toml

Anyway, I don't know if I can work on this framework. I live with my mother and 3 siblings and they keep saying I do nothing, but that's not it. I should finish some projects, be them in AS3-AIR.

The thing is that Rust doesn't still have a good library like Flash's display. Just that... If I touch inheritance etc. in Rust, then I'll delay again with my things.

from flash.

 avatar commented on July 29, 2024 1

My new parser is getting quite easier to understand. I'm using combinating methods, which touch a error stack, that's in turn moved to individual script's error stack thru a final parse method.

While I was thinking on multi-threading, I solved to strip unique_ptr programming, because it messed up the language's ideas, and instead can be done with addressof plus a system-level API (if one needs to use ActionScript as if it were C++).

Overall it'll look like Swift, but based on ActionScript 3.0. E4X changes will be kinda cool.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

Sounds good!, keep it going, tell me when you have a working version of the compiler

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

everything in time, take your time, the most important is to be strict with every piece of code.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

just keep in mind that more it will be like Actionscript, more you will get developers from.... ;)

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024
  • Too many dBs from my neighbours side. Gotta call the police.
    put ears plug, better ;)
  • So I'm stuck at Vegey btw, but I'm getting everytime near to bytecode...
    always write a doc text with all options possibles with pros and cons

from flash.

 avatar commented on July 29, 2024

I'm enjoying working in Vegey though. ¯_(ツ)_/¯ ... But when I unfortunately hear bad sound from house's exterior I don't focus well on what I'm doing.

I overloaded city's carnaval sound with Dragon's Curse. Carnaval and neighbours sound is

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

I'm always working, sleeping with this
https://ch.iherb.com/pr/Hearos-Ear-Plugs-Sleep-Pretty-in-Pink-14-Pair/71061?gclid=Cj0KCQiAk-7jBRD9ARIsAEy8mh5Erff2UAcdTyXKeZKSKFRDsW-IDyr-e5YMs9_28Ja2JC6vKmS5jokaAuImEALw_wcB&gclsrc=aw.ds
with those I don't care what's outside...

from flash.

 avatar commented on July 29, 2024

Destructuring patterns:

  • o = {x: dx, z: dz} = next() (two assignments; right-associative; result of next() is used in a pattern and then assigned to o)
  • ([ {x: ax, y: ay} ]) => bonus::process(ax, ay) (lambda that takes coordinates from the 1st element of its parameter and alias them with a a prefix)

Vegey has no tuples (like (x, y, z) in Rust or Python), but it supports structs ([Data] classes) and ES-like recursive destructuring.

I could add them, but there's no perf. benefit and would cluster up semantics. The syntax would be boring too.

Tuples (those in Rust, Cone or Python) are immutable arrays with mixed types (e.g. (Type1, RandType, float), where members aren't named and thus you do vec.0 to access x-coord in vec = (x, y, z), or you use destructuring:

for (x, _, _) in locations {
    println!("{}", x);
}

In Vegey it'd be like:

for each (var {x, _, _} in locations)
  trace(x)

So it looks good, yeah? ActionScript-like, super-efficient.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

LGTM, nice job!, the most important now is once you have all tests and components done
a good article on your git hub with a good and clear example thus to attract other developers and create a team.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

is this https://github.com/jedisct1/wasmonkey can be an inspiration?

from flash.

 avatar commented on July 29, 2024

Replacing native functions? A biiit

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

https://github.com/jedisct1 has good projects with rust,....

from flash.

 avatar commented on July 29, 2024

Rust is good too, but just the APK development is vague :/

android-rs-glue depends in NDK/SDK and I can't have it in my phone to build and test apps.

I hope one day I can use Rust :| I just wanted to write my gfx lib, but right before a APK generator? No interest on doing that :v

from flash.

 avatar commented on July 29, 2024

You're settled to watch all subsequent repos in alien.as, hmmm...

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024
  • I live with my mother and 3 siblings and they keep saying I do nothing
    well, the big dilemma of the developer and family/friends who don't have a clue of what is coding, fought 20 years on this matter ;)
    do what you need to do ! :)

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

know this?
https://github.com/glium/glium

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

cannot use npm on my server, fedora 28 did not update npm with openssl 1.1 :(

from flash.

 avatar commented on July 29, 2024

Did you try npm i -g npm? I don't know exactly openssl... But it looks to be on all Linuxes.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory
if I recall nodejs is still stuck with openssl-1.0.x and Fedora 28 removed it for 1.1.x.
I'm super busy for now... :(

from flash.

 avatar commented on July 29, 2024

These kinds of system dependencies are silly... Unfortunately :\/

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

A good article from 2011, maybe mature today
https://promethe.io/2013/09/23/from-actionscript-3-to-c-2011/

from flash.

 avatar commented on July 29, 2024

But I think in that case one can just target ANE from C++ code and invoke a native entry function from AS.

Developing Native Extensions for Adobe AIR

from flash.

 avatar commented on July 29, 2024

Wohow, static const flash.utils.ByteArrays are thread-unsafe.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

bytearray is be design shared :)
mutex can manage the threads runninng
https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/concurrent/Mutex.html

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024
  • But I think in that case one can just target ANE from C++ code and invoke a native entry function from AS.
    yes good idea

from flash.

 avatar commented on July 29, 2024

@ROBERT-MCDOWELL But in case I needed non-stream operations on ByteArray, so that I'd not need thread-locks, e.g.: ba.readUnsignedInt(i) rather than just ba.readUnsignedInt(). The parsers I'm building could be rant simultaneously because they don't touch each other.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

ha ok :)

from flash.

 avatar commented on July 29, 2024

That's another downside of Adobe AIR. But I weren't supposed to multi-thread, because I usually don't.

Wait, I forget workers are isolated... So I won't re-use my lib between threads and I'll also not multi-thread for now.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

there still are workers, a kind of pseudo multithread...

from flash.

 avatar commented on July 29, 2024

I mean, workers can't re-use same objects easily. It'd be like hacking AIR runtime.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

only one way, reverse engineering so :)

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

btw, there is no true multithread available on web development, because it's unsafe

from flash.

 avatar commented on July 29, 2024

Yep. Fortunately low-level APIs are possible in any language!

This is from this year: WebAssembly Threads ready to try in Chrome 70

I think they're unsafe for developer 'pitchfalls'. E.g., when nullying weak references in collections threads may overdo something in a internal race condition... Something so, but they'll never corrupt the browser as they're sandboxed.

from flash.

 avatar commented on July 29, 2024

Again I just got an idea and AS-N (actual language name) will easily support multi-threading. It's very fun... Types will be either atomic or solo-threaded.

In Rust you've some Arc (atomic reference counters), sync::Weak (weak version of Arc) and some functions that implement Sync + Send traits. In case I'm planning to just have a IAtomic interface in the unnamed package ;)

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

Great idea, I like AS-N too!. if you succeed real multithread for a web language so most of developers will find a great interest to it. But I still not catch if the browser is the limit or not

from flash.

 avatar commented on July 29, 2024

Adobe AIR would be more important as a first target, because people will be able to directly take the compiler and produce apps with it (probably with some package manager).

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

ok anyhow there will be always bridge between air and web app.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

here a nice blog about code optimization
https://jacksondunstan.com/

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

more and more companies start to wakeup about the 2020 Flash deadline and most of them start to panic since they sell/use/share since 10 years and more their applications. So if you are conscious to build also a converter that will convert transparently Actionscript2/3 to Vegey and are really strong to write a consequent language manual focusing syntax diferences between As and Vegey so your language will have a chance to survive.
It appears that now most of language teams are targeting Wasm, Wat and derivative as embedded container for web, non web to replace all downloadable app for mobiles and plugins for web browsers on pc like.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

My suggestion: fork ruffl and create a new module called As3 native so you will be free to have an already big community with high interests. The only thing you should respect is the As3 language, and for sure add new write options. This way the language itself will be able to add new classes and functions.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

Maybe you can ask the question to the ASC2 git project? I'm sure they will answer quickly.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

it's an alternative yes, just never forget, the most simple to do is usually harder than to do complex in an easy way.

from flash.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on July 29, 2024

@ghost
how are you? long time didn't hear you!

from flash.

Related Issues (4)

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.