#development
1 messages · Page 245 of 1
full stop
😭
i need xcode to lift its armv7 nonsense
so you could run this on modern macos
modern xcode can support ios 9 i think
ios 8 requires sum shit that just doesn't exist
hoping i dont have to rebuild llvm
On a 2013 mac pro?
You sure about that one
its a few minutes on my m3 pro
Takes 30 on this
Yeah m4 pro is insanely fast
Swift is fast
llvm is not
ye im hoping to get an m4 pro at some point
but
i have to get from corp
Just put -j20
bcus its way too expensive
And enjoy 1min compile time
apple overcharges out the wazoo
plus no upgradeable anything so you better be happy with what you pick
anyways
corp pays so idc
gonna take a few months tho

mean time this mac pro isnt terrible
Someone got m4 (pro?) unused for 1000 here
purchase an Intel 265k
^
Jk cross compilation sucks ass
✨ 🇦🇺 ✨
base m4 pro
and obv i wouldnt get this
bcus 512gb is unusable
and idek what apple is smoking in terms of storage costs
cost from the perspective or the company
is actually a scam
like
a full on
proper
scam
that is a scam
like ima level with you here
this is genuinely giving proper scam
that 8tb being 3.6k
is genuinely fucking insane
they linearly scale price after 2tb
that is so fucked
an 8tb nvme is about 1.3k
how the fuck
do you mark it up 2k
like actually
Damn llvm must be way smaller for macos target or something
llvm build times on 285k are 4 mins on linux
and it should be significantly faster than m3 pro in raw performance I'm pretty sure
its apple llvm
bro without tg pro my mac pro would have actually been dead weight at first compile
even with full blast fans im sitting stable at 85c
apple doesnt even turn on the fans
😭
almost 3x the cpumark score
i mean
when you design a program to run on a specific set of hardware
and you design it
to compile
for that hardware
theres no doubt
itll be faster
that's not how this works
also
theres 2 llvms
for swift
its apple swift llvm
sep proj
sep branch
its probably cut down
a bit
theres like 10 forks of llvm in the mix
no
that exist in the world
swift 5.10 compilation using the following command takes about 1.5 hours on my mac pro including llvm i think?
--release \
--ios \
--install-prefix=/tmp/swift-ios-toolchain \
--darwin-deployment-version-ios=7.0 \
--extra-cmake-options="-DLLVM_BUILD_RUNTIME=OFF -DLLVM_BUILD_COMPILER_RT=OFF -DSWIFT_INCLUDE_TESTS=OFF" \
--skip-build-benchmarks \
--skip-test-ios \
--skip-test-ios-simulator \
--skip-build-linux \
--skip-build-freebsd \
--skip-build-cygwin \
--skip-test-swift```
actually maybe its more like 1
idk
i try and skp everything thats not absolutely required for what im doing
compiler rt adds like
another 30-60 mins
and its completely useless for what im doing
then tests add a tonne
and they're useless too
lmao i love how many warnings u get when compiling swift
chat
i said i'd take a break from obsessively making more shijima ports but i think i'm gonna relapse
do it
port to legacy ios
i was thinking internet explorer 5 but i guess that works too
What happened
Did Blud leave
Or get banned
Seems like he left again
he got banned
it’s truth trust
"16player malware" is not misinformation
yo
do we know who the dev of Sideloadly is?
first time I'm trying to use it, and... they mapped alt-G to open a settings popup
which seems really fucking counter-productive for an app that wants you to type in your AppleID...
I can only assume they've never tested the macOS version?
@kind herald Can you snipe
im pretty sure its part of iosgods but I could be wrong
Thanks
what does alt-G even do normally
I’ve never used that shortcut in my life and I’ve used the macOS version before (when my daily laptop’s screen proceeded to cease to exist) and haven’t had issues
I'm certain they have, no way you make a menu bar item work at all without any diagnosis/testing
that's how you type the @ character on macOS
I have a normal keyboard and just use the shift+function key thing
it’s possible they just didn’t account for that specific shortcut because I’ve never heard of that either
okay fuck me, this is a Swiss layout thing then
and Google fucked me too with regional search results
I hate all of tech
I guess this just downgrades it to "using alt commands is a bad idea because they're used to type things, use cmd instead"
Done
So much better
Fonts are pissfuck small
They’re fast
This is far superior
The dream may come true
Don’t need svg libraries either
Do you just redraw them in font format? Or did you find something to convert somehow
Font forge
Does it basically all for you
With the same dimensions* that's a better way t word it
Simple python script
Apple has really cooked up tho like
I get why they did what they did
But sf symbols are horribly optimised
Dynamically calculates path
💀
And I think it’s so they can do their colour and shading shenanigans
they also have animations between symbols
ah yes
true
i mean
they use a number of private apis
honestly i dont know how they do their rendering
and obviously my implementation wont have all that fancystuff
youll get symbols with identical api and sizing and behaviout, as well as the ability to tint
having it be a font makes a lot more sense than loading an svg
ngl
bcus all of what i said is easily doable
plus now you dont need to import 62k items
😭
realistically apple shouldnt be able to get upset with me asw
not when this exists
https://github.com/brendanballon/sfsymbols-svg
HA it works
lets fucking go i knew this shit would be easy
now api backporting
plus this is sf symbols 7
so you can use this on like
ios 15
to get ios 26 symbols
okay
s'
update
it works on ios 6
bu not json lookup
so
im going to need to hardcode
6k symbols
2.5mb json
💀
LMAO
i figured out why
it had the same freaking table
FOR EVERY WEIGHT
no wonder on ios 6 it crashes
💀
then again
now its compiled
it takes forever to compile
but whtever
at least at runtime its instant lookup
it is a 6k long file tho
💀
of just
json
1 big dictionary
wait
i wonder why on ios 7
it doesnt crash
but on ios 6 it does
odd
bcus its not my method of presenting
if u use direct hex
it works fine
so it has to be json
okay..
nvmn
not gonna compile
holy fuck
it hasnt even finished the armv7 slice
Anyone know a good solution?
I did fix it
But it’s still slow
Bcus yhe json although no longer 2.5mb
It’s still 25kb
And 6k lines
I deeply do not want to precompile a 6k dictionary
k so
i need help
the font is like
offsetting the text kinda??
anyone know why this is happening?
whats the code for it
very difficult to debug otherwise 
@wind ravine hi
@wind ravine hi
You are given the privilege of contacting him if you subscribe to his Patreon
My question/issue is not answered. How can I get support?
You can create a new post in r/Sideloadly or if you are a Patreon supporter, you can send us a message for one-to-one support.
alright well, that's a no from me then
have you tried typing your email in notes and then copy/paste it into the email box?
yes, I did that long ago
but it's still just... bad design
agreed, just suggesting an alternative
today i learned, thought this was universal across layouts. german (mac) uses ALT + L
Well, it’s just an NSTextAttachment of an image
But
The one of the left is the real SFSymbol
And the one on the right is my font
yes but
its significantly more difficult to help you debug the code
without seeing the code
Oh like
My rendering code?
Which code
The code that turns the font into an image
Or the plain NSAttachment
I’ll send both
I thought every mac layout had the @ # key 😭
@grim sparrow rendering code part 1
import UIKit
import CoreText
// MARK: - Symbol Weight
public enum SymbolWeightA: String {
case ultralight, thin, light, regular, medium, semibold, bold, heavy, black
}
// MARK: - Symbol Scale
public enum SymbolScaleA {
case small, medium, large
}
// MARK: - SFSymbols Manager
public class SFSymbols {
public static let shared = SFSymbols()
private var lookup: [UInt32: UInt16] = [:]
private var registeredFonts: Set<String> = []
private init() { loadLookupDat() }
private func fnv1aHash(_ s: String) -> UInt32 {
var h: UInt32 = 0x811C9DC5
for byte in s.utf8 {
h ^= UInt32(byte)
h = (h &* 0x01000193) & 0xFFFFFFFF
}
return h
}
private func loadLookupDat() {
let bundle = Bundle.module
guard let url = bundle.url(forResource: "lookup", withExtension: "dat"),
let data = try? Data(contentsOf: url) else {
return
}
var cursor = 0
while cursor + 6 <= data.count {
let hash = UInt32(data[cursor]) |
UInt32(data[cursor + 1]) << 8 |
UInt32(data[cursor + 2]) << 16 |
UInt32(data[cursor + 3]) << 24
let code = UInt16(data[cursor + 4]) |
UInt16(data[cursor + 5]) << 8
lookup[hash] = code
cursor += 6
}
}
private func registerFontIfNeeded(weight: SymbolWeightA) {
guard !registeredFonts.contains(weight.rawValue) else { return }
let bundle = Bundle.module
if let url = bundle.url(forResource: "SFSymbols-\(weight.rawValue)", withExtension: "ttf") {
CTFontManagerRegisterFontsForURL(url as CFURL, .process, nil)
registeredFonts.insert(weight.rawValue)
}
}
public func font(weight: SymbolWeightA, size: CGFloat) -> UIFont? {
registerFontIfNeeded(weight: weight)
return UIFont(name: "SFSymbols-\(weight.rawValue)", size: size)
}
public func unicode(for name: String) -> String? {
let hash = fnv1aHash(name)
guard let code = lookup[hash],
let scalar = UnicodeScalar(UInt32(code)) else { return nil }
return String(scalar)
}
}```
part 2
// MARK: - UIImage Backport Extension
public extension UIImage {
/// Backport SymbolConfiguration for iOS <13
@available(iOS, introduced: 6.0, obsoleted: 13.0)
struct SymbolConfigurationA {
public var pointSize: CGFloat
public var weight: SymbolWeightA
public var scale: SymbolScaleA
public init(pointSize: CGFloat = 17, weight: SymbolWeightA = .regular, scale: SymbolScaleA = .medium) {
self.pointSize = pointSize
self.weight = weight
self.scale = scale
}
}
typealias SymbolConfiguration = SymbolConfigurationA
@available(iOS, introduced: 6.0, obsoleted: 13.0)
convenience init?(systemName name: String, withConfiguration config: SymbolConfigurationA? = nil) {
let config = config ?? SymbolConfigurationA()
var fontSize = config.pointSize*1.22
switch config.scale {
case .small: fontSize *= 0.75
case .medium: break
case .large: fontSize *= 1.25
}
guard let unicode = SFSymbols.shared.unicode(for: name),
let font = SFSymbols.shared.font(weight: config.weight, size: fontSize) else { return nil }
let attrString = NSAttributedString(string: unicode, attributes: [
.font: font,
.foregroundColor: UIColor.black
])
let imageSize = attrString.size()
UIGraphicsBeginImageContextWithOptions(imageSize, false, 0)
attrString.draw(at: .zero)
let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
guard let cgImage = image?.cgImage else { return nil }
self.init(cgImage: cgImage, scale: UIScreen.main.scale, orientation: .up)
}
}
part 2 is really the "rendering"
part 1 is symbol selection
and heres the actual app code
import UIKit
import SFSymbolsCompatKit
import UIKitCompatKit
import UIKitExtensions
class ViewController: UIViewController {
var viewStack: UIStackView!
override func viewDidLoad() {
viewStack = UIStackView()
viewStack.axis = .vertical
viewStack.distribution = .fill
viewStack.alignment = .center
let attachment = NSTextAttachment()
attachment.image = UIImage(systemName: "circle", withConfiguration: .init(pointSize: 100, weight: .regular, scale: .medium))
let imageString = NSMutableAttributedString(attachment: attachment)
let textString = NSAttributedString(string: "Please try again")
imageString.append(textString)
let label = UILabel()
label.attributedText = imageString
label.sizeToFit()
viewStack.addArrangedSubview(label)
view.addSubview(viewStack)
viewStack.pinToEdges(of: view)
}
}```
var fontSize = config.pointSize*1.22
switch config.scale {
case .small: fontSize *= 0.75
case .medium: break
case .large: fontSize *= 1.25
}
are you sure these are the right magic numbers
ignore those rn bcus im using medium
which is regular
and i have regular
in
the real one
medium is no scale default is no scale
import UIKit
import UIKitExtensions
class ViewController: UIViewController {
var viewStack: UIStackView!
override func viewDidLoad() {
viewStack = UIStackView()
viewStack.axis = .vertical
viewStack.distribution = .fill
viewStack.alignment = .center
let attachment = NSTextAttachment()
attachment.image = UIImage(systemName: "circle", withConfiguration: UIImage.SymbolConfiguration(pointSize: 100, weight: .regular, scale: .default))
let imageString = NSMutableAttributedString(attachment: attachment)
let textString = NSAttributedString(string: "Please try again")
imageString.append(textString)
let label = UILabel()
label.attributedText = imageString
label.sizeToFit()
viewStack.addArrangedSubview(label)
view.addSubview(viewStack)
viewStack.pinToEdges(of: view)
}
}```
real code^
that part is the same
wrong terminal pal
oh I promise you nothing is universal
tfw Preview.app wants me to use cmd+shift+¨ to zoom in, because Apple uses some wrong layout info
Ctrl + / is one of my favorites
i rebind control to cmd on every mac i use icl
and honestly im considering just mapping the function key
its close to where control is on every other keyboard
idk why apple decided to be special

