[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1756584072007.png (121 KB, 512x512)
121 KB
121 KB PNG
>Compiled to native (AOT)
>sane syntax
>Valid C++ replacement
I want it inside every kernel, NOW.
>>
>>106435775
>Compiled to native (AOT)
It's not AOT. It compiles to CIL (bytecode) in an .exe format, however the .exe file doesn't contain native machine code (except a small part for systems with no c# interpreter installed, to show an error), it contains CIL bytecode instead. The interpreter compiles it (JIT) to machine code with naive quick compilation that isn't as performant as AOT and it cant really be as its using garbage collection among other reasons.
>>
>>106435913
It can be compiled to native now, anon.
As machine code.
>>
Microsoft holds the monopoly with their proprietary .NET debugger. Sorry no sell.

Rust won.
>>
>>106435775
unsafe {} is kewl
>>
>>106436108
>monopoly with their proprietary .NET debugger
Compiler is open source. You can use their proprietary debugger in an offline environment, just develop your shit and then use your freetard shit afterwards.
>>
why not python?
>>
>>106436261
>package not compatible with Python 3.13, need to downgrade to Python 3.12
>package doesn't compile with glibc 2.42, need to downgrade to 2.41
>package doesn't compile on aarch64 because it uses x86 assembly for some fucking reason
Why not just shove rocks up your urethra? It would be a better experience.
>>
>>106436063
Can it run on bare metal, without any runtime?
>>
>>106435775
The lack of any meta-programming support in C# makes using it agonizing.
>>
>>106436196
Thanks that's too much gymnastics. We are not trying to boil the ocean here. No sell.
>>
>>106435775
Im a c# dev and its nice. I dont have to deal with dependency hell, caus the standard library contains most stuff i need already. If you write good code its fast, not as fast as an unmanaged language, but decently fast.
Not the biggest fan of wpf, but whatever. Adds more and more expression style stuff like expression bodied syntax etc, good quality of life. Overall very good general purpose language.
>>
>>106436272
you have UV packaging now which makes it a none issue
>>
slow as shit.. wasted 5+ years on this bullshit...

it was always upsetting when customers went... wtf but your old crap went smooth... cancer though the language is okay but come on my ... turtle memory hog..
>>
what's really cool with this dog shit language is ie reflection .. but is so so.... SOOO slow.....
>>
>>106436325
>>106436340
saar
>>
>>106435775
>write symbols capitalised and have no distinguish between functions and classes
No, Java won.
>>
>>106436261
scripting is not programming

man the hours I've spent in ilspy because of c shart...
>>
Why do people feel the reason to rewrite everything

(i mean i know why, it's political) It's retarded.
>>
>>106436349
kek

c shart can kiss my ass..
>>
>>106436340
>>106436325
If c# is slow its because it suffers the same disease as java, i.e. shit tons of abstraction over abstraction over abstraction and deep inheritance hierachies and shit like that. Or massive reflection. Or using efcore entirely wrong. But that is not the languages fault, thats just bad devs
>>
File: 1731820209047410.png (1.73 MB, 1919x1028)
1.73 MB
1.73 MB PNG
>>106436355
is it still scripting if I made a gui app with python? (pyqt)

I did have to do some "garbage collection" like destroying gui objects and making sure objects are properly inhreited but its child objects to free up memory otherwise they would just linger
>>
>>106436319
Great, only 20 years until the ML community starts using it.
>>
>>106436278
Can C++ run on bare metal, without any runtime?
I think you're slowly but surely missing the point
>>
>>106435775
No command line debugger on Linux when gdb just werks, unfortunately. I do like the language itself a lot and the project/solution structure. I’ve had problems with nuget (such as claiming newer versions of a package are outdated, if another dll was compiled using an older version of the same package) in the past, but it’s pretty good. They kinda fucked up the targeting runtime in Net 5.0, and now you need a property group in your projects if you want to quickly target a different RID, when it use to be so easy before.
>>
>>106436278
No, but bflat can.
https://flattened.net/
>>
>>106435913
You’re describing self contained executables. There is AOT. Stop posting.

AOT is dumb, though.
>>
File: 1731504597003774.png (250 KB, 718x588)
250 KB
250 KB PNG
>>106436261
>why not an infinitely inferior lingo with below shit-tier performance and nocoder syntax no developer would ever use ?
>>
>>106436550
I could just set that package error to be a warning, and it’d probably still build, I suppose. Think it should just be a warning though.
>>
>>106436549
>Can C++ run on bare metal, without any runtime?
Yes. It's called freestanding mode. It's what you'd use to write an OS or an embedded system.
You tend to avoid the STL when doing that, as it's bloated to hell and back.
>>
>>106436385
Large inheritance hierarchies don’t cause performance degradation more than a single level of inheritance and that just involves a vtable lookup which is easily avoided if the performance impact is actually a problem for your use case
>>
>>106436385
ye is bloat man same as jame. the simplest application you makes ends up using a gorriion of resrouces

also both java and c shart is comfy to use
>>
>>106436564
Damn this is based
>>
>>106436385
>If c# is slow its because it suffers the same disease as java
Also, the .NET GC just isn't as good as the JVM GC. (The JVM's had a crazy amount of effort by smart devs poured into that; nobody else has a faster GC.)
For the most part, getting good performance is the usual things whatever the language. Use non-insane algorithms. Control the copies. Limit the data movements. Let caches work on your behalf. Avoid sharing too much between threads.
>>
>>106436549
>Can C++ run on bare metal, without any runtime?
yes? obviously? wtf?
>>
>>106436564
That project is irrelevant now that .NET has AoT. The actual interesting part (ZeroLib) is just a glorified tech demo.
https://github.com/bflattened/bflat/issues/138
>>
>>106436655
is still garbage..
>>
>>106436442
>is it still scripting if I made a gui app with python? (pyqt)
yes python is scripting don't you dare come here with your node.js crap and
>is programming saar
>>
>>106437219
Compelling argument.
>>
>>106436549
Yes is can. I'm using Rust for embedded though.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.