Lightning Talk: Write Valid C++ and Python in One File - Roth Michaels - CppCon 2023

  Рет қаралды 7,072

CppCon

CppCon

Ай бұрын

cppcon.org/
---
Lightning Talk: Write Valid C++ and Python in One File - Roth Michaels - CppCon 2023
github.com/CppCon/CppCon2023
A demo of a neat/horrifying hack to use the preprocessor to define a constants file that can be consumed by C++ and Python.
---
Roth Michaels
Roth Michaels is a Principal Software Engineer at Native Instruments, an industry leader in real-time audio software for music production and broadcast/film post-production. In his current role he is involved with software architecture and bringing together three merged engineering organizations and legacy codebases: Brainworx, iZotope, and Native Instruments. He also supports the Audio Research team to help accelerate moving research to productization and developing fast prototyping tools for product teams. Before merging with Native Instruments, when he joined iZotope, Roth was the lead library designer of a new internal cross-platform "Glass", part of which is now available as open-source. More recently in his former role as Mix/Master Software Architect, Roth helped develop the reference implementation to move iZotope's products to subscription and led the team that launched the company’s first SaaS offering for music producers. Roth studied music composition at Brandeis University and continued his studies in the Dartmouth Digital Musics program. Roth began his career in software development writing software for his own compositions, and the works of other composers and artists, and teaching MaxMSP to composers and musicians; both private instruction and designing university courses. Before joining iZotope, he was working as a consultant for small startups working on mobile applications specializing in location services and Bluetooth.
---
Videos Filmed & Edited by Bash Films: www.BashFilms.com
KZbin Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---
Registration for CppCon: cppcon.org/registration/
#cppcon #cppprogramming #cpp #pythonprogramming

Пікірлер: 15
@bruderdasisteinschwerermangel
@bruderdasisteinschwerermangel Ай бұрын
this looks like the kind of "temporary workaround" solution you find in your project and git blame will date it like 6 years back, truly beautiful
@SergeantPepper
@SergeantPepper Ай бұрын
I like it. I feel this is exactly why C had the preprocessor in the first place, and they limit it to one file so it doesn't get out of hand. 👍
@sirhenrystalwart8303
@sirhenrystalwart8303 Ай бұрын
This is pretty clever. Personally, I would create a tiny python binding with a function to return the version number, and let c++ be the source of truth.
@gerard144
@gerard144 Ай бұрын
The preprocessor just keeps on giving!
@hbobenicio
@hbobenicio Ай бұрын
That was genius!!!
@muzikleringucu
@muzikleringucu Ай бұрын
clever. the same logic can be used in cmake as well. thanks for idea
@Eyalkamitchi1
@Eyalkamitchi1 Ай бұрын
lol wtf this is genius, we need to implement this for the entire language
@EzekielWarren
@EzekielWarren Ай бұрын
horrible (i love it)
@bruradagast
@bruradagast Ай бұрын
hilarious 🤣🤣🤣
@BenjaminWheeler0510
@BenjaminWheeler0510 Ай бұрын
ever heard of JSON?
@lsp0
@lsp0 Ай бұрын
Just because you can doesn't mean you should
@IsmeGenius
@IsmeGenius Ай бұрын
Sadly I have an experience working with code that used this approach. It was some serialization code, and it was not pretty. It my seem cool, but it is disgusting. Correct way? Brace yourself, write a generator which takes JSON or something and outputs normal C++ and python files.
@organichand-pickedfree-ran1463
@organichand-pickedfree-ran1463 Ай бұрын
disgusting😂
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 25 МЛН
КАХА и Джин 2
00:36
К-Media
Рет қаралды 4 МЛН
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 35 МЛН
小路飞姐姐居然让路飞小路飞都消失了#海贼王  #路飞
00:47
路飞与唐舞桐
Рет қаралды 95 МЛН
Making a Very Minimal Windows Executable in C
7:48
Nir Lichtman
Рет қаралды 80 М.
Python's 5 Worst Features
19:44
Indently
Рет қаралды 80 М.
What Software Architects Do That Programmers DON'T
12:51
Thriving Technologist
Рет қаралды 97 М.
The cloud is over-engineered and overpriced
14:39
Tom Delalande
Рет қаралды 99 М.
How AI 'Understands' Images (CLIP) - Computerphile
18:05
Computerphile
Рет қаралды 156 М.
Your understanding of evolution is incomplete. Here's why
14:21
POCO F6 PRO - ЛУЧШИЙ POCO НА ДАННЫЙ МОМЕНТ!
18:51
Эволюция телефонов!
0:30
ТРЕНДИ ШОРТС
Рет қаралды 6 МЛН
Latest Nokia Mobile Phone
0:42
Tech Official
Рет қаралды 491 М.
Huawei который почти как iPhone
0:53
Romancev768
Рет қаралды 559 М.
как спасти усилитель?
0:35
KS Customs
Рет қаралды 507 М.
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 3,7 МЛН