Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fiedzia
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
211.
▲
by
fiedzia
6y ago
Use decimal type for that
212.
▲
by
fiedzia
6y ago
I find this style (Rust)) more readable end easier to extend: RangeInclusive::new(1, 10) .filter(|x| x % 2 == 0) .for_each(|x|{ println!("{}", x); }); (though you could write it the same way, for i in 1..=-10 { if .. { ..
213.
▲
by
fiedzia
6y ago
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 num
214.
▲
by
fiedzia
6y ago
> Rust is a replacement for c/c++ It is modern language with big-enough community and many features making it good backed language. It goes far beyond C/C++ niche.
215.
▲
by
fiedzia
6y ago
> what is C# lacking that Go has Google support and presence in the minds of non-ms shops
216.
▲
by
fiedzia
6y ago
If you want to get started quickly, Go. Better yet, Python or Ruby or Java, which have far more available frameworks and libraries. If you care about quality, performance and memory usage enough to invest more time into learning how to use
217.
▲
by
fiedzia
6y ago
>How do people using Go and other languages that don't have exceptions solve this reduced readability problem? Rust has ? operator which converts "let x = foo()?" into "if foo returns Ok(value) assign value to x, othe
218.
▲
by
fiedzia
6y ago
Uwagi is used for performance reasons only, once you have a language where its not a problem, it immediately goes away. I haven't seen anyone using it with Go for example.
219.
▲
by
fiedzia
6y ago
> Why does the language need to have good thread primitives then? Because: a) we want application server to be written in the language we are using, so that we can control every aspect of how it works, instead of having some silo that de
220.
▲
by
fiedzia
6y ago
> Are you assuming that each thread requires a dedicated stack on each core? No, I am assuming we run 1 thread per core.
221.
▲
by
fiedzia
6y ago
>I recently realized that the entire gunicorn / uwsgi world for example is filled with anecdotes about performance instead of simple, comprehensible benchmarks Its hard to create a simple benchmark for something that has 100+ config
222.
▲
by
fiedzia
6y ago
I tried to search for it and and... well, google is so ad-infested that's its useless, but doesn't seem so. Anything with large core count comes with 192GB or more.
223.
▲
by
fiedzia
6y ago
>A better model already exists - thread per connection For that you will need a language with good support for threads, which Python definitely isn't (at least not CPython), so Django doesn't have any other option here. Native
224.
▲
by
fiedzia
6y ago
Yes. Typically to serve several requests at the same time, you'd run multiple processes, each handling an at a time, and if you spend a lot of time waiting for io (database, some service call or slow client), you'll need to use a
225.
▲
by
fiedzia
6y ago
> They even suggest asyncio could be a replacement for celery Only if you don't care about reliability.
226.
▲
by
fiedzia
6y ago
The problem is that with web being so many thing to so many people, there is not much everyone will agree on. A browser must be able to act as text document viewer, graphic editor, game engine, chat, and with more of different usecases bein
227.
▲
by
fiedzia
6y ago
>I was also frustrated with the NoSQL movement's focus on Partitioned clusters when my intuition was that it was a very rare failure mode. Network errors are very common among errors database has to deal with, and particularly commo
228.
▲
by
fiedzia
6y ago
>You do have a single point to enforce everything: code "code" usually is made of many smaller parts, what will keep those in sync to enforce anything? You are placing a burden on a developer (even more likely - on a group of d
229.
▲
by
fiedzia
6y ago
I think the core issue here is not the quality of marketing , but simply the fact that it exists. People need some database, and nobody is spending money on advertising Postgres, so they don't know anything about it. Also Mongo wins by
230.
▲
by
fiedzia
6y ago
>There is this myth that schemas must be enforced at the database level. You must have single point to enforce anything. This is very rarely the case with the app, where a) there will be 20 places that access database and b) often some t
231.
▲
by
fiedzia
7y ago
> in applications that don’t require maximum resource efficiency and memory safety, adopting Rust in 2020 is irrational at best which applications don't require memory safety?
232.
▲
by
fiedzia
7y ago
If they both work for the same organization to achieve common goal, communicate through some interface they agree on, having to coordinate occasional changes that affect both codebases, than no. If they are completely isolated, than yes, bu
233.
▲
by
fiedzia
7y ago
> There are good reasons to use microservices, like when you have 100+ engineers Its enough to have 2 that work in different domains with different constraints and different tools. Company scale is completely irrelevant here. > But if
234.
▲
by
fiedzia
7y ago
No, you can use Rust without its stdlib. #![no_std] is a crate-level attribute that indicates that the crate will link to the core-crate instead of the std-crate. The libcore crate in turn is a platform-agnostic subset of the std crate whic
235.
▲
by
fiedzia
7y ago
>A troop of special Chinese ducks is waiting to be deployed I can't wait for Pixar movie based on that
236.
▲
by
fiedzia
7y ago
>in a sufficiently complex system, zebras exist. I love this one.
237.
▲
by
fiedzia
7y ago
Try Rust
238.
▲
by
fiedzia
7y ago
Its not a Rust problem, any project that mixes using string with passing them to C FFI and operating system API will need to handle those somehow differently. In Rust this is expressed with types and necessary checks/conversions are ve
239.
▲
by
fiedzia
7y ago
Most of the time the answer is "absolutely nothing". From framework (and framework user) point of view there is no difference which protocol version is used, request handling is exactly the same. Protocols are handled somewhere el
240.
▲
by
fiedzia
7y ago
This is false more often than not. Many programs taking user input will treat it as string, assuming specific encoding or compatibility with screen output/some api, at least in some code paths. For example if you print an error message
More ›