← Home ← Back to /g/

Thread 105896301

30 posts 10 images /g/
Anonymous No.105896301 [Report] >>105896325 >>105896488 >>105897141 >>105897170 >>105903301 >>105903317 >>105906148 >>105907140
dead on arrival
Anonymous No.105896325 [Report] >>105896580
>>105896301 (OP)
Of all things to switch to....
Anonymous No.105896436 [Report] >>105896570 >>105896580 >>105897737 >>105901891 >>105907140
based
Anonymous No.105896488 [Report] >>105896580 >>105904037
>>105896301 (OP)
Swift is based.
Anonymous No.105896570 [Report] >>105896580 >>105900235
>>105896436
what exactly is wrong with supporting unicode?
Anonymous No.105896580 [Report]
>>105896325
>>105896436
>>105896488
>>105896570
OP here I meant C++
Anonymous No.105896750 [Report]
>more modern than modern c++
lmao doesn't exist, nobody is going to write real code in some meme language that cripples you for some illusion of memory safety which doesn't even exist
Anonymous No.105896886 [Report] >>105897037
Swift is too slow.
Anonymous No.105897037 [Report] >>105898268
>>105896886
> swift is too slow
You can’t make a general statement like that.
I’d say it’s on par with something like ‘go’
But the language itself is very much a cleaned up C++.
As with almost all things, bottlenecks will be identified and replaced (dynamically or at build time) with assembly on some architectures.
Gcc, for example, has stdlib memcpy that is written in assembly using SIMD instructions when it detects it can do so.
Swift is using the llvm/clang optimizer, so, it’s not going to be terrible, but if you look at the from some C compilers (e.g. tcc or pcc) it will be better than that and probably faster if you use those as your C standard.
Also, it depends on how you use it. If you are writing kernel routines (for example), you won’t be using new/malloc a lot, and those things are regarded as slow due to heap maintenance, locking, and non-locality.
Anonymous No.105897141 [Report]
>>105896301 (OP)
Swift has some cool features but building a browser with it, Im not so sure
Anonymous No.105897170 [Report] >>105902114
>>105896301 (OP)
Apple chads won AGAIN
Anonymous No.105897276 [Report]
C++ should only be used for GUI elements
Everything else should be C
Anonymous No.105897737 [Report]
>>105896436
>graphics in source code
An inferior version of Terry Davis' DolDoc format.
Anonymous No.105898268 [Report] >>105904053
>>105897037
Yeah I thought it should be fast too until I used it and discovered that no, it's actually slow. Maybe it's the referencing counting, who knows.
Anonymous No.105898341 [Report] >>105899341
>swift
>language even Apple can't use to make good, well, anything
what did he mean by this?
Anonymous No.105899341 [Report] >>105902811
>>105898341
it's got to be one of the most perplexing language choices in programming history. my money is on him taking money from apple for it.
Anonymous No.105900235 [Report]
>>105896570
Nothing. Now, supporting emojis in symbol names, that's pure retardation.
Anonymous No.105901889 [Report]
lmao
Anonymous No.105901891 [Report]
>>105896436
Death to emojifags
Anonymous No.105902114 [Report] >>105904002
>>105897170
Even Apple isn't all in on Swift, despite their claims. They still hook into Objective-C and even plain C, when they need to get real work done.
Anonymous No.105902811 [Report]
>>105899341
That would suck, because it would mean Ladybird isn't as independent as it seems. I don't get what's wrong with C++, seems like a much better suited language for a browser than Swift.
Anonymous No.105903301 [Report]
>>105896301 (OP)
swift was {word} but the changes have made it less so
Anonymous No.105903317 [Report]
>>105896301 (OP)
you have to understand he needs something challenging to keep him from relapse and writing a browser in swift should be sufficient
Anonymous No.105904002 [Report]
>>105902114
> write parts in C
That’s always an option, too.
Back in the NextStep days this was common in high-performance stuff, and just have objective C call the C code.
Anonymous No.105904037 [Report]
>>105896488
>Swift is based.
Swift will just Rust by detour eventually, borrow checker and all.
Anonymous No.105904053 [Report]
>>105898268
It’s not good at sudoku for whatever reason
Anonymous No.105906148 [Report]
>>105896301 (OP)
Is there already a fork that keeps on using c++?
Anonymous No.105907140 [Report] >>105909157
>>105896301 (OP)
>>105896436
iTODDLERS BTFO
Anonymous No.105909157 [Report]
>>105907140
based
Anonymous No.105909183 [Report]
they're going to release the first RC as macOS only and make everyone else wait a year then the project will completely fizzle out because no one cares about it except for 5 faggots on hackernews