298 karma · joined Sep 17, 2019 (7y ago) · 99 submissions
comment 5d ago · link · parent
The problem with strong typing is sometimes you enforce a rule that is too rigid.
A good example is with UTC: suppose you use strong typing to enforce across ALL datetime fields that they must be UTC.
Then you need to store a birthday. A birthday stored as a UTC timestamp will show up a day early for users in another timezone.
With Agents people are starting to enforce a lot more prose style requirements in their AGENTS.md or CLAUDE.md files, which have the advantage of being nuanced and flexible.
The problem is these natural-language rules are prose, often ignored by agents, or arbitrarily applied.
Perhaps a natural language rules-engine that runs everything through a decision model asking "Does this meet this criteria" has the strength of both.
The validator could be enforced by a script to run on every commit, and it could instead enforce "All date fields should be stored in UTC, except for instants or local dates."
It could even enforce things like "we never store PII in any field not in our secure-store," and other high-level criteria.
comment 1mo ago · link · parent
You can view it here for nostalgia reasons: https://web.archive.org/web/20260828162646/https://coscreen....
comment 1mo ago · link · parent
I'm in Utah, and Till is in CA, so it's vital to our daily work.
Truly I don't understand how people do remote work or collaboration these days... maybe they don't? Or maybe Zoom/Meet are good enough (I really truly think they aren't, it's an abusive horrible experience every time I am forced to use Zoom or Meet for anything).
There just seems to be something sticky about them, but the people who try a CoScreen, Tuple, Pop, or other tool designed around collaboration I think become converted permanently, but getting people into that funnel is very very hard.
comment 1mo ago · link · parent
It's on our product roadmap to have a mode to support this though.
Some of our engineers have discussed a totally p2p iroh based video transport and other ideas.
LiveKit was the fastest/easiest way to get it to market, and it was something Till and I volunteered to pay for at the moment so we have an off-the-shelf cloud offering that is free and usable.
From that perspective it has worked great.
9.
Show HN: Petal, open-source CoScreen/ScreenHero finally free(petal.live ↗)
228 points · by thedracle · 1mo ago · 41 comments
comment 3y ago · link · parent
Isn't the overhead for C++ exceptions quite significant, especially if an exception is thrown?
Exception handling can also increase the size of the binary because of the additional data needed to handle stack unwinding and exception dispatch.
I think a number of optimizations are made quite a bit more complex by exception handling as well.
comment 3y ago · link · parent
Lies, damn lies, and benchmarks?
I can at least say, the performance difference between C, C++, and Rust, is splitting hairs.
If you want to write something performant, low level, with predictable timing, all three will work.
I'm spending a lot of time building projects with Rust & C++ these days. The issue/tradoff isn't performance with C++, but that C++ is better for writing unsafe code than Rust.
https://www.p99conf.io/2022/09/07/uninitialized-memory-unsaf...
comment 3y ago · link · parent
Description:
My team @ Datadog is actively looking to hire a Senior Video Application Engineer, and a Backend Systems Engineer, to work closely with the CoScreen (www.coscreen.co) team on developing our next generation remote collaboration tool.
Anyone with experience with real-time media streaming, video conferencing, and WebRTC, particularly with low-level skills (If you’ve integrated with or ripped into the low-level details of libwebrtc, ffmpeg, gstreamer, pion, etc etc) we’d love to chat with you.
Also if you’re a low level developer with experience developing desktop applications, particularly with Rust, or C++ skills, we’d love to hear from you. We are looking for someone who can work on a diverse set of challenging and interesting problems, from remote application control on OSX and Windows, to maintaining Rust based backend infrastructure.
Senior Video Conferencing Engineer: https://careers.datadoghq.com/detail/5103763/?gh_jid=5103763
Backend Systems Engineer: https://careers.datadoghq.com/detail/5103658/?gh_jid=5103658
Tech stack: Rust, C++, Typescript, Electron, WebRTC, XMPP, Jitsi.
Compensation: $130000.00 - $300000.00, plus a competitive equity package, and may include variable compensation.
Contact: ben.papismedov@datadoghq.com, jason.thomas@datadoghq.com
comment 3y ago · link · parent
We still aren't using hardware accelerated encoding. It's the last, and biggest contributor to CPU we see after profiling.
Moving to Rust was more of a decision for safety, than for performance, since most of the code we ported to Rust was in C++ already. The good news is we didn't see dramatic differences in performance between C++ and Rust.
Rust has a bunch of highly optimized, fantastic libraries, that helped with testing, profiling, and evaluating hardware acceleration/SIMD.
We will be putting together a blog about our experiences with Rust & C++, that goes into the nitty gritty of the good, the bad, and the ugly of our experiences here.
A great deal of the optimizations came from better profiling, better tooling, and a focus in that area. There is still a ways to go, and we are continuously working on improvements in this area.
Rust has been an incredible tool on reducing the work required to maintain, and change, core components, and we have even been able to have Rust target a static cylib library, and linked it in from a large C++ library.
The really great thing with Rust is it has a very minimal runtime, and integrates well with C++. It's not an all-or-nothing proposition to integrate it into a project. The maturity of the tooling, third party libraries, the build and package system, have been incredibly useful tools.
comment 3y ago · link · parent
I am an avid Synergy user, and what they have accomplished in terms of direct mouse/keyboard input synchronization is very impressive, and I use it on a daily basis.
I can say however, it's very different than CoScreen and what CoScreen seeks to achieve, and is performed in a technically different manner.
CoScreen injects mouse interaction and keyboard presses directly into a window on OSX (if it isn't a weird type of window like an emulator, or something that captures and handles input on a very low level).
Synergy simulates mouse movements/events directly over windows, interfering with the position/location and current state of the remote cursor. It's much more like a remote mouse-driver for a lack of a better comparison.
In many ways this is more performant, simpler, and works on a wider variety of windows right out of the box.
On another level it interferes more with remote users, and prevents multi-player collaboration.
I definitely could see us producing a mode that is LAN focussed and which provides synergy like behavior, but the current remote collaboration is really geared from a UX perspective around multi-player in CoScreen.
comment 3y ago · link · parent
We are working on a headless Linux client that will allow you to stream first pty/terminals, and then windows, into a CoScreen from Linux systems.
It's going to be a very small utility, and we hope to provide access to it by May/June.
This will eventually evolve into a full blown client.
In the meantime we will have a web client which will work on Linux released shortly, it's currently being privately tested within DataDog.
comment 4y ago · link · parent
I think cutting through the hype-train is something every engineer learns with time, but some times there are diamonds to be picked out.
At least for my own anecdotal experience, Rust has lived up to a lot of the hype for the time-critical low-level projects I was formerly performing with C/C++.
comment 4y ago · link · parent
Before having gigantic caches that would engulf nearly any sized contiguous list, linked lists were sort of vogue, frugal, and thought of as being fairly performant.
comment 4y ago · link · parent
In the 2ks/10's, at least in my area, embedded jobs dried up. Mobile development produced a lot of very high performance SoCs that were cheap, and had high quality already developed middleware layers (Android for instance). They sort of conquered a lot of the embedded media processing space I was an expert in.
As a result I jumped ship to mobile, but it was much higher level programming far away from the SoC, and most of the lower level code was being written in China/South Korea.
This basically meant for the engineers that weren't able to shift, they basically weren't scouting around for, or finding other jobs (in general).
So even though there is a small pool of engineers with these skills, a lot of people left the embedded space at a time when some of those jobs are starting to shift back, leaving a shortfall, but also a pay gap.
comment 4y ago · link · parent
I have several C++ projects that integrate a portion written in Rust, where the Rust project produces a .a file that is ultimately linked with clang into a larger C++ project.
I definitely agree Rust has a long road to adoption in embedded/low level systems, and particularly areas with custom compilers/toolchains that rely heavily on system specific undefined behavior.
But it's a lot closer than I had thought it was a year or so ago.
comment 4y ago · link · parent
Get Linux on your computer, study the Linux kernel, and learn about EBPF.
Write some monitoring software using EBPF, learn all about it. Learn about the Linux Kernel, and LDD.
Then apply for jobs in these areas, be ambiguous about your on-the-job experience.
Speak competently when you get the interview about the tech, the companies that are hiring for these skills are desperate to hire for them, there aren't people with these skills falling out of trees.
It's a bad time in the industry, but unemployment is something like 2.3%. There is a position out there for you.
comment 4y ago · link · parent
This was an effective strategy for smoking. Stopping ads for soda, and similarly producing ads that inform people of the risks of high amounts of soda consumption with the tax.
comment 4y ago · link · parent
I think the issue is really just working with ICE, and the ethical concerns that brings up.