Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packages #5

Closed
2 of 4 tasks
somucheffort opened this issue Jan 27, 2023 · 1 comment
Closed
2 of 4 tasks

packages #5

somucheffort opened this issue Jan 27, 2023 · 1 comment
Labels
enhancement New feature or request refactor Refactoring main code

Comments

@somucheffort
Copy link
Owner

somucheffort commented Jan 27, 2023

currently, coco has a few packages builtin. but even those are not well made. it needs to be reimplemented, adding support for external packages (including local files) and importing those from web.

import * as io from 'io'

import { floor, round } from 'math'

import { getTime } from './clock'

// for this it will need package manager
import { myVeryOwnValue } from 'my-very-own-first-package'

import { externalObj } from 'https://example.com/external.co' 

main goals

  • more & good stdlib

this one is pretty tricky. all libs (io, math, etc.) can be exported to C dynamic library and used later. we can define those functions and use it in lib object. probably, would add externing via those, but don't know how it would work.

dlopen crate, which provides loading cdylibs
Deno way to run FFI code using cdylib

  • import from link

done

  • import * as name from 'package-name'
  • import { ... } from 'package-name
@somucheffort somucheffort added the enhancement New feature or request label Jan 27, 2023
@somucheffort somucheffort changed the title standard libraries packages May 12, 2023
@somucheffort somucheffort added the refactor Refactoring main code label May 19, 2023
@somucheffort
Copy link
Owner Author

closed. see #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor Refactoring main code
Projects
None yet
Development

No branches or pull requests

1 participant