Cpp2Rust: Automatic Translation of C++ to Safe Rust

Cpp2Rust는 Clang의 AST를 기반으로 C++ 코드를 완전 안전한 Rust 코드로 자동 변환하는 오픈소스 도구입니다. 변환 과정에서 libcc2rs 런타임 라이브러리를 활용해 C 포인터를 안전하게 처리하며, 기본적으로 참조 카운팅 모델을 사용해 안전한 Rust 코드를 생성합니다. --model=unsafe 옵션을 통해 디버깅 및 성능 비교용으로 unsafe Rust 코드 생성도 지원합니다. CMake 프로젝트 전체 변환과 테스트 스위트도 제공하여 실무 적용 가능성이 높습니다.

https://github.com/Cpp2Rust/cpp2rust

#cpp2rust #rust #clang #transpiler #saferust

GitHub - Cpp2Rust/cpp2rust: Cpp2Rust: Automatic Translation of C++ to Safe Rust

Cpp2Rust: Automatic Translation of C++ to Safe Rust - Cpp2Rust/cpp2rust

GitHub

0̵̹̯̮͔̘͆̏̒̀̎̀̍͗̄͆̽̎̎̾̽x̸͕̞͇̱͙̭͆̊̽͐̆̚͝ͅṁ̶̒͑̉̾̏̀͐̈̚ (@0xmons)

extruder라는 실험적 트랜스파일러가 소개되었다. 이 도구는 Solidity를 TypeScript로 변환하며, 개발자가 블록체인 스마트컨트랙트 코드를 다른 언어로 다루기 쉽게 만드는 새로운 개발 도구로 볼 수 있다.

https://x.com/0xmons/status/2049212605068353931

#solidity #typescript #transpiler #blockchain #opensource

0̵̹̯̮͔̘͆̏̒̀̎̀̍͗̄͆̽̎̎̾̽x̸͕̞͇̱͙̭͆̊̽͐̆̚͝ͅṁ̶̒͑̉̾̏̀͐̈̚ (@0xmons) on X

introducing extruder: extruder is an **experimental** **vibe-coded** transpiler that converts Solidity into TypeScript. if this sounds insane to you, let me explain why. if you're already insane, feel free to jump to the end, download the package, and start extruding.

X (formerly Twitter)
I'm going to be weird and defend the term #transpiler for the thing that converts TypeScript to JavaScript and similar. The main argument against the term is that it's "just a compiler". I will agree, it is a compiler. But, is a program that compiles C code to machine code a transpiler? No, it's not. So, a transpiler is a compiler, but not every compiler is a transpiler. That means the word conveys *more meaning* than "just a compiler". This has been another installment from the Angry Linguist.
#tinycc based #RStats #C #Transpiler, only 4x slower than #{quickr} for the convolution benchmark ! 2-3x faster than naive #C + marshaling. #tinycc transpilation will have an obvious advantage since it can always fallback when transpiling and use `Rf_lang3` since it has access to R's C runtime !

RE: https://bsky.app/profile/did:plc:hmk4f5yf3ohtsvw32sbtwvk3/post/3memwdbpbqs22

[GoScript - Go 코드를 TypeScript로 변환하는 트랜스파일러

GoScript는 Go 코드를 TypeScript로 변환하는 AST 기반 트랜스파일러로, Go의 주요 기능들을 TypeScript 문법으로 매핑하여 백엔드와 프론트엔드 간 코드 재사용을 지원합니다. Goroutine은 async/await 기반 비동기 처리 로 변환되어 브라우저 환경에서도 실행 가능하며, VarRef 시스템을 통해 포인터 참조와 값 전달을 구현합니다. Generics, Reflection, Closure 등 고급 언어 기능도 지원하며, CLI와 API를 통해 변환이 가능합니다.

https://news.hada.io/topic?id=26724

#transpiler #goscirpt #typescript #go #ast

GoScript - Go 코드를 TypeScript로 변환하는 트랜스파일러

<ul> <li> <strong>Go와 TS간 비즈니스 로직 공유</strong>를 목표로 개발된 <strong>AST 기반 트랜스파일러</strong> </li> <li>Go 언어의 <stron...

GeekNews

@akkartik Since #Forth is just so great for super concise code, allow me to add another example, here to transpile (a subset of) Forth into GLSL for livecoding shaders. This one is using my old 2015 CharlieVM and you can find all the example source snippets in the readme here:

https://github.com/thi-ng/charlie

The REPL itself live at:
https://forth.thi.ng/

The attached screen capture shows 4 shader examples (longest one is 12 lines of code)

#Livecoding #REPL #GLSL #Shader #Transpiler

Transpiler, a meaningless word | Rachit Nigam

Working across various domains and having to switch programming languages for all of them, reimplement features, has become too much of a mental task. I am seriously considering creating a custom language or at least a transpiler with multiple backends.

#programming #langdev #compiler #transpiler #devthoughts

Hacker News 的底層換掉了...

在 Hacker News Daily 上看到「Hacker News now runs on top of Common Lisp」這篇,對應的討論在「Hacker News now runs on top of Common Lisp (lisp-journey.gitlab.

Gea-Suan Lin's BLOG