Hacker News new | ask | show | jobs
by RivieraKid 4574 days ago
I hope that the web libs will improve, I'm trying to create a very simple web app, but the libs are in alpha stage.
2 comments

I'm not sure Julia is the most appropriate for this application. It's nominally general-purpose, sure, and you can run a web server from it, but you can do that with any language with a socket library and strings.

Would you make a website with MATLAB?

Julia uses libuv, the same library used by Node.JS, for its networking functions. Therefore, given better library support, Julia could be quite suitable for writing web applications. If you wanted to provide a web frontend to some numerical computation (as I think the Sudoku solver mentioned in the article does), such functionality would be quite useful.
I think that if you ignore libs, Julia is a better general-purpose language than other dynamic languages like Python or Ruby. Which is definitely not true for MATLAB :)

This is an ultra simple web app, that does some calculations on the backend that would be slow in Python (or I would have to preprocess the data).

> Would you make a website with MATLAB?

The world is a nail. :)

In retrospect I know several people who probably would serve their website in MATLAB.
Hi, I'm one of the maintainers of Julia's webstack packages. If you're having problems, please make an issue(s) on github. We would definitely appreciate feedback. I'll try to make sure to respond.
Hi, sorry, I currently don't have time / energy for opening issues so I hope it's ok if I sum it up here:

1. I didn't manage to make Mersel serve static files (advice in comments under github issue didn't help).

2. The server doesn't send the full response to the browser, it's cut-off at the end. I had to add many white-space characters at the end of the html. I think this related to non-ascii characters and content-length.

3. If I run the server in the REPL, than stop it (Ctrl+C) and then start again, it complain that the port is in use. So I change the port, but the server runs on the original port. Related: autoreload would be very nice.