Giter Site home page Giter Site logo

Support a cosmopolitan target about janet HOT 8 CLOSED

tionis avatar tionis commented on May 24, 2024 7
Support a cosmopolitan target

from janet.

Comments (8)

bakpakin avatar bakpakin commented on May 24, 2024 5

I got it working locally - however I needed to turn off IPV6 code and make some Makefile modifications to allow bypassing the shared library step. There also seem to be some extra warnings but otherwise it looks ok.

from janet.

tionis avatar tionis commented on May 24, 2024 1

Makes sense, as cosmopolitan handles the other platform abstractions. I'll just try to compile the generic posix later with the cosmocc toolchain.

from janet.

bakpakin avatar bakpakin commented on May 24, 2024 1

I pushed a build changes yesterday, but I wouldn't consider this fixed until CI has a cosmopolitan build in it

from janet.

tionis avatar tionis commented on May 24, 2024 1

The python.com binary allow embedding of pure python libraries in the binary itself, as it's a valid zip file.
To add the same feature in Janet, a custom loader could be added to janet.com during the build process.

from janet.

bakpakin avatar bakpakin commented on May 24, 2024

I'm pretty sure jart was one of the people who first got janet to run with cosmopolitan - helps that Janet has a sort of generic "Posix" target built in, but I would imagine it would mostly just work.

from janet.

tionis avatar tionis commented on May 24, 2024

Should I leave this open then, until the cosmopolitan target supports ipv6 and the build process is documented?

from janet.

tecosaur avatar tecosaur commented on May 24, 2024

As mentioned in #1363, I'm interested in creating some APE binaries with Janet. @tionis it sounds like you managed to get this working?

from janet.

tionis avatar tionis commented on May 24, 2024

You should be able to compile the cosmopolitan target with a working cosmopolitan environment to get a Janet APE executable. But anything else is not supported at the moment.
I'd like to fix it up, but I'm not that well versed in C and got other projects with higher priority, so I don't know if/when I'll look into it again.

from janet.

Related Issues (20)

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.