What's the better programming language?
>>109000186swift would've been pretty nice if applel wasn't so retarded about it
>>109000186Bump
>>109000272FPBP, I'd make my game engine in Swift if I could but Apple is fucking gay and retarded
>>109000272What's wrong, I thought Swift runs on GNU/Linux and Windows, just without the Apple libraries?
>>109000186I 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.
>>109000186C
>>109001305Swifts 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.
>>109001332The state of /g/
>>109001332become a zigger
The better programming language is D
>>109001332I don't remember C beling explicit about it neither.
>>109001417int ar[10];int *ar = malloc(10*sizeof(int));>>109001393I 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
>>109000186swift has use cases, rust does not.
>>109000186You're retarded for even asking. The answer is rust by the way.
>>109000186Swift's compiler is poorly implemented.
>>109001434>declares array>immediately replaced it with a heap allocYou're literally retarded. C tards are fucking insane.
>>109001295Swift is slow as fuck it's a bad language for a game engine
>>109001332if C is your lang why not to use Objective-C? you get all low-level c/c++ and high level ObjC without Swift retardation
>>109002186how?
>>109002286
>>109001847Is it painful to be both autistic and stupid?
>>109002362the min and max are pretty interesting
as an iOS dev Swift is really nice and easy to use and powerful and fast and I love the languagebut 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 ecosphereunironically considering transitioning to rust
>>109002186>>109002362meh people build engines in c# these days, concerns are overblown
>>109002463C# JIT can optimize your code in real time, Swift is always slow
>>109000186I 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.
>>109001332dude who caresfunc doshit() { let nigger = [1,2,3,4,5,6] print(nigger)}doshit()//nigger is out of scope and deallocates
func doshit() { let nigger = [1,2,3,4,5,6] print(nigger)}doshit()//nigger is out of scope and deallocates
>>109002493The state of /g/
>>109000186Swift 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.
>>109000186I 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.
>>109002362haskell min max is really funny
>>109000186Kotlin is objectively better than Swift. Rust is a different tool and has its own place
>>109001349Ok buddy segfault
>>109002614Skill issue
>>109000186the swift compiler is slow as fuck and is absolutely retarded, it cant even concatenate 6 strings together on 1 line
>>109005177You don't believe what you say.
>>109005530wtf does that mean, I have personally tried it and have the compiler shit itself.t. posted from my macbook pro m4
>>109002362oh hey, someone else who knows chapel exists
>>109001332>this is too hard for me because I'm too smart
>>109000186poop from a butt vs vomit mixed with urinewho y'all got my niggas?
Can you call into Objective-C from Swift or Rust?
>>109006011even better, you can call c++ from swift
>>109006011swift 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
>>109006039What happens after Apple rewrites all system libraries into Swift, will it still be possible to interact with the system libraries from standard C
>>109006050it 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
>>109006278What makes Swift slow, is it ARC?
>>109006278https://www.swift.org/blog/embedded-swift-improvements-coming-in-swift-6.3/why were they investing time in this then