frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How to learn how to develop real time applications?

4•creatorcoder•12h ago
I am a C++ programmer and I want to learn how to develop real-time programs. It looks like it's a "lost art" these days.I think we all use such programs every day to one degree or another. For example, if you work with a network, then you probably use wireshark. If you work with audio, then you probably use something from this field. What do I mean by real-time apps? These are applications where we have a part that creates data (or a data stream, with high frequency) and a part that processes it (or gui part, if we somehow process it). I would like to focus specifically on network applications. I'll say right away that I've already read Richard Stevens book[1], but it doesn't seem to be enough to develop applications of this level.

[1] Richard Stevens - Unix Network Programming

Comments

DmitriyBuchilin•10h ago
You mean you want to use websockets to full realtime?
maheenaslam•1h ago
pick something you actually use.. wireshark, a simple packet sniffer, anything and just reverse engineer how it handles the producer/consumer split. that gap between capturing data and displaying it without dropping frames is where all the interesting problems live.
mda_damico•1h ago
Multiplayer games are a type of application that requires real-time networking. Try reading "Multiplayer Game Programming: Architecting Networked Games" by Josh Glazer and Sanjay Madhav. Another type of programming with essential real-time is microcontrollers. You can dig into this way.
fragmede•36m ago
Build your own network audio microphone and speaker. Don't cheat by adding a giant buffer. Cause problems on the wifi and figure out how to compensate for those problems.
austin-cheney•29m ago
Here is how I do it in JavaScript: https://github.com/prettydiff/aphorio

What you need is:

* low overhead full-duplex transmission, which for the web is WebSockets

* service data, which is network messaging in a predefined format for an application to complete a task

* event-oriented architecture, which is that the application automatically executes a thread in response to interactions or observed changes

Ask HN: Did Messages get removed from Google Takeout?

15•MollyRealized•9h ago•0 comments

The solution the supply chain problems is removing your deps from .gitignore

4•SchizoDuckie•10h ago•0 comments

Ask HN: How to learn how to develop real time applications?

4•creatorcoder•12h ago•5 comments

Ask HN: Does anyone what a "RiotCache.dat" file was doing in my EFI partition?

5•kromerless•18h ago•6 comments

Using games/cards to learn new skills

5•dominikz•14h ago•0 comments

Ask HN: Is $300/HR too low these days for custom full stack?

15•noduerme•1d ago•10 comments

Ask HN: Do you have a colophon for your personal website?

8•susam•19h ago•5 comments

We were building infra for OpenClaw, and today I just tried Hermes and holy shit

5•Stanlyya•20h ago•1 comments

Ask HN: Shouldn't Google need to give a public statement about Railway incident?

177•srameshc•3d ago•105 comments

Ask HN: Failing interviews for mid-level SWE in UK, advice please

18•mjb8086•2d ago•11 comments

Alternatives to HN for "tech outside of AI" discussion?

58•summonerOS•4d ago•35 comments

Ask HN: How to increase depth instead of breadth as 10 yoe as swe?

8•Cheesebh•1d ago•6 comments

Ask HN: Are there any serious efforts to organize tech labor now?

35•0rganize•3d ago•26 comments

Ask HN: OpenAI, SpaceX/xAI, Anthropic all to IPO, is this a sign of the peak?

7•virgildotcodes•1d ago•10 comments

Ask HN: How much AI is in your writing?

7•js98•1d ago•26 comments

Ask HN: What to learn and do, that makes me least affected by AI in STEM?

6•s3arch•1d ago•5 comments

Tell HN: Google banned Railway's account. Everything down

32•sergiotapia•4d ago•18 comments

Tell HN: I went to Alaska's northernmost town and this was the GeoIP location

3•ironmagma•2d ago•0 comments

Ask HN: What's New in Crypto?

5•kaycebasques•1d ago•11 comments

Tell HN: The Threat to US Citizen's ID / Voting Is Private Services

2•m3047•1d ago•8 comments

Valgrind-3.27.1 Is Available

10•paulf38•2d ago•1 comments

"Subligence" – proposed coinage for LLM "intelligence"

4•akiarie•1d ago•5 comments

What I learned from tinkering with programming languages in the last 34 days

3•alonsovm44•2d ago•2 comments

Why does it look like LLMs consistently overestimate implementation time?

4•bridgettegraham•2d ago•14 comments

Tell HN: Gemini 3.5 Flash breaks in stupid ways

8•XCSme•2d ago•2 comments

You've reached the end!