S

Sebastian Dröge

coaxion.net · Personal blog · on HN since 2016

Sebastian Dröge, a GStreamer developer, writes about multimedia plugins, Rust, and performance work.

What HN saysHN commenters cite his posts in Rust debates, including bounds-checking costs and integrating Rust into existing C codebases.
16HN people shared it
4linked it in comments
14stories submitted
84story points
3 years agolast shared
2016people per year2026

Most-shared posts

  1. 1
  2. 2
    Writing GStreamer plugins and elements in Rust
    2 people · 3 points · first shared 2016 · discussion on HN
  3. 3
  4. 4
  5. 5
    Porting EBU R128 audio loudness analysis from C to Rust
    1 people · 57 points · first shared 2020 · 6 comments on HN
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
    Writing GStreamer Elements in Rust (Part 2)
    1 people · 2 points · first shared 2016 · discussion on HN
  12. 12
  13. 13
    The GTK Rust bindings are not ready yet? Yes they are!
    1 people · 1 points · first shared 2019 · discussion on HN

What HN people wrote when they linked it

PathOfEclipse · 2022-10-25
If your bounds checks can make your programs as much as twice as slow, then I think it's worth considering that bounds checking is not a panacea for low-level code: https://coaxion.net/blog/2018/01/speeding-up-rgb-to-grayscale-conversi…
MaulingMonkey · 2019-03-30
> Seems bad for rust that safe code is 25x slower. Most of the optimizations listed have nothing to do with unsafe, and have to do with algorithmic changes that you could apply in any language, and could apply to safe code just as well as to unsafe code. Even if we pretend all unsafe used there is necessary, and interpret the source in the worst possible light for rust - that the optimization steps would be impossible without unsafe - I think we'd only be talking 4x to 5x slower from this article, not 25x. But - I strongly suspect not all that unsafe is necessary, and the post certainly doesn't claim it is. The first code snippet uses unsafe to skip bounds checks. There are plenty of other ways to get the optimizer to skip them for you in safe code - or at the very least, hoist them out of the loop instead. This seems like a good read showing some concrete examples: https://coaxion.net/blog/2018/01/speeding-up-rgb-to-grayscale-conversi… Explicitly using SIMD code like the second code snippet does might require unsafe for the transmuted slicing under the hood (implemented as raw pointer derefs in this case), but it's possible to build safe abstractions on top of that. That blog post links this, for example, although it didn't end up using it (EDIT: Actually, it initially didn't, but now does): https://github.com/AdamNiederer/faster . It does use unsafe internally: …
zokier · 2023-07-09
That is mischaracterization. Rust has been intended to be able to incrementally integrate to C/C++ codebases, of course most significantly integrating Rust/Servo components to Firefox/Gecko. See for example this rsvg presentation[1] and gstreamer blog post[2] for examples of the interop [1] https://viruta.org/docs/fmq-porting-c-to-rust.pdf [2] https://coaxion.net/blog/2016/05/writing-gstreamer-plugins-and-element…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close