the issue is
there is no / key on my keyboard
it's shift + 7
why teh fuck
does a german keyboard
not have /
how do you do any terminal work
😭
shift 7 is painful vro thats cooked
so what
shift + 7
thats cooked
😭
i mean honestly
if they're gonna use
an english keyboard layout
just put the extra chars in the numbers
or change the layout
okay apple wtf
apple is definitely doing tricks with sf symbols
im 100% certain of it
they are NOT treating it like a regular uiimage
i mean for one, the spacing between my symbol and the text is COMPLETELY different
ima try and manually fix that bounding box
gonna regen the fonts ig
k well
ive regened the fonts
ok
ok wtf
apple is doing smthing
no matter how i size my font
its always that bounding box
k well
ive made it a bit better
its still imperfect
but its better
atp
ima just accept this is a limitation
Realistically you're going to have to recenter it anyways and most use of sfsymbols is gonna be an sfsymbol on its own
so i should be okay
You'll also have to manually copy the fonts from the pkg but again it shouldn't be too bad
ughhhh
template rendering is ios 7+
so no colouring on ios 6 what

hmmm maybe i just provide a colour api that directly colours it for those on ios 6
yeah so tintcolor and template rendering is ios 7+ so i'll just provide a method that allows manually setting the colour on ios 6
yikes
i mean fair
but then again
thats what a devlog is
this one is just public
lmao
well thats how i type
¯_(ツ)_/¯
it just is the way that it is
if i have a long thought -> long message
continuous burst of short thoughts -> continuous burst of short messages
🔥
works perfectly on its own
@kind herald Hey moderator this is offtopic
i mean thats all up to you
i just backport
alr so
what is something people would like to see backported to legacy ios (mainly asking developers)
Nothing
Nothing
guess ill find more stuff myself then 🔥
Fuck off shadow
different question, anyone know some popular modern open source uikit apps?
or tweaks
either one is fine
is it that hard to just leave a moderator alone and not ping them for no reason
even better, anyone develop any? since i have a pretty good workflow im fairly confident my overlays are mature enough atp to easily backport most modern uikit projects
actually
i know what ill backport
scenedelegate
Fuck off shadow
Fuck off word
Fuck off word
oh sorry
Define
Cause like
Frameworks are binaries
Extensions are binaries
Main binaries
I want to have a loader application
Yhat at runtime picks between two binaries
One for iOS 3-5
One for iOS 6+
How would you spawn
Not allowed in sandbox
Not for stock
Unless you want to start using exploits but then you’ll need different exploits for every version you intend to target
But why do you need to do this
iOS 6+ uses swift and my modern UIKit implementation
iOS 3-5 uses the person who made the clients ui
In objective c
You can’t target armv6 or iOS 3 in Xcode 😭
And the app will crash if any swift code or even the swift dylibs are called
Weak link
You can’t weak link the swift runtime what 😭 you can do that for a static library but Xcode doesn’t listen for swift
Even if you provide the dylibs yourself
As soon as it detects swift code
In the same place
At least in my testing
Even if it could
iOS 3 and armv6
NEVER happening in modern Xcode
Does iOS 3 support multi arch binaries
Then just build the slices separately and merge them
Yeah I thought of this
One issue
There’s 2 armv6 devices yhat support 3-5
There’s like
10
Armv7
Remember old Xcode can’t compile yhe swift code
So either armv7 for 3-5 is cut
Or armv7 for 6+ is cut
How are you allowed to call a framework binary but not a main application one
That makes no sense Whats the point of that restriction
If you’re going to run malicious code just do it in a framework
😭
Because it’s still executing in your process
Right it’s not spawning an entirely new one
And it goes through Apple review
Their biggest fear is people downloading binaries and posix spawning them
But why
Just review
nonono
The app that they reviewed containing code of download another binary and execute it
Ahhhhhh
That’s locked behind a feature flag that’s disabled during review
Sure
Why not just provide an Xcode debugging flag then
That Apple can easily see
You’ve enabled
And prevents all builds with it turned on
To be submitted
Like they do with JIT
Eh we only got jit so the debugger works
I know but they could do the same thing
Xcode preview on device is supposed to work but doesn’t because of JIT
😭
Idek why yhe provide yhe option
It doesn’t work
A first I thought it was because I had a free account
But even with a paid developer account
It still doesn’t work
it’s locked behind the no-sandbox/container entitlement.. like yeah it could be straight up a privilege escalation. TrollStore wouldn’t need no “installation method”
yeah i get that it can be very easily exploited
but like
can't every single os do it?
like literally every single os
do what, execute arbitrary code? or what I'm a little lost in this conversation
spawn another process
😭
What's happening here above
i want to have a loader binary
that at runtime
picks between two binaries
one for ios 3-5
one for ios 6+
i cant do that
bcus apple doesnt let you spawn another binary
😭
Spawn another process where the new process's executable is still inside your reviewed app code?
there is no review
who is reviewing shit
this is ios 5
also no
what id do is
compile ios 3-5 app
compile ios 6+
plop both bundles
into the loader
make a loader binary
that picks at runtime
which to process to spawn
goes into the bundle
uses posix spawn to startup the process
and boom
In theory when you submit an app to the app store, it is reviewed by apple
so the code that would be in that
Just asking from the perspective of apple
yes sure but i dont want to submit jack
i get it
but
who cares about that
i just need it to do it
apple wont let me regardless
Because that comes up with the logic for why you would be blocked
No
It seemed like you were asking why Apple was blocking you from spawning a process, so I'm trying to figure out exactly what you do, to try and come up with why they would block it
well i know why i get it
i just dont know why they dont let you disable it
for non app store apps
if you have a jailbreak already is the restriction lifted system wide?
they probably aren't designing with people jailbreaking in mind, to make a bypass for supporting g it
their own processes do it iirc
there is no way they have an entire operating system
where not a single system process
uses posix spawn
Yeah but not apps
sure but it means that the os can do it, so my question is, on jailbroken ios, where you can mostly do whatever, is that restriction lifted? i know you can run unsigned binaries, but i dont know about this
If you’re unsandboxed you can use posix_spawn()
That is what stops you
And with a jailbreak you can run unsandboxed
in sandbox is what I meant here
has anyone dealed with macos safari hooking before ? what do i need to do to add a button to the toolbar ? simply adding a subview makes it so its not clickable so i guess i need to use NSToolbar api, can anybody point me in the right direction
sand fox
it do trust
ios has this in it
if jailbreak then

