Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ibraheemdev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
91.
▲
by
ibraheemdev
5y ago
Note that this version of the book has not been updated since 2016. The updated version is here: https://veykril.github.io/tlborm/introduction.html
92.
▲
by
ibraheemdev
5y ago
I believe this would work with type sets: type Result[T any, E any] interface { T | E }
93.
▲
by
ibraheemdev
5y ago
The type sets proposal for Go has already been accepted as a clarification to the generics proposal [0]: type SignedInteger interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 } Interfaces that contain type sets are onl
94.
▲
by
ibraheemdev
5y ago
async-std uses async-task under the hood. (async-std -> async-global-executor -> async-executor -> async-task)
95.
▲
by
ibraheemdev
5y ago
The underlying implementation sets the task as cancelled the first time it is polled, and then waits for it to stop running [0]. So you could just call `cancel` and poll the future once: futures::poll!(task.cancel()); [0]: https:&
96.
▲
Async Cancellation
(blog.yoshuawuyts.com)
114 points
by
ibraheemdev
5y ago
|
40 comments
97.
▲
Rustc Reading Club
(smallcultfollowing.com)
2 points
by
ibraheemdev
5y ago
|
0 comments
98.
▲
by
ibraheemdev
5y ago
> Nowadays the Rust http libraries to use are warp or axum Warp and axum are certainly not the only choices, and saying they are the best choices is a matter of opinion. Actix-web, rocket, tide, warp, axum are all great web frameworks.
99.
▲
Rust RFC Index
(ncameron.org)
1 points
by
ibraheemdev
5y ago
|
0 comments
100.
▲
A New Medium for Communicating Research on Programming Languages
(willcrichton.net)
3 points
by
ibraheemdev
5y ago
|
0 comments
101.
▲
Interval-Based Memory Reclamation (2018) [pdf]
(cs.rochester.edu)
3 points
by
ibraheemdev
5y ago
|
0 comments
102.
▲
Flowistry helps you understand Rust programs with program analysis
(github.com)
152 points
by
ibraheemdev
5y ago
|
18 comments
103.
▲
by
ibraheemdev
5y ago
Cool language, it'd be great if there was a code block example in the README.
104.
▲
by
ibraheemdev
5y ago
Does anyone happen to know if this possible with a Kobo?
105.
▲
by
ibraheemdev
5y ago
It is built on top of Quran.com's API, which is a very reliable source.
106.
▲
by
ibraheemdev
5y ago
There is only one Quran. Perhaps you are referring to differences in line or page numbering?
107.
▲
by
ibraheemdev
5y ago
Is this a repost? I seem to remember seeing this a few days ago.
108.
▲
by
ibraheemdev
5y ago
There was a pre-proccessor for Rust without curly brackets that I can't seem to find now... It actually looked very nice. The two biggest changes I would probably make are square brackets for generics, and in-band lifetimes everywhere.
109.
▲
Seed – A Rust front-end framework for creating fast and reliable web apps
(github.com)
322 points
by
ibraheemdev
5y ago
|
155 comments
110.
▲
by
ibraheemdev
5y ago
I would love the pipeline operator in Ruby, but unfortunately the unstable feature [0] was removed: 1.. |> take 10 |> map {|e| e*2} |> (x) > After experiments, |> have caused more confusion and controversy far more t
111.
▲
OK? Programming Made Simple Again
(github.com)
1 points
by
ibraheemdev
5y ago
|
1 comments
112.
▲
by
ibraheemdev
5y ago
I'm guessing it's using forem, the open-source platform that powers dev.to: https://github.com/forem/forem
113.
▲
by
ibraheemdev
5y ago
Have you tried LINQ to SQL?
114.
▲
by
ibraheemdev
5y ago
What's your proposed signature of collect? You have to put a turbofish or type annotation because collect works with any collection implementing FromIterator, not specifically Result. Would you have it only work for Vec?
115.
▲
by
ibraheemdev
5y ago
AWS lambda is built on Firecracker MicroVMs, written completely in Rust. Fly.io uses it as well.
116.
▲
Proto Actor – Ultra fast distributed actors for Go, C# and Java/Kotlin
(github.com)
2 points
by
ibraheemdev
5y ago
|
0 comments
117.
▲
by
ibraheemdev
5y ago
Well the block_on runtime is only meant for testing or bridging sync and async code, so it wouldn't solve the problem :)
118.
▲
by
ibraheemdev
5y ago
I think the OP meant that those who did not want async would use block_on, while the async API would just work for those who wanted to use it.
119.
▲
by
ibraheemdev
5y ago
Well that's just the "simple primitive for 'block the current thread on this async call'", which can, with the new `Wake` trait, be written in around 10 lines of code. The real change would be adding an actual runti
120.
▲
by
ibraheemdev
5y ago
Because synchronous IO functions block the current thread and return the value directly, while asynchronous function return a `Future`, which will eventually resolve to the value, and can be polled concurrently with other futures as to ne
More ›