[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / 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: swift_vs_rust.png (503 KB, 730x487)
503 KB PNG
What's the better programming language?
>>
>>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 (78 KB, 836x543)
78 KB PNG
>>109002286
>>
>>109001847
Is it painful to be both autistic and stupid?
>>
>>109002362
the min and max are pretty interesting
>>
File: 1752261059059328.png (170 KB, 406x406)
170 KB PNG
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
>>
>>109005177
You don't believe what you say.
>>
>>109005530
wtf does that mean, I have personally tried it and have the compiler shit itself.
t. posted from my macbook pro m4
>>
>>109002362
oh hey, someone else who knows chapel exists
>>
>>109001332
>this is too hard for me because I'm too smart
>>
>>109000186
poop from a butt vs vomit mixed with urine
who y'all got my niggas?
>>
Can you call into Objective-C from Swift or Rust?
>>
>>109006011
even better, you can call c++ from swift
>>
>>109006011
swift has objc interop Xcode converts Objc headers into swift modules automatically ,
rust doesn't have anything you have to use low level objc runtime C functions
>>
>>109006039
What happens after Apple rewrites all system libraries into Swift, will it still be possible to interact with the system libraries from standard C
>>
>>109006050
it won't be swift, swift is too slow for low level libraries, as rumors go apple made a new low level lang to replace C
>>
>>109006278
What makes Swift slow, is it ARC?
>>
>>109006278
https://www.swift.org/blog/embedded-swift-improvements-coming-in-swift-6.3/
why were they investing time in this then



[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.