Тёмный

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

CppCon
Подписаться 153 тыс.
Просмотров 8 тыс.
50% 1

cppcon.org/
---
Lightning Talk: Write Valid C++ and Python in One File - Roth Michaels - CppCon 2023
github.com/Cpp...
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
RU-vid Channel Managed by Digital Medium Ltd: events.digital...
---
Registration for CppCon: cppcon.org/reg...
#cppcon #cppprogramming #cpp #pythonprogramming

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@SergeantPepper
@SergeantPepper 5 месяцев назад
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. 👍
@bruderdasisteinschwerermangel
@bruderdasisteinschwerermangel 5 месяцев назад
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
@sirhenrystalwart8303
@sirhenrystalwart8303 5 месяцев назад
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.
@muzikleringucu
@muzikleringucu 5 месяцев назад
clever. the same logic can be used in cmake as well. thanks for idea
@hbobenicio
@hbobenicio 5 месяцев назад
That was genius!!!
@Eyalkamitchi1
@Eyalkamitchi1 5 месяцев назад
lol wtf this is genius, we need to implement this for the entire language
@EzekielWarren
@EzekielWarren 5 месяцев назад
horrible (i love it)
@BenjaminWheeler0510
@BenjaminWheeler0510 5 месяцев назад
ever heard of JSON?
@bruradagast
@bruradagast 5 месяцев назад
hilarious 🤣🤣🤣
@lsp0
@lsp0 5 месяцев назад
Just because you can doesn't mean you should
@organichand-pickedfree-ran1463
@organichand-pickedfree-ran1463 5 месяцев назад
disgusting😂
@IsmeGenius
@IsmeGenius 5 месяцев назад
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.
@gerard144
@gerard144 5 месяцев назад
The preprocessor just keeps on giving!
@dominuspiritus
@dominuspiritus 9 дней назад
Protobuf is crying in the corner of the room.
Далее
Microservices are Technical Debt
31:59
Просмотров 319 тыс.
We finally APPROVED @ZachChoi
00:31
Просмотров 7 млн
2 Years Of Learning C | Prime Reacts
22:24
Просмотров 289 тыс.
Getting Started with C++ - Michael Price - CppCon 2023
57:55
Being Competent With Coding Is More Fun
11:13
Просмотров 80 тыс.
Thoughts About Unit Testing | Prime Reacts
11:21
Просмотров 225 тыс.
Nix explained from the ground up
23:39
Просмотров 32 тыс.
Don't Contribute to Open Source
9:55
Просмотров 234 тыс.