//g/
File: swift_vs_rust.png (502.9 KB)
502.9 KB
What's the better programming language?
Showing all 38 replies.
>>
>>109000186
swift would've been pretty nice if applel wasn't so retarded about it
>>
>>109000186
Bump
>>
>>109000272
FPBP, I'd make my game engine in Swift if I could but Apple is fucking gay and retarded
>>
>>109000272
What's wrong, I thought Swift runs on GNU/Linux and Windows, just without the Apple libraries?
>>
>>109000186
I am learning swift to build apps I need, but as a C only, God it's a fucking pain trying to learn high level languages. Why the fuck would anyone want to develop native software let alone videogames in a language where you cannot even be explicit about heap or stack? I genuinely don't understand why the fuck do we need to cater to iq of people who do not know who to code aka web developers.
>>
>>109000186
C
>>
>>109001305
Swifts lsp has a memory leak on Linux. It will consume gigabytes of ram in mins for any decently sized project. Also parts of the stdlib is either hacked together or just doesn't work on non Apple.
>>
>>109001332
The state of /g/
>>
>>109001332
become a zigger
>>
The better programming language is D
>>
>>109001332
I don't remember C beling explicit about it neither.
>>
>>109001417
int ar[10];

int *ar = malloc(10*sizeof(int));

>>109001393
I don't think zig will let me develop apps on appkit.
>>
>>109001305
>I thought Swift runs on GNU/Linux and Windows, just without the Apple libraries?
well their main focus is still applel so the community for anything else with swift is pretty bad
>>109001332
>Why the fuck would anyone want to develop native software let alone videogames in a language where you cannot even be explicit about heap or stack?
atomic reference counting is good enough for most cases, for anything else you can just use c/c++ and then use swift to glue that part together with whatever applel integrations you need
>>
>>109000186
swift has use cases, rust does not.
>>
>>109000186
You're retarded for even asking. The answer is rust by the way.
>>
>>109000186
Swift's compiler is poorly implemented.
>>
>>109001434
>declares array
>immediately replaced it with a heap alloc
You're literally retarded. C tards are fucking insane.
>>
>>109001295
Swift is slow as fuck it's a bad language for a game engine
>>
>>109001332
if C is your lang why not to use Objective-C? you get all low-level c/c++ and high level ObjC without Swift retardation
>>
>>109002186
how?
>>
File: file.png (77.9 KB)
77.9 KB
>>109002286
>>
>>109001847
Is it painful to be both autistic and stupid?
>>
>>109002362
the min and max are pretty interesting
>>
File: 1752261059059328.png (170.1 KB)
170.1 KB
as an iOS dev Swift is really nice and easy to use and powerful and fast and I love the language
but it has next to no library support (I think there's a grand total of ONE library that adds GUI development on windows, and it's a piece of shit) and it also makes me unemployable outside of the apple ecosphere

unironically considering transitioning to rust
>>
>>109002186
>>109002362
meh people build engines in c# these days, concerns are overblown
>>
>>109002463
C# JIT can optimize your code in real time, Swift is always slow
>>
>>109000186
I worked with swift since version 2... it was an absolute catastrophe (like anything Apple)
>>
>>109001434
>int ar[10];
>int *ar = malloc(10*sizeof(int));
I know how it's done m8. Just saying that the static one is really implicit about it. It is only obvious to you since you use C all the time.
>>
>>109001332
dude who cares

func doshit() {
let nigger = [1,2,3,4,5,6]
print(nigger)
}

doshit()
//nigger is out of scope and deallocates
>>
>>109002493
The state of /g/
>>
>>109000186
Swift suffers from the same problem as C# - they are owned and developed by terrible companies, so nobody (except the fanboys) will touch them.
>>
>>109000186
>Which is better ?
>Useless programming language vs Retarded Troon Language
Both are bad.
>>
>>109000186
I think both are pretty good. Swift is definitely easier to use but it has a performance overhead and a smaller ecosystem that's mainly focsed on Apple platforms.
I'd still use it over Go because it has ADTs.
>>
>>109002362
haskell min max is really funny
>>
>>109000186
Kotlin is objectively better than Swift. Rust is a different tool and has its own place
>>
>>109001349
Ok buddy segfault
>>
>>109002614
Skill issue
>>
>>109000186
the swift compiler is slow as fuck and is absolutely retarded, it cant even concatenate 6 strings together on 1 line

Reply to Thread #109000186


Supported: JPG, PNG, GIF, WebP, WebM, MP4, MP3 (max 4MB)