Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Modular - Simple module update and downloader. #19

Open
Youngestdev opened this issue Jul 9, 2018 · 12 comments
Open

Modular - Simple module update and downloader. #19

Youngestdev opened this issue Jul 9, 2018 · 12 comments
Assignees
Labels
enhancement New feature or request environment Modification editing or bug fixing a simple-lang environment hacktoberfest Hacktober 2018 to-do An issue worthy of doing and looking into
Milestone

Comments

@Youngestdev
Copy link
Contributor

Well, we want to build simple as a very intelligent and smart programming language so we have to include a lot of environmental functions etc. Judging by the last issues, you can see we're working hard.

So what's modular ?

Modular is a command line simple app that updates simple itself and it modules, it will also be used to get new modules or fetch upgrades from the repos. Just like we have apt-get in Linux, npm update etc. That sounds cool ? Yeah

ToDo

  1. Upgrade simple version without having to download from website. ( Currently under test ).
  2. Grab modules from the repository
  3. Update modules.
  4. Install new environment / desktop apps and update them.
  5. Publish your module into the repo.
    That sounds cool. On this issues, you're welcomed as a contributor. This is currently handled by @Thecarisma and I.

Updates will be published in this issue

@Youngestdev Youngestdev added enhancement New feature or request to-do An issue worthy of doing and looking into environment Modification editing or bug fixing a simple-lang environment labels Jul 9, 2018
@Youngestdev
Copy link
Contributor Author

@Thecarisma any update ?

@appcypher
Copy link
Contributor

appcypher commented Jul 14, 2018

This can be done like rustup or choosenim.

The user just types a command into the terminal and simple gets installed or updated automatically. A seamless nice user experience.

The command is usually in this format.

curl https://sh.some-domain.com/install -sSf | sh

This means the shell script that gets run will be hosted on that site and the script will be responsible for downloading and installing simple on the user's system.

The first step here is to host an installer script online.

@Youngestdev
Copy link
Contributor Author

Well, the current workaround is using modular directly from the terminal. Modular is an environment and does this. To upgrade simple now can be done with modular using the command

$ modular -u

Modular isn't a shell script. It's solely command line for now 😉. Your PRs are welcomed tho . 👍

@Youngestdev
Copy link
Contributor Author

Talking about the installation, I get what you mean. SIMPLE will be installed on cloud and directly installed in the system upon calling the curl command. This won't require downloading zip files, unzipping etc. Isn't this what you meant @appcypher ?

@appcypher
Copy link
Contributor

appcypher commented Jul 14, 2018

Not quite. What I mean is that the script that downloads/update simple will be hosted somewhere it can be downloaded. Of course simple will be hosted somewhere, but it's the script I was referring to.

The reason rustup way is nice is that new users just need to enter that command into their terminal and the script gets intalled by curl, which then gets run by sh. The script downloads and install simple and all its dependencies.

curl https://sh.some-domain.com/install -sSf | sh

No need to have modular or simple installed already. That command does everything for you.

@appcypher
Copy link
Contributor

Of course modular would still be needed for more sophisticated update or dependency management.
I suspect it may be turned into a package manager, that's if it is not already that.

But for just regular installation and updating of simple, the rustup way should do.

@Youngestdev
Copy link
Contributor Author

Youngestdev commented Jul 14, 2018 via email

@Youngestdev
Copy link
Contributor Author

Youngestdev commented Jul 14, 2018 via email

@appcypher
Copy link
Contributor

appcypher commented Jul 14, 2018

Right. I just realized now that by module you are referring to package. So Modular is indeed a package manager.
Cool.

@Youngestdev
Copy link
Contributor Author

Youngestdev commented Jul 14, 2018 via email

@appcypher
Copy link
Contributor

So I guess the rustup thing should be opened under another issue. As this thread is for package management.

@Youngestdev
Copy link
Contributor Author

Exactly. I'll just open the issue. Thanks for bringing this up 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request environment Modification editing or bug fixing a simple-lang environment hacktoberfest Hacktober 2018 to-do An issue worthy of doing and looking into
Projects
None yet
Development

No branches or pull requests

3 participants