Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Why luvit doesn't be compatible with lua's require mechanism
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tang Daogang  
View profile  
 More options Jul 3 2012, 11:17 pm
From: Tang Daogang <daogangt...@gmail.com>
Date: Wed, 4 Jul 2012 11:17:29 +0800
Local: Tues, Jul 3 2012 11:17 pm
Subject: Why luvit doesn't be compatible with lua's require mechanism

hi,

Why luvit doesn't be compatible with lua's require mechanism?

luvit can copy nodejs' require mechanism, but can also backfall to lua  and
luarcks' require mechanism. What is the reason make you discard the default
lua require mechanism.

So now luvit lacks a package management tool like npm...

--
Nothing is impossible.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pancake  
View profile  
 More options Jul 4 2012, 1:43 am
From: Pancake <panc...@nopcode.org>
Date: Wed, 4 Jul 2012 07:43:56 +0200
Local: Wed, Jul 4 2012 1:43 am
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism

I wrote lum as a replacement for npm in luvit.

github/radare/lum


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tang Daogang  
View profile  
 More options Jul 4 2012, 2:29 am
From: Tang Daogang <daogangt...@gmail.com>
Date: Wed, 4 Jul 2012 14:29:23 +0800
Local: Wed, Jul 4 2012 2:29 am
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism

but lua has lurocks already?!

--
Nothing is impossible.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pancake  
View profile  
 More options Jul 4 2012, 3:06 am
From: Pancake <panc...@nopcode.org>
Date: Wed, 4 Jul 2012 09:06:30 +0200
Local: Wed, Jul 4 2012 3:06 am
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism

This is the third time i have to explain this, so...let's go:

I wrote lum for fun, not for wanting to kill or critize luarocks. So, from now on is just a personal project, not a trolling foo.

Imho luarocks is nice but doesnt fit in luvit at all. Mostly because of this:

- lum uses async stuff based on libuv, so packaging stuff for luvit in luarocks is wrong beause the db will contain packages that cant run on vanilla lua.

- luvit module system is different to how lua module loading works. Installation paths, linking options, api depedencies, enforced async io...

- lum can at some point reuse luarocks packages but honoring the luvit require system. So, lum completes luarocks, but not replaces.

- lum packages are just a json file, like in npm. And they are referenced by another json that can be uploaded anywhere. This is. Lum allows to create a distribute network of package providers using web technologies. Luarocks cant do this.

- lum supports native and lua based modules and aims to impose a standard in the luvit ecosystem.

- lum has been written on top of luvit, so it's 20% funnier (or more)

- i didnt count lines, but lum is like 10% of the code of what luarocks is and it does the same

- lum supports git and zip sources.

I just did this as a proof of concept for fun in just an afternoon. If you find this disturbing just dont use it, as far as i know nobody but me uses it, it has not even been listed in the creationix presentation. Dunno if this was to avoid discussions like this or just because he dont cares.

I think that luvit needs a specific package manager, but thats just a personal feeling. I believe that if many people think like that and use lum then lum can became the standard pkg system for luvit, else it will remain there foreveralone.

That's the beauty of free software and community driven projects.

I just don't want to spend time giving explanations, because i feel that if i have to give them im doing something wrong.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tang Daogang  
View profile  
 More options Jul 4 2012, 3:15 am
From: Tang Daogang <daogangt...@gmail.com>
Date: Wed, 4 Jul 2012 15:15:12 +0800
Local: Wed, Jul 4 2012 3:15 am
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism

I see.

Nodejs need npm, because there is no primary package management tool in js
world, but lua has.

In fact, it doesn't matter how many package management tool in lua world,
but the how many modules matter. I didn't see many packages in lum
repository.

If luarocks is not satisfied, we'd better to propose schema to luarocks.

--
Nothing is impossible.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pancake  
View profile  
 More options Jul 4 2012, 3:54 am
From: pancake <panc...@nopcode.org>
Date: Wed, 04 Jul 2012 09:54:08 +0200
Local: Wed, Jul 4 2012 3:54 am
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism
On 07/04/12 09:15, Tang Daogang wrote:
> I see.
> Nodejs need npm, because there is no primary package management tool
> in js world, but lua has.
> In fact, it doesn't matter how many package management tool in lua
> world, but the how many modules matter. I didn't see many packages in
> lum repository.

as i said lum will support luarocks packages at some point (unless i got
tired of discussing about it and remove the project source or i find it
pointless).

