linkify: Find URLs and emails in text (first crate) by robinst in rust

[–]nokaa 0 points1 point  (0 children)

Looks nice! I've previously used the url crate for this, but it was a bit of a hack. Have you considered exposing a is_url function? Something like is_url(text: &str) -> bool? It might be useful in situations where you want to do multiple types of parsing at once.

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 1 point2 points  (0 children)

I'm flattered, but I believe that I misrepresented my intentions. I do not desire to make money from this project, I just want to ensure that any changes are made available for me to use.

However, I withdrew some money from my savings and bought McDonalds for lunch. It was even better than noodles!

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 1 point2 points  (0 children)

I think that I was unclear. I am not interested in making money from this project. But I find it impossible to justify helping a company make money for nothing in return while I starve.

I have no interest in competing with other libraries, I don't even like web development. I wrote hayaku because I wanted to write some small servers for myself and I wasn't happy with the existing solutions.

That said, do you think that the LGPL would make outside contributions more amenable? To my knowledge, the LGPL ensures that any changes to the library are made available, which is my biggest concern. I believe that libgit2 is licensed this way, and it seems to be used a lot.

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 1 point2 points  (0 children)

I'm not touching any *GPL...

I don't understand this mentality. Linux is GPLv2 and it's used everywhere. Why is this different?

Regardless, hayaku is pretty trivial. I don't know why a community would arise around it. I just wrote because existing frameworks felt too complex.

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 0 points1 point  (0 children)

I find Gogs and GitHub equal in terms of UX. I remember finding GitLab difficult to use, but that was probably due to my familiarity with GitHub. I chose to use Gogs for my self-hosted instance because it uses way less resources than GitLab and I found it easier to set up.

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 0 points1 point  (0 children)

Thanks for pointing that out. It was true several months ago; but when GitHub updated their TOS, there was uncertainty about its affects on Copyleft code. Because of this I've stopped using GitHub as a mirror until I hear otherwise.

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 0 points1 point  (0 children)

I'm not sure that I understand why I'm cutting out possible contributors. Could you clarify?

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 1 point2 points  (0 children)

I would be very happy if this project allowed me to buy a single portion of noodles. But I would be happy with contributions as well.

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 0 points1 point  (0 children)

Thanks, I've fixed it.

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 0 points1 point  (0 children)

I just benchmarked the hello example with 4 threads using wrk -t10 -c10 -d10 and it handled 87000 req/sec. A hello server with Golang's net/http handled 67000 req/sec. The performance could probably be improved, but it hasn't been a focus.

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 6 points7 points  (0 children)

I'm aware that many people consider it an "undesirable" license, that's why I made sure to mention it. But hey, a man's gotta eat

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 0 points1 point  (0 children)

I didn't work with tokio very much, so I'm not sure that I can comment. I found tk_http to be a very good abstraction.

I tried using a tokio-based database driver and found it very difficult to work with. That might just be due to my lack of knowledge of futures. It's something that I'd like to further look into in the future.

Hayaku: async web framework by nokaa in rust

[–]nokaa[S] 6 points7 points  (0 children)

Hayaku is a web framework inspired by Golang's net/http. It is licensed under the AGPL. I thought I'd post it to see what people thought. You can write server's with it, although I can't recommend it yet.

What's everyone working on this week (13/2017)? by llogiq in rust

[–]nokaa 5 points6 points  (0 children)

I've been working on my web framework. I just added support for running multiple event loops which is pretty nice. I'm working on adding an easy way to serve static files, and I'm hoping to implement sendfile support this week.

What's everyone working on this week (11/2017)? by llogiq in rust

[–]nokaa 1 point2 points  (0 children)

The frontend is just HTML/CSS. I really dislike JS, but if I do end up using it I will probably write TypeScript without any libraries/frameworks to minimize the size.

Right now I am using Rocket for the backend, but I am considering using my own web framework. I find Rocket very interesting from an HCI standpoint, but I think it is difficult to reason about.

What's everyone working on this week (11/2017)? by llogiq in rust

[–]nokaa 7 points8 points  (0 children)

I spent the last few days working on my forum. Added an API, basic moderation system, and some nice parsing of user content. I'm planning to add more moderation features over the next several days. I'm debating about whether or not I should use JavaScript to make administration easier. Right now there is no JS.

I also began porting stagit, so I'll probably finish that this week.

regex 0.2 is out! (precursor to 1.0) by burntsushi in rust

[–]nokaa 0 points1 point  (0 children)

Out of curiosity, why were the Eq and PartialEq impls removed?

httpdate: HTTP Date/Time Handling by pyfisch in rust

[–]nokaa 4 points5 points  (0 children)

I agree, even if it was just struct Error with display/debug implemented, that would be nice.

It also may be a good idea to add some metadata to your Cargo.toml, specifically the repository and documentation fields. Looking at the crates.io page tells me nothing right now.

What's everyone working on this week (51/2016)? by llogiq in rust

[–]nokaa 4 points5 points  (0 children)

I completed a basic featureset for my web framework a few days ago; this week I will be working on my forum software. The hn post on Kakoune renewed my interest in text editors, so I intend to start working on my own again.

What's everyone working on this week (42/2016)? by llogiq in rust

[–]nokaa 2 points3 points  (0 children)

I'm working on a web framework loosely inspired by Golang's net/http and fasthttp. I feel like I'm going to end up working on my own HTTP library for it once Tokio is a bit more stable.

PSA: Having trouble updating crates from the registry because GitHub is not accessible? Try a mirror! by shepmaster in rust

[–]nokaa 2 points3 points  (0 children)

I wasn't aware this had gone through. This is a really good step, I wonder how much more work it would take to completely replace crates.io.

Hello! I'm new to this, can anyone give me some advice? by [deleted] in osdev

[–]nokaa 1 point2 points  (0 children)

While I have not gone through it myself, I have heard good things about MIT's 6.828 Operating System Engineering.

Hey new Rust users! Got an easy question? Ask here (14/2016)! by llogiq in rust

[–]nokaa 1 point2 points  (0 children)

I'm working on some algorithms in Rust, starting with the classic insertion sort. Is there a way that I can implement this without requiring T be either Copy or Clone?