today i learned why -[NSHTTPURLResponse valueForHTTPHeaderField:] exists https://github.com/swiftlang/swift-corelibs-foundation/issues/4338#issuecomment-1118993332 truly incredible engineering
incredibly swift turnaround, i might add. took only 4 years. impressive
Okay so you just need to un sandbox. Isnt there an exploit for that on nearly every version of iOS minus like 17.0.1+?
Actually I got an idea
I build the 6+ binary i to the loader
So that I no longer have to spawn a binary on modern iOS
But on iOS 3-5 where un sandboxxing should be trivia
I spawn a binary
There’s a jailbreak for almost all as well
CoreTrust bypass too you’re right
Sure?
But why do you need to spawn things
Surely there’s a better solution
There isn't
You can't compile swift for ios 3-5
You can't even compile a binary for iOS 3 that has swift on ios 6
because modern xcode doesn't support ios 3
🤦♂️
The client I'm making a modern UI for is built for iOS 3
It's not my choice
I can't drop support because it's not my client
Who tf still using ios 3
Not a single person
I mean it is nice of them to care for older versions
But there is a point where it just becomes ridiculous
iOS 3 is one of those points
iOS 3 is probably easy to emulate
i mean they wanna do it
¯_(ツ)_/¯
and they're doing it
they already have
it already works
lmao
i respect it
Do they have a reason
Autism
they could
so they did
i dont see it as any more dumb that any other hobby
ppl would say the same stuff about jailbreaking
😭
i guess
it's a proper client
i mean
their setup is odd
they dont even use xcode
they manually compile via clang
on linux
they use scons

