Hacker Newsnew | past | comments | ask | show | jobs | submit | eniz's commentslogin

Update: Sorry about not providing details on the submission. Here is additional details on what I'm looking for I'm asking language/framework recommendation for the RESTful API that needs to be fast and secure, so security and performance of the framework is very important.

Feel free to recommend any Go/Rust framework. Also why do you prefer that language?


For Rust, I am using Actix https://github.com/actix/actix-web . Without better definition of "secure" and "performance" there is no way to help you.

Both of them are used and exposed publicly by numerous companies, so ootb they good enough for any API. For 99.999% percent of people both are performant enough. Rust will win on memory usage, in some cases significantly, and will win on performance by a smaller margin, but run your own benchmark.

This is an interesting article about why npm uses Rust instead of something else: https://www.infoq.com/news/2019/03/rust-npm-performance/

>performance of the framework is very important

No, its not. Whatever you do with it, will be 100-1000x slower than what framework does. Making decision on something that takes 0.01% of time spend on request handling makes no sense. Optimize your code and data sources, don't worry about framework,

> Also why do you prefer that language?

Tons of modern features. Algebraic data types (this eliminates null-pointer errors completely, which you can't say about Go), generics, borrow checker, pattern matching, macros, general focus on correctness of your code. All of that composes nicely and allows to produce correct and readable code.


Sorry for the misunderstanding, I meant back-end development. I just edited the question.


Yes, it is possible. You need to run as 'mailpile --www=0.0.0.0:33411 --wait'

and go to https://[Local IP of Server]:33411


No, that is not running it on your phone. That is accessing it on your phone.


I just went to the download page and it says: "Mailpile packages are currently available for recent Debian-derived distributions, including Ubuntu. The packages are architecture-independent and should be compatible with most desktops, servers and embedded hardware (such as the Raspberry Pi). They have been tested on Debian 8, Debian 9 and Ubuntu 16.04 LTS."

So sounds like it will run on the Librem 5 at least.


You can probably run it on Android using Termux if it doesn't require root.


Yes, also it will be good to have registration with e-mail addresses.


I'm not sure Hacker News is for advertising.


By creating a extension which blocks AMP, for ourselves. But, if we really need to destroy AMP from internet. Unfortunately it is not really possible, unless if you have enough money to buy Google.


Probably the only useful way to fight Google is to promote non-Google controlled web browsers with adblockers.


Seems like a reasonable solution on desktops, but where I see AMP the most is on mobile.

I don't think it's possible to block AMP in Safari on iOS.


Actually it is possible. It doesn't have to done on client-side. You can do it via DNS settings with Pi-Hole on your network, or create your own private tunnel with Pi-Hole. After that, you need to block subdomains with amp.. Or even you can create your own iOS app for it, and yes it is also possible.


Great idea. Do you have more info on how this can be done with the Pi-hole? I have been wanting to set one up already anyway.


Good implemention! Also, it can be extended with other apps like Duolingo, but not sure if they have a API.


You are right. There are many Tier 1 networks so Internet can’t be destroyed easily. Even If internet dies there’s radio communication and other stuff. Like SATCOM.


Which sometimes lets you close other applications at background accidentally.


I actually know how to automate, but as I said I don't have enough time to do this. So for now, It looks like I should cancel project for now.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: