Search
Setup for Free
S
Silk.NET
•
3y ago
Mr Mustache
hey does anybody know a library that can take unsafe c++ code and generate safe C# without pointers
hey does anybody know a library that can take unsafe c
+
+ code and generate safe C
# without pointers or IntPtr
's
?
Silk.NET
Join
A Discord server for the Silk.NET - your one-stop-shop for high-speed .NET multimedia, graphics, and compute. FOSS.
1,793
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
L
Lyris the Kitori
•
8/15/23, 6:59 PM
no
M
Maxine
•
8/15/23, 6:59 PM
no
:
)
M
Mr Mustache
OP
•
8/15/23, 6:59 PM
sad
T
TechPizza
•
8/15/23, 6:59 PM
there is one
, but pls dont
K
Kai
yo @baebey if you ever wondered what came out of this absolute abomination, I ju...
L
Lyris the Kitori
•
8/15/23, 7:00 PM
nice
M
Mr Mustache
hey does anybody know a library that can take unsafe c++ code and generate safe ...
L
Lyris the Kitori
•
8/15/23, 7:02 PM
there isnt much that can transpile c
+
+ to c
# in the first place
M
Maxine
•
8/15/23, 7:03 PM
it can arguably be done
, but not safely
M
Mr Mustache
OP
•
8/15/23, 7:03 PM
I wonder why it
's so hard to do
L
Lyris the Kitori
•
8/15/23, 7:03 PM
it can be done but theres no prebuilt
"it just works
" tmk
M
Mr Mustache
I wonder why it's so hard to do
L
Lyris the Kitori
•
8/15/23, 7:03 PM
different languages that work inherently differently
F
Furball
•
8/15/23, 7:04 PM
c
+
+ is a different beast from c
L
Lyris the Kitori
•
8/15/23, 7:04 PM
why are you trying to avoid unsafe c
# anyway
c
+
+ is an inherently unsafe language
M
Mr Mustache
OP
•
8/15/23, 7:05 PM
I want to generate a safe raylib
-cpp wrapper
P
Perksey
•
8/15/23, 7:05 PM
(and if you
’re trying to use C
+
+ or C from C
# then you are doing unsafe things regardless of whether you
’re using things like pointers
)
F
Furball
•
8/15/23, 7:05 PM
i sometimes wonder if half of all c
# programmers have become rust programmers avoiding unsafe as if its a sin
L
Lyris the Kitori
•
8/15/23, 7:05 PM
they are
M
Mr Mustache
I want to generate a safe raylib-cpp wrapper
P
Perksey
•
8/15/23, 7:05 PM
that
’s impossible
, calling into a C
+
+ library is unsafe
F
Furball
i sometimes wonder if half of all c# programmers have become rust programmers av...
M
Maxine
•
8/15/23, 7:05 PM
i can
't stand rust
, the syntax is toxic
L
Lyris the Kitori
•
8/15/23, 7:06 PM
calling into native code will always be unsafe
M
Mr Mustache
OP
•
8/15/23, 7:06 PM
I am talking about a safe api not safe as in rust
F
Furball
•
8/15/23, 7:06 PM
the only thing that bothers me about rust is the borow checker
F
Furball
i sometimes wonder if half of all c# programmers have become rust programmers av...
P
Perksey
•
8/15/23, 7:06 PM
I love rust
. I also love unsafe where it
’s necessary
.
A
Aqua
•
8/15/23, 7:06 PM
i love rust
F
Furball
•
8/15/23, 7:06 PM
fuck the borrow checker
L
Lyris the Kitori
•
8/15/23, 7:06 PM
rust syntax is great
, i dont like the borrow checker
P
Perksey
•
8/15/23, 7:06 PM
The borrow checker is awesome tbh
, an absolute necessity when writing embedded software
.
A
Aqua
•
8/15/23, 7:06 PM
would use it for gamedev but can
't be bothered to use an ecs
F
Furball
•
8/15/23, 7:06 PM
exactly
, syntax is nice but borrow checker can suck my ass
M
Mr Mustache
I am talking about a safe api not safe as in rust
M
Maxine
•
8/15/23, 7:07 PM
cppsharp
M
Mr Mustache
I am talking about a safe api not safe as in rust
C
chairclr
•
8/15/23, 7:07 PM
you
'll need to make
/use
/generate unsafe bindings and then make a higher level safe wrapper yourself
M
Maxine
•
8/15/23, 7:07 PM
but it
's buggy
M
Maxine
•
8/15/23, 7:07 PM
and generally shit to use
M
Mr Mustache
I am talking about a safe api not safe as in rust
F
Furball
•
8/15/23, 7:07 PM
dont be pussy just slap unsafe into your code
P
Perksey
•
8/15/23, 7:07 PM
you can
’t automate safety
M
Maxine
•
8/15/23, 7:07 PM
so true furball
F
Furball
dont be pussy just slap unsafe into your code
P
Perksey
•
8/15/23, 7:08 PM
that
’s a little inappropriate choice of words
(please don
’t do that again
) but I agree with the sentiment
C
chairclr
•
8/15/23, 7:08 PM
M
Maxine
•
8/15/23, 7:08 PM
i love crashing the runtime with cryptic errors
L
Lyris the Kitori
•
8/15/23, 7:08 PM
it drank too much beer
M
Maxine
i love crashing the runtime with cryptic errors
C
chairclr
•
8/15/23, 7:09 PM
i love execution engine exception
C
chairclr
Empty message
C
chairclr
•
8/15/23, 7:09 PM
wait does this mean
.net bot drinks alcohol
C
chairclr
•
8/15/23, 7:09 PM
uh oh
M
Maxine
•
8/15/23, 7:09 PM
a friend of mine was compiling for windows phone 7 and roslyn kept generating invalid IL for some reason
C
chairclr
•
8/15/23, 7:09 PM
lmao
L
Lyris the Kitori
•
8/15/23, 7:09 PM
.net bot is an alchoholic
F
Furball
•
8/15/23, 7:09 PM
yooo same
L
Lyris the Kitori
•
8/15/23, 7:10 PM
oh
F
Furball
•
8/15/23, 7:10 PM
we have so much in common
C
chairclr
•
8/15/23, 7:10 PM
how old are you again
?
L
Lyris the Kitori
•
8/15/23, 7:10 PM
thats not healthy
Next page
Similar Threads
Anyone know of any good "UI" library
S
Silk.NET / help-and-questions
3y ago
ClangSharp Objective-C
S
Silk.NET / team-talk
3y ago
C-like bindings
S
Silk.NET / team-talk
4y ago
State of code gen
S
Silk.NET / help-and-questions
4y ago