i mean results are results i cant complain
@native dune Can you figure out how to transmit images of local media on iphone to an accessory connected over bluetooth using iap2 and externalaccessory and mfi
MediaItemArtworkFileTransferIdentifier
It doesnt work
Ok
@native dune Can you figure out how to transmit images of local media on iphone to an accessory connected over bluetooth using iap2 and externalaccessory and mfi
@native dune Can you figure out how to transmit images of local media on iphone to an accessory connected over bluetooth using iap2 and externalaccessory and mfi
@native dune Can you figure out how to transmit images of local media on iphone to an accessory connected over bluetooth using iap2 and externalaccessory and mfi
@native dune Can you figure out how to transmit images of local media on iphone to an accessory connected over bluetooth using iap2 and externalaccessory and mfi
me obviously
@native dune Can you figure out how to transmit images of local media on iphone to an accessory connected over bluetooth using iap2 and externalaccessory and mfi
@native dune Nvm fuck you
Youre useless
as always
This vibe coding shit not for me bruh
vibe coding has bad vibes
It pmo I don't know how people do this
Nothing gayer than giving an AI instructions over and over because ur shits not working
16player
Real, ai would he so much better at coding if it actually compiled and ran the code first
😭
Well it can but that's not the solution here
all the nocturne developers are gay then
friendly fire
@kind herald Hey moderator this user is being off topic in the development channel. Please remove them.
@kind herald Hey moderator this user is being off topic in the development channel. Please remove them.
decided ill just make my own dc client from scratch
🔥
i love swift
makes networking so damn easy
There is this guy
who is determined
to tell me
swift runs on ios 5
and im lying
😭
like blud what 😭
like blud what 😭
like blud what 😭
like blud what 😭
like blud what 😭
like blud what 😭
like blud what 😭
like blud what 😭
shut up all of you
I hope you get muted for off topic
Yes mute hydrate
No maxine is the one spamming and off topic
Hydrate is fine
Take my word for it
Hop on #general unc
Why couldn’t it
NSObject is completely different apparently C++ is older and there's a bunch of features missing from that, the compiler never intended to support it, most of the STDLIB has types that just don't exist in ios 6 so you'd have to strip those out, all of currency including sendable and mainactor which work on ios 6 wouldnt work youd have to strip that out
but you could add support
you just won't because its more work than jsut recompiling the toolchain
supporting ios 6 was not just recompiling the toolchain 💀
how much work was it actually other than just some patches from the git histroy
Rewriting objc_allocWithZone was a decent chunk of work
Other than that it was mostly pre chill
Just a lot of testing
finding all the functions that don't work and replacing them with ones that do that i either knew existed or had to go look for online
the git history was nearly useless
why did you have to rewrite it
rewrite the call*
because the modern way it was being called spawned objc_allocWithZone which doesn't exist
the selector "allocWithZone" does however
they aren't immediately interchangeable tho
so i had to do a bunch of bridging
stubbing out parts of the selector based allocwithzone that do exist on the modern version that don't on it
getting that to work was probably what took most of my time
bcus i was in the dark
ai was no help, and online wasn't either
and since its not in the stdlib you have to recompile from scratch everytime
which on the trash can was annoying asf
so it probably took longer than it should have
but it wasn't awful to do no
supporting ios 5 is basically impossible though
you'd need to somehow compile against its objc library
you can't even compile against ios 6 without numerous build errors
mostly related to missing c++ functions
ios 5 would probably have even more
not to mention xcode can't even build for ios 5
so its a waste of time either way
even if i somehow managed to get it working
which is highly unlikely
youd have a modern toolchain
and no ide to use it in
no sdk to compile against
and thats ASSUMING compiling against ios 5's objc would even solve the issue
the fact you get the error "Missing symbol, OBJC_CLASS_$NSOBJCT" made me leave immediately
NSObject is the core of all of objc
that's like saying the error you're getting is there is no runtime language to go off
The other thing
Is swift was built for iOS 6 at first Anya’s
Anyways
I was patching yhe toolchain and rewriting one or two parts of it
Supporting iOS 5 wiuld require major rewrites
And at that point I can’t exactly claim it to be “native swift”
Hell I don’t even know if it’d play nice with how Xcode expects it to be
Maybe one day I’ll be bored enough to do it
But I did iOS 6 because it’s always been my target platform for legacy development
I never cared much for iOS 5 even before I found out swift could run on iOS 6
Other than allow with zone and data destructor, yhe work wasn’t so much hard as it was just long
So many functions and methods requiring hours of research to find solutions to since there’s no documentation for these things
lmao fair
In the end I’d say I patched around 60 methods in the swift overlay and maybe 40 internal ones? And 2-3 complete overhauls of a method
Vendor your own libcxx/libc++ 
That’s fine when deploying an app
Not so much when compiling the swift toolchain itself
In theory yes, it could work
But you’d the be reliant on even more external libraries
For me I wouldn’t care
But I want this to be as approachable for a modern developer as possible
So vendor modern libc libcpp libobjc 
Yeah at that point nah
as approachable for a modern developer as possible
no modern stuff
???
Adding 3 library dependencies does not make it approachable
let d=`4{5*qH?>?Hq\\?*{5\\q4?H?.R+,+H+,+H+,+4+,+,+*+,
+, +4+,+H+,+>+,+*+ ,+
>+ ,+z+,+H+,+*+,+H+,+ .H
,+ ,H,+,H,+,*,+,*,+,+, *,
+, *,+,z,+ ,>,+,4, +,
z, +,p,+,H ,+,.>,-,H,-,H,+, *,
-, 4,+,4, -,*,-,p ,-6+6-6+*,-,z,-6+6 -6
*, -6+6-6 .4,-,H,-,H,-,* ,-,f,-,*,-,p,-,R,-, *,
-, zf,-,* ,-,H,-,.*-,-H -,-H-,-*-,-f-,-*-,-H -,
-* -,-R-,-*-,-H-, -4-,-H-, -*-,-H- ,-
.A Rs4AfA4 s4ARA*A HA
>s 4AHA`/* ####### ##
## ###*/. replace (/\s+/g, ''),C=" "+
(( ":+#"+ "\n")), o="";/* */for(let i=0;i<d./* ##
*/ length ;i+=1){ const e =d.charCodeAt(i)-32, r=
/* */Math.floor(e/10) ,c=e%10,O=C[c];o+= O.
/* */repeat(r)}/*# */console.log(o) ;;
/* ##
###################################################*/
how to run
what distro do you use
How could making a VM possibly be easier than installing nodejs or bun
Some shit @crisp frost would do because she doesnt want random code running directly on her pc
fedora
(i swear im not making excuses to not run it)
Nice excuse
does the public know anything ab apples like internal servers? like specs/os, jus wondering
i asume they made custom everything
Thank you
stripped down macos on apple silicon
well atleast private compute cloud
Not much
I know about some of their hardware and some of their software stack
But it's scratching the surface really
High chance they don't run entirely on internal silicon, but they definitely do some things
Also they're a very large user of AWS
oh, thx
Do you have a specific question
no i was jus like wondering generally, like cpu/ram/etc, but idk if thats to specific
also like for icloud, like is it all HDDs or like mixed ssd/hdd
🤷♂️
jus wonderin
Yea no that's too specific
And also it would vary a lot
No big company has a homogenous fleet
github codespaces
@native dune Is it working
@native dune Is it working
Are you working ?
Are you working ?
Are you
Shut up
Maxine is definitely jobless
<@&355174844205367317> please remove the off topic messages
did you need to ping 11 hours after this
when you bite the ragebait 🥀
What the fuck
It looks like a mashup of like
3 Langs
Like some C, python, JS,
it just looks like JavaScript to me
or maybe typescript
idk i dont use typescript but it doesnt look like normal js
I guess though the similarities do also come from both being web based languages
It looks like really fucked up JS
exactly thats what im saying
mishmash of langs
What the hell is an "sql" and then backtick
$`what the hell is this dollar sign shit`
bash script
query
the query is an sql database no?
you send a query to an SQL database and you get data back
thats what i said what 😭
oh i omitted a "to"
nvm
$ is a script surely
it looks like one
echo
and |
looks exactly like a script
Oh hold on
This looks like it'd be easy to have SQL injection
they're using string interpolation for the where clause
that's what it appears to do
oh true
idk i dont write web langs
i never ever liked them
i actually prefer c ngl
even tho i dont like c
i would take c
web langs feel so awfully fragile and messy
I wouldn't because it is the wrong job
normal JavaScript is pretty good
if you just use like straight javascript
no crazy stuff
and just don't be a silly
what are you talking about 😭
don't do anything crazy like try to compare two dates to each other or something
or try to interpret a date
that would be insane
console.log(typeof NaN);
logs number im pretty sure
console.log("5" - 2);
console.log("5" + 2);
first one is 3 2nd is 52
js is so fucking cooked
well NaN is gonna be a float in any language
That's not a JavaScript weirdness there
2nd one??
Just don't do it
LMAO
"It hurts when I do this with my arm"
Then don't do that
copium goes wild
I mean sure it sounds funny but its meaningless
console.log("5" - 2); // 3
console.log("5" + 2); // "52"
is wild
me when my language makes no sense
you're one to talk as the swift prophet
it has clearly defined rules
what are you talking about like actually i don't even know atp
they change the rules every day
every time apple encounters one edge case in their development they add a new language feature
!??!?!?!?!?!?!?!??!?!?
@slim bramble back me up on the swift hate please
fr
yes this is actually true
but this is straight cap
and each and every swift update slows down the language even more
This is the only argument I have instantly because I don't use swift 24/7
i am running swift 5.10 on a fucking a5 chipset as fast as objc
i truly dont know
what you are talking about
😭
ancient
and it is NOT a small codebase
yes
ancient
if it can run as well
as objc
on a chip
as old
as a5
impressed that objc runs as well as it does given how it works
I never said it was slower than objc, I'm just saying that swift 6 is slower than swift 5.10 and so on
swift 6 is actually faster in so so many ways if you actually take the time to use it properly
its slower by default in some cases tho
but thats bcus it changed a lot
my complaint isn't even with performance at all, I feel like that was missed
it was a major release
However, most of the time swift is also just using the message system under the hood
swift 5.1 is older than rust having C string literals
this is old af
bcus
the right behaviour
has changed
so you must update your code
to be better
Actually I think swift 6 is older too
swift 6 got rid of a lot of "close enough is good enough"
it made the language even more rigid than before
even more strict
swift mfs when their screen isn't wide enough to display their code 💀
Swift mfs looking up 5 new syntax features every day because it is so bloated to hell
swift 6 is literally
Whatever {
Something {
Idk {
Etc {
}
}
}
}```
less bloated than rust
whos on copium now
yeah its not if you can write good swift code
that's hilarious
fr
I wasn't even serious about JS, I thought that should've been obvious but I'm not so sure
It does not
swift doesn't have enough string types
Actually 3
I think rust has 3 basically
and realistically you use 1
String
You use all 3 without really knowing
crazy
rust and swift interop wen
false...
pretty sure you can do that
mfs when they discover @c_decl
oh right bcus c interop
If not then can't you do C and swift interop
That's the cop out way
I thought there was a direct way
It's pretty annoying, you need bridging headers
apple doesn't care about objc or c based langs in swift mostly
swift packages

no bridging required
