I'm the author of the juliawebserver

265 views
Skip to first unread message

chzyer

unread,
Apr 12, 2012, 11:51:55 AM4/12/12
to Julia MVC Framework
I'm Chinese.I sorry that poor in English.
I'd like to developed a MVC Framework for julia if more programer(or
geek ^_^) join that.
for juliawebserver, it has many shortcoming.Something I can't solved,
I don't know much about c.
I don't know how to make socket server asynchronous.
I don't know julia update the regex engine. I will try to fix it .
And, someone knows how to connect MYSQL using julia?
my email: m...@chenye.org


Nicholas Klick

unread,
Apr 12, 2012, 11:57:33 AM4/12/12
to julia-mvc...@googlegroups.com
Thank you for building and sharing juliawebserver. It is great that you are interested in helping with the MVC project. 
We have been trying to get juliawebserver running.

We think that this is the commit that broke juliawebserver : https://github.com/JuliaLang/julia/commit/0220570

Eric

unread,
Apr 12, 2012, 7:25:55 PM4/12/12
to Julia MVC Framework
chyzer, good to have you. We were impressed by the JuliaWebServer,
very cool! Glad to have you on board. We have 3-4 people interested
in helping to develop this framework. I think we're all experienced
web developers, but none of us has ever created a framework before.

Also, with respect to the Julia update that broke your Julia web
server, I don't think it was the unicode update (although I could be
wrong). The unicode code actually hadn't yet made it to the Julia
release that I downloaded. And when I patched regex.jl using the
unicode update, it didn't make any difference. I suspect it may have
been an update with the pcre library itself (third-party shared
library written in C). But I'm not sure.

chzyer, re: MySQL, I was eventually hoping to create a database
abstraction layer that could work with MySQL (and redis, which I've
fallen in love with), but that's for the future. Right now, I think
we need to work on getting the foundation built, something like Rack
in Ruby or werkzeug in Python. Is your background in scientific
computing, or web development (or both?). Do you come from an octave/
matlab background?

Thanks again for joining, it's great to have you on board.

chzyer

unread,
Apr 13, 2012, 6:09:47 AM4/13/12
to Julia MVC Framework
thx.I get Juliawebserver running now.
but juliawebserver still has many shortcoming.

chzyer

unread,
Apr 13, 2012, 6:51:32 AM4/13/12
to Julia MVC Framework
I hadn't created a framework before too.

I remember that Julia always support unicode.I got it running even
using Chinese(UTF-8) in it before.
The function "replace" doesn't support char anymore.It get char when
the length of string is 1.
I wrote follows in "julia_webserver_string.j" for support temporarily,
but that's not a good way:

function replace(str::ASCIIString, ch::Char, replacement::ASCIIString)
replace(str, Regex(UTF8String([uint8(ch)])), replacement)
end

about me,I working on web development.I used PHP before and now using
python.So, I'm a python guys too. ^_^
In part time, I wrote a android application for meizu(heard about it?)
I spend 3 days to learn julia and wrote juliawebserver.I use tornado
currently.
May be you see that, the routes of template engine in juliawebserver
like tornado more or less.
Tornado is a very cool framework, I think.
But juliawebserver is so weak that only for test.

I'm sorry that heard nothing about matlab or octave.
That's so cool by working with other guys in the internet to make a
framework.

BTW,I poor in English, so if there is something wrong with my word and
fortunately you understand me.Please tell me the right way to used.

Patrick O'Leary

unread,
Apr 13, 2012, 8:50:38 AM4/13/12
to julia-mvc...@googlegroups.com
You may have also missed The Great Rename; to avoid being confused with Objective-J, the file extension has changed to .jl. This will also get you correct syntax highlighting on Github and make your project findable from https://github.com/languages/Julia.

Patrick

Nate W

unread,
Apr 17, 2012, 4:20:44 AM4/17/12
to julia-mvc...@googlegroups.com
Would you mind pushing the working webserver to github?  Would like to give it a go just to learn from it.

Nicholas Klick

unread,
Apr 17, 2012, 1:00:44 PM4/17/12
to julia-mvc...@googlegroups.com
I second that request.

chzyer

unread,
Apr 18, 2012, 3:08:49 AM4/18/12
to Julia MVC Framework
shit.It broke again.
It's so weird that 'replace("String", "tr", "-")' doesn't work in
shell

Nate W

unread,
Apr 19, 2012, 10:59:56 PM4/19/12
to julia-mvc...@googlegroups.com

Nicholas Klick

unread,
Apr 20, 2012, 12:07:21 AM4/20/12
to julia-mvc...@googlegroups.com
Thanks for doing that. It would be good to at least be able to run
that server. I feel like we could start hacking that project into what
we want etc.

Lately, I have been busy with work but have put some time into a test
library written in Julia. It is very bare bones and still needs a lot
of work but it is at least getting me familiar with the lang.

Patrick O'Leary

unread,
Apr 20, 2012, 8:16:22 PM4/20/12
to julia-mvc...@googlegroups.com
Fixed now; you should be back in business.

Nicholas Klick

unread,
Apr 20, 2012, 11:40:42 PM4/20/12
to julia-mvc...@googlegroups.com
Yeah! I've got it running now. Thanks!

Nicholas Klick

unread,
Apr 20, 2012, 11:41:44 PM4/20/12
to julia-mvc...@googlegroups.com
To get it working I just pulled from master on both Julia and the Webserver and then ran julia example/main.jl ... 

Nate Wienert

unread,
Apr 20, 2012, 11:56:32 PM4/20/12
to julia-mvc...@googlegroups.com
Just did a quick "git pull" and "make clean testall" and it looks like its running!

I'm getting 404s on the css and javascript, checking to see why.
Reply all
Reply to author
Forward
0 new messages