native luarocks modules (90% of them) doesnt work with luvit. and the
10% missing
which is just lua code will not work without modification because of the
same reason.

if lum aims to support luarocks packages it should wrap its build,
source and installation
system of the luarocks packages.

as far as duckduckgo can tell. luarocks is from 2007 (but i remember
using it some years before.. or maybe i'm wrong), this is at least 5
years of history. my code is just
half a year with 0 contributors.

i don't really care about the number of packages if i can't use any of them.

--pancake


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Caswell  
View profile  
 More options Jul 5 2012, 12:08 pm
From: Tim Caswell <t...@creationix.com>
Date: Thu, 5 Jul 2012 11:08:53 -0500
Local: Thurs, Jul 5 2012 12:08 pm
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism

I don't want luarocks integration.  It pollutes luvit for the reasons
pancake explained so well.

The reason I left lum out of my slides is because I simply haven't had time
to play with it.  I'm very glad the tool exists and I hope it gets more
attention.

Luvit as it stands today isn't very approachable.  The docs are either
wrong or non-existent.  Most everyone using luvit either knows the node api
already or learned the luvit API the hard-way (reading source and asking
questions).

Since we want to draw in a larger community, we should fix this.  Lum or
something like it made specifically for luvit is required.  I don't have
the time to do this myself, so I'm glad others are thinking about it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tang Daogang  
View profile  
 More options Jul 5 2012, 10:00 pm
From: Tang Daogang <daogangt...@gmail.com>
Date: Fri, 6 Jul 2012 10:00:20 +0800
Local: Thurs, Jul 5 2012 10:00 pm
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism

pancake, can you update your lum and pack more libraries now.

--
Nothing is impossible.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brandon Philips  
View profile   Translate to Translated (View Original)
 More options Jul 6 2012, 1:53 pm
From: Brandon Philips <bran...@ifup.org>
Date: Fri, 6 Jul 2012 10:53:56 -0700
Local: Fri, Jul 6 2012 1:53 pm
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism
On 10:00 Fri 06 Jul 2012, Tang Daogang wrote:

> pancake, can you update your lum and pack more libraries now.

Please don't make demands of people in open source communities.

Filing bugs you encounter, contributing code and discussing ideas on the
mailing list are positive ways to interact in this community.

Thank You,

        Brandon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pancake  
View profile   Translate to Translated (View Original)
 More options Jul 6 2012, 3:48 pm
From: Pancake <panc...@nopcode.org>
Date: Fri, 6 Jul 2012 21:48:01 +0200
Local: Fri, Jul 6 2012 3:48 pm
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism

I've been playing a bit with luarocks and definitively we can't recycle many things from there.

Native modules doesnt work because of linking form, require paths fail and most (all) of them are sync.

I believe that luvit is a different ecosystem, where you can copypasta code from lua projects in the same way as you do when taking js code from a website to make it run in nodejs.

I've very little time to do stuff in lum nowadays, but I would like to have more modules to play with and feedback from all you to know what would you like to change or enhace.

My plan was to make lum like npm, but distributed. In the form that you can have multiple sources from 3rd party people and use local search for finding packages (this is already done). But what will rock is to have a website to search, download, rate modules. Having a commandline frontend for it would really benefit the platform.

Do we have a list of modules written for luvit? Would u mind to package it.

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vladimir Dronnikov  
View profile  
 More options Jul 7 2012, 5:14 am
From: Vladimir Dronnikov <dronni...@gmail.com>
Date: Sat, 7 Jul 2012 13:14:48 +0400
Local: Sat, Jul 7 2012 5:14 am
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism

luarocks is good at making your project os-neutral. it derives cflags et
al. on its own freeing developer from this routine and error-prone stuff.
it allows to install deps 'locally' meaning under project's root. when
these features are in lum, there'll be much less call for luarocks
06.07.2012 23:48 пользователь "Pancake" <panc...@nopcode.org> написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pancake  
View profile  
 More options Jul 7 2012, 7:34 am
From: pancake <panc...@nopcode.org>
Date: Sat, 7 Jul 2012 13:34:41 +0200
Local: Sat, Jul 7 2012 7:34 am
Subject: Re: Why luvit doesn't be compatible with lua's require mechanism

Lum supports dependencies, install stuff locally and abstracts compiler flags from os. Actually just linux/osx. All you mention there is already done.

The compilation part can be done better. Because right now depends on a makefile.

On Jul 7, 2012, at 11:14, Vladimir Dronnikov <dronni...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »