VerbalExpressions / JSVerbalExpressions

JavaScript Regular expressions made easy
http://verbalexpressions.github.io/JSVerbalExpressions/
MIT License
12.18k stars 503 forks source link

Port to other languages #9

Open akalicki opened 11 years ago

akalicki commented 11 years ago

Given the relatively small size of the VerbalExpression class and its general usefulness I feel it would be easy and helpful to port it to other languages. I see that @putneyj is working on a Java version, and I'd be willing to port it to C++ / PHP as well if you think it's a good idea.

crawfordcomeaux commented 11 years ago

I say go for it!

AmeenAhmed commented 11 years ago

+1

ghost commented 11 years ago

I might have a crack at porting it to Python tonight. I need an excuse to get some practice in on it.

mihai-vlc commented 11 years ago

great idea i will do the php port today

MaciejLisCK commented 11 years ago

Cool I am going for C# port :)

ryan-endacott commented 11 years ago

I'll try and port it to Ruby tonight :)

markwilson commented 11 years ago

I started working on a PHP port earlier today - https://github.com/MarkWilson/VerbalExpressionsPhp

mihai-vlc commented 11 years ago

we all ported it in about the same time :smile_cat: , it doesn't matter it was a good practice anyway :smile: https://github.com/ionutvmi/VerbalExpressions

zbma commented 11 years ago

I like the idea. Early C# version can be found here VerbalExpressionsSharp, though I need to work on it.

akalicki commented 11 years ago

Thanks everyone for the support! The one thing I'm worried about is code fragmentation - since each adaptation is just a single file it's probably best to keep all versions in one place for easy download and editing. When you guys are done with your language ports would you mind forking the original project and submitting a pull request with just the VerbalExpressions file so we can keep them all in this repository?

jehna commented 11 years ago

akalicki I like your idea. I'd be glad to add you as collaborators for each language on the same repository to keep the code in one place. Go ahead and kick in your pull requests.

ryan-endacott commented 11 years ago

Started the ruby port, it's not quite done yet though: https://github.com/ryan-endacott/VerbalExpressions.rb

ghost commented 11 years ago

My python port sorta kinda works. I'll finish it off in a couple of days.

crawfordcomeaux commented 11 years ago

Is it premature to start pushing for porting with package management systems?

Disclaimer: I'm not familiar with the process of packaging libraries for things like pip, rubygems, npm, etc.— Sent from Mailbox for iPhone, suckah!

On Mon, Jul 22, 2013 at 6:48 PM, Jake Adams notifications@github.com wrote:

My python port sorta kinda works. I'll finish it off in a couple of days.

Reply to this email directly or view it on GitHub: https://github.com/jehna/VerbalExpressions/issues/9#issuecomment-21384321

go-oleg commented 11 years ago

@akalicki , @jehna ,

Perhaps it would be a good idea to create an organization and create a separate repo for each language with one central repo containing the documentation/API?

As more languages get added, it'll be harder to keep all of them in sync and filing bugs or enhancement requests against a specific language may get convoluted. Also, any unit tests would also be language-specific, so suddenly theres going to be more than one file associated with each language.

Just some thoughts.

-Oleg

crawfordcomeaux commented 11 years ago

+1 — Sent from Mailbox for iPhone, suckah!

On Mon, Jul 22, 2013 at 10:31 PM, Oleg Seletsky notifications@github.com wrote:

@akalicki , @jehna , Perhaps it would be a good idea to create an organization and create a separate repo for each language with one central repo containing the documentation/API? As more languages get added, it'll be harder to keep all of them in sync and filing bugs or enhancement requests against a specific language may get convoluted. Also, any unit tests would also be language-specific, so suddenly theres going to be more than one file associated with each language. Just some thoughts.

-Oleg

Reply to this email directly or view it on GitHub: https://github.com/jehna/VerbalExpressions/issues/9#issuecomment-21391274

ryan-endacott commented 11 years ago

@go-oleg, I think that's a good idea. With my Ruby port, I already have tests, a rakefile, and a gemspec. I'm not sure all of that belongs in this repo.

We could also make this repo a central one without any specific implementation. It could just have some code examples and then link to all of other repos.

mihai-vlc commented 11 years ago

@go-oleg yes you are right we should link to each other in the readme file that way we can keep things organized for bugs and language specific features

zbma commented 11 years ago

I have more than one file (interface, class, extension class, tests, project files). Reasons mentioned by @ionutvmi sounds good too. So I like @go-oleg idea.

jameshalsall commented 11 years ago

There's a PHP composer ready port of this library here https://github.com/markwilson/VerbalExpressionsPhp

jehna commented 11 years ago

@go-oleg @ryan-endacott @walkhard this project has indeed grown out of one repository's boundaries. That's why I've made you collaborators, and all help would be greatly appreciated to get this project back in order.

And yes, +1 for @go-oleg idea of making VerbalExpressions into an organization.

mihai-vlc commented 11 years ago

I went ahead and made an organisation here https://github.com/VerbalExpressions , i added @jehna as owner and we should add all the users to transfer their ported versions there to have them in one place.

ryan-endacott commented 11 years ago

@ionutvmi, add me and I'll fork my Ruby port.

sergeyklay commented 11 years ago

@ionutvmi good idea :octocat:

ryan-endacott commented 11 years ago

@ionutvmi @jehna Should we go ahead and make this repository (because it's so popular) a general readme Repo that gives an example and links to the organization?

ryan-endacott commented 11 years ago

@ionutvmi, it actually looks like even though I'm a member I don't have permission to fork. Here's the Ruby port if you want to fork it.

mihai-vlc commented 11 years ago

@ryan-endacott i have forked it you should be able to push and pull in that forked version now.

ryan-endacott commented 11 years ago

@ionutvmi, Awesome! Thanks.

@jehna, could you add a link in the description of this repo to the organization?

maxsz commented 11 years ago

Hey, just wanted to let you know that I started with an Elixir port. It's far from complete, just wanted to leave a note in case someone else is interested in this.

@jehna Great idea and great library!

rajatkhanduja commented 10 years ago

This is a brilliant idea to make regular expressions much more readable and easy to use! I would like to try to build this for OCaml (since other languages that I felt comfortable with have already been taken care of :P ). I won't commit to it yet, though, since I am not so sure if I'd be able to manage it! But if anyone's already working on OCaml port of this, I'd be glad to help out!

lanwen commented 10 years ago

Hello! Can you give me rights in https://github.com/VerbalExpressions/JavaVerbalExpressions Because no one maintains this port over 6 months and i can do it.

I've already upload fork in maven central https://github.com/lanwen/java-verbal-expressions and want to merge info to main repo.

jehna commented 10 years ago

@lanwen you should now have push&pull rights to the repo. A big thank you for taking over the maintenance!

dzenbot commented 8 years ago

I totally see this been useful in Swift and/or Objective-C!

dzenbot commented 8 years ago

nvm my last comment, it's done already 😅

tylerlittlefield commented 5 years ago

I wanted to submit a port for R: https://github.com/tyluRp/RVerbalExpressions

It's not entirely complete yet, see here. Hoping to wrap everything up by the end of the weekend.

How does "submitting" a port work? Do I request to be a member and transfer ownership?

mihai-vlc commented 5 years ago

Hi @tyluRp ,

I have added you to the organization. You should be able to perform the repository transfer.