#development
1 messages · Page 207 of 1
what binary are you trying to run specifically, it likely will need to be patched
but chances are the thing you're looking for is already on procursus
Nah im trying to run source engine port and yeah it might need to be patched
Im assuming you cant run anything that uses opengl?
I might agree about 3x, but not about 2x. These distributions exist for a reason. For example, 2x is often used for iPads. Of course, you must manually adjust the sizes so there are no issues
P.S. Learn how to pack assets, it's a pretty cool thing, though probably useless in the context of 99% of tweaks when bundle only has a few images, lol
¯_(ツ)_/¯
👍

make: *** No rule to make target ‘/bundle.mk’. Stop.```
Windows WSL (ubuntu) when trying to compile a theos tweak
How would I set it?
how are you going to use opengl properly when it hasn't been updated (deprecated since ios 12)
you'd have to use metal lol
and ios would have opengl ES which may or may not be fully compatible with opengl calls
you'd have to fix it a ton
the project can be built for macos sure but that's already a huge difference
fwiw I got the dylib to work properly so ig i'm using that
is it a bad idea to try to use quartz for something
i wanna make a wayland compatibility layer for macos so i can test my stupid compositor on macos
all i need to do is be able to just bridge a buffer between the window and wayland client
oh actually that might be a problem because with vulkan id probably be rendering to a dmabuf
I think Nugget's region code change will work on iOS 16 and 15, is that correct?
Yes
Theres a fork that can already build for macos
Thats what i want to run
Here’s the repository if you want to check it out https://github.com/nillerusr/source-engine
would you happen to still have this? :p
i want to make an ios app without xcode
how
nvm
how do i build an elctron app for arm64 even tho i am on 86.64x
What host os
macos
MacOS
please
electron-forge package --arch=arm64 --platform=darwin
Thanks
Or really, do universal

Try it and see
should I make mateiral design buttons?
Yes
ok
Yes
As long as you have the deps
Why
😭
change your phone
I am using an iPhone
change your iPhone
I am changing to a new iPhone
From a 7+ to an 8
= no okemoVail
HELP
@
The ripple button is not working and I do not know why
Ok wait
oki thank you!!
bro you should try and figure it out for yourself instead of asking #development
i tried
i failed
- idfk what is failing
code works in another html file

bro you can't expect to be spoonfed everything
sorry if I asked too much
no its ok
idc if you ask but like im worried youre not gonna be able to figure it out yourself
I mean I gone thru all of the troubleshooting steps
but turns out VS code preview was just being bitchy
fr
Decided to run the arm executable without modfications to see what happens
I was going to say that but forgot
stupid VS
It’s an app called Koder
I like editing code :3
It’s afternoon not evening
Maybe I messed up the time
Now it’s fine
oh
@grave orchid I changed the hyperlink color from underlined blue to white
Right
Wait I forgot about figma
I’m going to try it
Figma not compatible
So the kernal is killing the process because it couldnt be verified by coretrust
Is there anyway i can apply coretrust certficate to the binary?
Yeah
Coretrust
I don’t know of one
Probably yea
Well the port also includes dylibs do i need to sign those too?
Well good news is it now doesnt complain about coretrust (i think), but now:
only launchd is allowed to spawn untrusted binaries
Oh idk about that
Well the binary is supposed to launch dylibs so im gonna try signing them too
Yeah do that
Still the same error
Oh then try with launchd ig
You mean launchd then binary path?
Yeah
Hey i got the binary to not get rejected
But now its complaining about a missing dylib
Guess this is as far as i can get without modifying the source
Bruh
Just mod it
What do you mean?
Modify it
yea, the link is working now
is @versed fiber still in the comunity ?
was wondering if betterCC could be OS ?
what do i do for a tweak ?
how do i see hooks ?

idk this stuff 😭
does anyone have xcode 13 and can send me a used template for old watchOS complications 😭
id get it myself but it'd take forever to download old macOS and even xcode 15 crashes on macOS 15
upload the dylib to this site it will list the hooks https://libswift.com
i just need a blank project from it
just make a watchos app with ios companion then add an extension
or however you get complications
same
It’s probably a driver in exclusively in macOS that it couldn’t find? Idk
that's awful code
yeah thats why they said its ugly
but it seems like there isnt much of a better way to do that specific thing
its an enum thats private
i don't get what they're trying to do, if you don't know the type of the number how are you meant to deserialise it without checking which types it would conform to
Thats what theyre doing
checking which type it can fit into
shortest vulkan function name
LOL
also i was looking at some c++ features
if ANYONE says c++ is just c with classes ever again omg
WHAT IS THIS 😭
WHO THOUGHT THIS WAS A GOOD IDEA
c++ is just c with classes
c++ is just c with classes
C++ comitee when language still has readable features
(they have to fix it)
"/private/var/.backup.i/var/root/Library/Backup/SystemContainers/Data/../../../../../../../../var/containers/Bundle/Application/8387A40F-6C8E-4529-B6C2-0CC5014EC180/RedditApp.app/Assets.car" (MBErrorDomain/102). Underlying error: The file “Assets.car” couldn’t be saved in the folder “Reddit” because a file with the same name already exists. at path "/private/var/.backup.i/var/root/Library/Backup/SystemContainers/Data/../../../../../../../../var/containers/Bundle/Application/8387A40F-6C8E-4529-B6C2-0CC5014EC180/RedditApp.app/Assets.car" for URL
Does anybody know how to fix this error from SparseRestore
apparently passing in /private/var fails restoring even if its the same as /var
im gonna assume its bc var is a different partition from /private
nvm
it is the issue
/var is a symlink to /private/var
yes but /private is not on the same partition as /var
idk
i thought they were the same
is there a way to clear uicache on new versions without ts or jb
bro i saw that same function yesterday while looking through docs
Are you dealing with .vulkan too?!!?
This is why i chose rust

yeah exactly, how else would you expect them to? that's probably the cleanest way
The button
Fake
Wdym
You used inspect
you used edit code
make the colours match your pfp, it looks out of place otherwise
thank you :D
actually the colours are from Google gemini which the Good _ is based on
so o
yeah
;D
yeah but your profiles not matching, imo you need to change one or the other
yeah but
bro going all in with the google AI
ITS GOOD AI
sometimes better than chatgpt
nah claude the goat
PEAK
Does it know how many R's are in strawverry
There are 2 R's in strawverry
3
there are 3
oh god
my site is very laggy
i can’t even visit
😭
time to optimise
i think i added too many fancy effects
the site doesn’t work on mobile anymore
wait
it doesn’t work for only ios 15
@grave orchid Corrected it for you
Real
Webfur
Ok swift tweak dev
Ok
correct
wdym
Ok French
works on my android
doesn’t work on ios 15
works on ipadOS 18
hmm
Change those margins for phones too @grave orchid
btw the site will look bad on mobile
ok i’ll do this tmr
i’m gonna sleep
for the last time
i am NOT A FURRY
Okay I'll send the logs picture
yea the site doesn’t work for mobile S

DO IT
you use a message logger? erm mods
eh i like the design rn
but make it diffrent for mobile by using the user agent
so its optimized if you are on moblie only
Oh boy! My favorite! A script that Checks wether or not like 50 different user agents are mobile ones or not 
or just the display res
so if its too small
@grave orchid is that supposed to happen
it will use the optimized version
yes it’s broken for safari
idk why
Safari moment
🔥
works on android
who uses safrai
everybody on ios might as well use safari
i cant spell it from how bad it is
it's all webkit anyway
yeah i use safrai
or only eu
on ios only
no eu regulations are forcing apple to allow for other browser engines
yeah that's what i think too
checking user agent is absolutely not the way to make a site responive lol
just use a media query
^^^
Yeah unless your using a backend that is serving a different site yo mobile uses
And why are these sites always sharing m.website.com links
Nobody wants to share a mobile link
Depends on the site
YouTube's mobile site is okay
I think wikipedia's is smart enough to redirect m links on dekstop back to desktop
False
just use match media on the js and match for a screen size 😭
yeah that was my second idea: #development message
why..?
media queries exist for a reason
well if you're trying to do it from css sure
i assumed they needed to know if it was mobile from js
meow
meow :3
bro doesn't want a corvette no more
💀
🙄
fr
Bro is broke: doesn't have 400k

(I don't either)
fair enough
Ngl the new aventador looks soo good
fr
pov you just tried to call Foo::get_a<T, U>(Foo<T, U> self) on a Foo<string **, string**>
function l $Foo.get_a.__elle_generic.__elle_pointer.__elle_pointer.__elle_pointer.12.__elle_pointer.__elle_pointer.__elle_pointer.12(:Foo.__elle_generic.__elle_pointer.__elle_pointer.__elle_pointer.12.__elle_pointer.__elle_pointer.__elle_pointer.12 %self.10) {
@start
%.11 =l add %self.10, 0
%.12 =l loadl %.11
ret %.12
}
😭
what the fuck is that
it is not
it is this
struct Foo<T, U> {
T a;
U b;
};
fn Foo::get_a<T, U>(Foo<T, U> self) {
return self.a;
}
fn main() {
Foo<string **, string **> foo = Foo { a = 0, b = 0 };
foo.get_a();
}
compiled into IR
type :ElleMeta = { l, l, w, l }
type :Foo.__elle_generic.__elle_pointer.__elle_pointer.__elle_pointer.12.__elle_pointer.__elle_pointer.__elle_pointer.12 = { l, l }
function l $Foo.get_a.__elle_generic.__elle_pointer.__elle_pointer.__elle_pointer.12.__elle_pointer.__elle_pointer.__elle_pointer.12(:Foo.__elle_generic.__elle_pointer.__elle_pointer.__elle_pointer.12.__elle_pointer.__elle_pointer.__elle_pointer.12 %self.10) {
@start
%.11 =l add %self.10, 0
%.12 =l loadl %.11
ret %.12
}
export function w $main() {
@start
%.6 =l alloc8 16
%.7 =l add %.6, 0
storel 0, %.7
%.8 =l add %.6, 8
storel 0, %.8
%foo.addr.9 =l alloc8 16
storel %.6, %foo.addr.9
%foo.5 =l loadl %foo.addr.9
%foo.5 =l loadl %foo.addr.9
%foo.5 =l loadl %foo.addr.9
%.13 =l call $Foo.get_a.__elle_generic.__elle_pointer.__elle_pointer.__elle_pointer.12.__elle_pointer.__elle_pointer.__elle_pointer.12(:Foo.__elle_generic.__elle_pointer.__elle_pointer.__elle_pointer.12.__elle_pointer.__elle_pointer.__elle_pointer.12 %foo.5)
ret 0
}
😭😭😭
i will turn them all into numbers
its not IR, its elle compiled into IR
idk whats happening.there thoigh
ive never read IR
you suck
i use __elle_generic to indicate that this is a monomorphic generation of some generic struct
and i use __elle_pointer to indicate that the next argument is actually a pointer to something
i can just turn it into a number tho
Where does it say what types are used in the generic
that is the part that follows
It just says pointer yhough
each primitive is given a number
12 is char in this case
__elle_pointer.__elle_pointer.__elle_pointer.12 = pointer to pointer to pointer to char = char *** = string **
if its a struct it puts the struct name directly
if its a pointer it does __elle_pointer.<inner parsed as id>
so a Foo<Bar *> would parse to Foo.__elle_generic.__elle_pointer.Bar
although im working on turning these specific identifiers into numbers themselves
so 0 is __elle_generic and 1 is __elle_pointer
i made it numbers
type :ElleMeta = { l, l, w, l }
type :Foo.0.1.1.1.14.1.1.1.14 = { l, l }
function l $Foo.get_a.0.1.1.1.14.1.1.1.14(:Foo.0.1.1.1.14.1.1.1.14 %self.10) {
@start
%.11 =l add %self.10, 0
%.12 =l loadl %.11
ret %.12
}
export function w $main() {
@start
%.6 =l alloc8 16
%.7 =l add %.6, 0
storel 0, %.7
%.8 =l add %.6, 8
storel 0, %.8
%foo.addr.9 =l alloc8 16
storel %.6, %foo.addr.9
%foo.5 =l loadl %foo.addr.9
%foo.5 =l loadl %foo.addr.9
%foo.5 =l loadl %foo.addr.9
%.13 =l call $Foo.get_a.0.1.1.1.14.1.1.1.14(:Foo.0.1.1.1.14.1.1.1.14 %foo.5)
ret 0
}
that is a LOT more sane looking
Whats the difference between byte and char
none when compiled, but char has extra semantic context
In ios 17.0 launch daemons protected by ssv
How can i sign a daemon that auto load on start up
Anyone knows ? And whats the new path
Vagina boob
Hmm
I don't understand
Is there something that isn't up to date with apple's webkit
no they lag
it was just in the perfect time
i took the screenshot
and desktop chrome is webkit btw
its not webkit 's problem
Then why isn't it working on iOS but works on andorid
Ok so what version is your iphone 14 on
wait on a 11 pro at ios 14 it will work
no the fuck it isn't lol
chrome uses chromium engine
it is
i remember chromium uses webkit
it was forked from webkit a decade ago, it's certainly not the current webkit anymore
check chromium.org
wdym check chromium.org
oh
technically its blink was forked from webcore but the sentiment is the same
its based on webkit
yes it is
so anyways on ios the "chrome" app uses webkit and you can have fun ensuring compatibility with webkit because it for some reason behaves very differently than chrome and firefox
just make a diffrent version for webkit
i have several webkit specific css rules on my website just to make it behave normally
true
sounds like it's just the successor and not an actual code child
for some reason all the browsers put all the frameworks in their user agent
and i dont remember why
oh i didnt notice youre simulating one there
yeah
Then why isn't it working on ios
because its an entirely different browser from desktop chrome
this is what i was thinking of, from chromium
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
also my fonts look really goofy in chromium for some reason right now
Then why does it work on mobile chrome
what
it works in ios chrome but not ios safari?
android chrome should be same as desktop chrome
it actually uses chromium
iOS is very annoying
webkit is a little wonky
firefox devtools have a compatibility tab that can tell you if theres something blatantly incompatible with other ones
what si the website
its safari
right over here on the right
well thats awkawrd
yeah firefox says no issues
somethings broken about that
is this dynamically loaded with js or something
i feel like there should be at least some entries
instead of none
also i feel like its half broken on firefox or maybe thats just the design
nah its fine on firefox
the link color isnt messed up
ah
but also the layout is equally messed up
im installing chrome
Correct
It looks best on mobile
ik
i have no idea what is going on here
Safari version vs android chrome
idk im try to understand this code
wait appitize has andriod
me too
i cant find the matching function in my libnrary
oh wait i totally missed an entire section before
wait safari has vertical tabs
I write shit code, hence I am a 
i completely forgot html and now i need to fix something in it
Should I just remove the background graidnet
Because it's causing a lot of lag on other legacy devices
but im making it work for safrai
Yeah can you teach me instead
idk i just googled
O
yeah
i cant fix it
i tried
webkit bad
True
It wouldn't be a proper wedding without a fully customized version of the NYT Games App. Obviously.
00:00 - Intro
1:50 - Inspecting HTTP Traffic
4:06 - Decompiling (Maybe)
6:03 - NSURLProtocol
17:00 - Making a Framework
27:32 - Cache Busting
36:24 - Crossword Replacement
40:35 - Webviews & Other Puzzles
48:29 - New UI
55:42 - Wrapping Up
As al...
2’s compliment my ass I ain’t complimenting no one let alone 2 people
How did he install it on their devices
fr
Normal sideloading probably
probably, just kinda misleading since he said he wanted it to be where "you open the NYT games app that you open every morning"
Technically it is the same app 🤷
true
ok furry
Try to deny it and you know what's happening
What you have there is photoshopped
sure
Yeah so can you shut up about it?
no
Why
funy
It wouldn't be a proper wedding without a fully customized version of the NYT Games App. Obviously.
00:00 - Intro
1:50 - Inspecting HTTP Traffic
4:06 - Decompiling (Maybe)
6:03 - NSURLProtocol
17:00 - Making a Framework
27:32 - Cache Busting
36:24 - Crossword Replacement
40:35 - Webviews & Other Puzzles
48:29 - New UI
55:42 - Wrapping Up
As al...
Bro cooked again
I had already posted it bruh 😭😂
Hmm let me try
Your css is really messed up isnt it
What’s happening
Because I removed it
The commit is called fix iOS attempt 1
Yeah idfk
Just remove the background effect
Or remove it if there is iOS in the user agent or smth
Don’t
It should be iPhone OS
Mozilla/5.0 (iPhone; CPU iPhone OS 15_8_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.6 Mobile/15E148 Safari/604.1
There is no iOS
Only iPhone OS
@grave orchid
that is pretty scuffed
mobile
Ik
Can I see to access its photoshopped-nsss
About the capability of sparserestore above 17.0; can it be used to overwrite a deletable system app with any app i want so it becomes basically a perma signed app i can use ? If so, does it keep the original apps entitlements ?
Also i wonder the same thing about appstore apps, can i install an app with a target entitlement and then overwrite it with sparserestore, in order to keep the entitlement it has (or to simply have a permament sideloaded app instead)
no
the app will just crash on launch
source: i tried it
did not work
Tips just does not launch anymore on 17.2.1
Ohh right, alfie was talking about how installing and codesignature/launching were different things
yeah the executable would still need to be signed
Is it a write exploit in /var or /private/var though ?
i thought /var was a symlink for /private/var
And to apply does it actually restore (ie. the phone reboots) or does it cancel it and its a seamless experience. I didn't have the chance to try it yet (and also idk how to use it anyway lmao)
It restores but includes a faulty file which causes the restore to cancel
But the files are still overwritten
And you need to reboot
Also, there's gonna be the Setup screen again
Where it'll ask you to transfer data, choose your language etc
nugget dev said they found a bypass for the setup screen, not sure if it's out yet
Ah alright thanks (i heard they were working on skipping that), if someone could also answer that i am done 😂
yes
struct Array<T> {
i32 size;
i32 capacity;
T *elements;
};
fn Array::len<T>(Array<T> *self) -> i32 {
return self.size;
}
fn Array::with_capacity<T>(i32 initialCapacity) -> Array<T> {
Array<T> array = Array {};
array.elements = malloc(initialCapacity * #size(T));
array.size = 0;
array.capacity = initialCapacity;
return array;
}
fn Array::new<T>(ElleMeta meta, ...) -> Array<T> {
Array<T> array = Array::with_capacity(2);
if meta.arity > 0 {
variadic args[meta.arity];
for i32 i = 0; i < meta.arity; i += 1 {
array.push(args.yield(T));
}
}
return array;
}
``` this is becoming so complicated i cant imagine ever having a self-hosted compiler at this rate
Hi ,
I hope you're doing well! I’ve been working on a tweak to manage or hide certain apps' battery usage, and I’ve made some progress. You can check out what I've done so far using this link:
However, I ran into some issues with my Mac last night, and I currently don't have Xcode installed to package the tweak into a .deb file. Could you help me package it properly into a .deb?
Let me know what your fee would be for this. Looking forward to your response! 😊
Thanks again!
Best regards,
Where is the link
I don't see anything
Accept req
Send the link here
Accept req
@gloomy gale You claimed you were working on the tweak, not chatGPT.
So I am looking at what are the requirements?
@radiant idol this guy feels oddly familiar
Ngl a whole like
You are not looking at the requirements, the first message is literally Sure, I can give you a starting point for the code. This will be a basic example to hide or replace Screen Time and battery usage data for a specific app.
I have homework to do goodbye
"Tweak Dev GUI" or whatever would be pretty baller

Simplify the tweak dev experience 
And then proceed to create a whole new era of tweak dev slander for people who used the "easy way"
idea
SwiftUI tweaks

block based tweak ide like scratch
Apple when moving completely to swiftui in ios 19 
i don't think they can just do that
Apple when moving xnu completely to rust in ios 19
chatgpt is a disease
BobaGPT will revolutionize the AI industry
ai is a diswase
ai is actively and exclusively being utilized to solve problems that don't exist
there are exceptions but that's the majority
supercharge fr
iOS 18's best AI feature is notification summaries so i don't have to read aaron's wall of text in announcements
based
the wall of text in question:

Over 1 characters, too long
character*
stkcOS forgot to add the singular form of all the strings to the i18n maps
Its called newterm2
Don't give nebula ideas he'll build this in shortcuts
i would honestly applaud them over calling it cursed
furries can't build shortcuts man
I’ve been programming for 14 years, and it still bothers me that sorting algorithms don’t sort.
They order.
how
- arrange systematically in groups; separate according to type, class, etc.
where are the groups
The values of your data
thats the entire original point of the question
your response made no sense because it was entirely wrong
string concatenation
or decatination
trim pwd off the front
realpath 
there a flag for it
u on new macos aint u
last few version i think
they removed the command
need install coreutils off brew
can prolly do some haxx with find command maybe
Count the number of / in the current dir add ../ for each / then append . and your other path
if you need something reliable, you want an actual language and stdlib
well i cant stop you can i
kill me
time to compile esphome c++ on i5-2310
tf u doing where u need it fully stock
use meson
use cmake
(pls dont)
makefile or script the only valid ways
makefile calling xcode build
Why do you need relative path?
You could probably look at pwd and if the dest path starts with it then replacr that part with . Otherwise increment a counter and cd .., then repeat. Append, as many ../'s as the coubter counts

meson is the only valid way in the current decade
what's the path for status bar icons?
show
cock
@grave sparrow rate the struct
// Provided by VK_VERSION_1_0
VkResult vkEnumerateInstanceLayerProperties(
uint32_t* pPropertyCount,
VkLayerProperties* pProperties);
oh actualyl im stupid that does have a purpose
nvm
i was thinking its stupid because uint32_t* but i just realized thats becaause its an output
what
Apple developer; make their codebase work with newer xcode challenge (IMPOSSIBLE) (XCODE GOT HANDS?)
commit axe murder asap
guys i might be about to use c++ or rust as a scripting language
use what you know the best
thats not really what i meant
im trying to make a video editor where you write code to make the video, but figuring out hwo to make a javascript runtime would be a huge task
so what if i just compile rust files on the fly and execute them instead of figuring out an actual scripting language
javascript can become the task later once i have a first version
just link against ffmpeg
i mean im gonna make my own wrapper around it to make it an actually good api to edit with
because writing stuff with 5 c raw ffmpeg c libraries is the worst way
yah but no way bash or python can do this
i mean like id have a javascript runtime which would just get the types and methods bridged over from my rust api i make
so then you wouldnt have to learn rust to edit videos (only js, maybe thats worse)
you know maybe js is worse
if i can compile the rust scripts to .so easily from my program then we should be good
hopefully there isnt a problem of abi if i compile it on the fly
oh but compiling rust is slow so that gets annoying fast
writing code to make videos? how does that work :o
just imagine having an api to do any sort of cut, filter, etc to the video that you want
and its all declarative
in /applications
oh bummer
i know exactly what i want to make as a demo video
a ytp of this https://youtu.be/J8x-xoDeJsQ?si=96_g1qgJl7WaQC3M
its got so many good things to mess with
it would be really funny if i made a cover of a song using samples from this video...
show
turns out
ios
doesn't support that many items in safari
so I edit code again
so I must remove all of the gradients
lua
lua ❤️❤️❤️❤️❤️❤️

lua is probably the way to go
Lua my beloved
said no one ever
lua >>>>
perl
lua sucks
lua sucks
also this is gonna involve a lot of monads
idk if lua is even oop enough to handle that well
not even rust has monads
i think
Option is a monad with some methods if i understand correctly
you can Option::map without directly branching in your code on whether it's Some or None, which i think is what monad means
not entirely sure
hm
i have no idea what a monad is but that's possible with options yes, not Option::map but Option.map
Option.map is Option::map
im talking about rust
yeah, Option.map not Option::map, :: is for class methods and . is for methods on an instance of a class
so anything that takes self as an arg is called with a .
theyre literally the same thing in rust, and ive always thought it was more correct to say the actual method because Option.map is not valid syntax if you pasted it in
they're not the same thing in rust at all, but i get what you mean with syntax ig
but Option::map is also not valid
it is though
since Option isn't an instance
i don't even think the compiler will let that pass, my_option.map(predicate) is the idiomatic way of calling it
if you look at js docs, people use Option#map (but equivalent because theres no Option in js)
it's more idiomatic to say the method generically than with the . because the dot means something specific
i disagree but to each their own
iirc docs.rs uses the . syntax
as any normal person would in a codebase
wdym
they dont use anything, they just show you the methods
that's cos it's the namespace i'm pretty sure
not that you're calling it with that
ngl it doesn't really matter anyway lol
also a common pattern with maps is referring to the actual method instead of making a closure
// turn this to a string
["jakdskf", "djasfjkkaf"].into_iter().map(std::string::ToString);

no that is the method
notice how it says method on the left
actually this one is because its a trait
yeah ik but it's the namespace to the method, not how you would call it
i picked the wrong example
yeah..
it is the same lexic object as the method
it is the method because thats what a method is in rust
its just implicitly passing self when you put .
that is all
you can all it using :: syntax if you want, the rust reference mentions that
you wouldn't? but that's not the point?
it's more correct to refer to the actual method object instead of writing invalid syntax using dot which doesnt mean anything
you can call it using :: syntax if you want, the rust reference mentions that
"if"
you're suggesting it's something you should do
in documentation you write by referring to the actual method, this is standard basically everywhere in programming
it doesnt make any sense to write invalid syntax to refer to a method
sure but if you're telling someone how to call it you're not going to give them the namespace to the method you're going to show them how to call it
option.map()
not Option::map()
you do though, basically all experienced developers do
if you go in the rust server, that is what the convention is
i wouldn't want to go there lmao
someone goes
"hey how do i apply something to an option if it's some but just propagate none if it's none"
"you need to use Option::map"
makes the most sense
good
i am glad
you were the one acting like it did when i used it
if you want to be a normal person then you use it
if you were really insistent on using dot notation then you can just omit the start and say "use .map("
i mean i said ages ago it doesn't #development message
and that's relevant how? you were the one making a fuss over it lol
and also confidently incorrectly saying Option::map and Option.map (the latter technically not existing) are different
we're arguing over semantics, im ngl i have much better things i could be doing
you were incorrectly arguing over semantics, i was trying to correct you
Does anyone know a c++ learning material that only covers the additions over c
i don't but should be short enough for you to not have to relearn c https://learnxinyminutes.com
Stay sane and keep c
Fr
Damm this took me 1 hour to read
i love monads
my video editor will be composed of many monads
horror
but monads are good
fp when writing code for a video might actually be the most interesting idea i’ve heard in a while
yeah
ive been trying to work out how stuff might actually be connected
i first thought of using a javascript runtime but ive neverdone that and dont know what that involves (do i potentially just wasm-bindgen all my types and make them serialized out from the js execution?)
Then i considered at least being able to write video in rust as a prototype but then thats unstable abi hell, and slow to build
still think js runtime is the final solution but idk how yo do stugf
imo luau? fast to compile, fast to run, easy to bind types to, easy to embed idk
i joke about lua but it may actually be a good idea
i will say, after effects uses a subset of JS for expression values
it is not very nice because you’re writing js
perhaps yeah
does it even have a particularly strict type system yet
luau does iirc
js has everything you need in terms of types
thats more TS
prototypes ✨
if you access a null property in js it feels the need to not tell you until runtime
painful for refactoring
hmm ok
so it’s gonna be jit then?
are you planning to embed node or write your own orrrr
im curious whether there really is a type binding thing in lua in rust which is also easier than any js relatef solution
probably deno
i imagine they have better rust bindings than node
since, you knwo
fair
i just need to be able to bridge type definitons (preferably without redefining them all manually in ts and wrapping the ffi calls) basically i thinm
and be able to just export default the final type structure which represents the video, and convrtt it back to rust types
you could autogen .d.ts files from the rust bindings
idk i was hoping thered be some option that could just like inject everything to the runtime and convert transparently without generatimg stuff
plus idk how the ffi goes
from experience of wasm it’s uhhhh not nice
- pointers are numbers
- floats are numbers
- ints are numbers
Not sure what your looking for exactly but I recently used duktape to embed JavaScript into C++ and it worked great
its because i wanna avoid having to write half my code in js instead
imagine having a nice interface with floats, an array in the form of a whatever* and a bunch of ints of different sizes
in js they’re all : number
this is more for c/c++ but it it has rust bindings that could totally work here too
but what exactly does it do in full
Does it solve the problem of bridging types and ffi which is bascially the entire issue
just running js isnt a problem because deno
Duktape is an embeddable Javascript engine, with a focus on portability and compact footprint.
Duktape is easy to integrate into a C/C++ project: add duktape.c, duktape.h, and duk_config.h to your build, and use the Duktape API to call ECMAScript functions from C code and vice versa.
you get given an api in the js to run C code
You can create functions in JS that just call C functions
in this case rust code
but idk if thats the problem
Basically i want to write my object model (all my types and methods to transform them) in rust but have all that accessible from js
Duktape lets you do exactly that
But you'll need to create the JS objects manually unless the Rust bindings do some magic
The API takes some time to get used to but after that it's quite simple
also depends if es5 is enough
yeah there's also that
does it at least have esmodules
its js is not exactly modern
I don't think it has anything like that
You could also straight up embed v8
I just don't think running Deno or Node externally would work too well, unless you write a majority of the code in JavaScript
that's how lua does things, you define the structs and methods in your native language and the bindings make them on the lua side, you can also write your own lua iirc for helpers and what not
yeah but lua sucks
i know lua is meant to be embeddable but this tbh
ill consider it but i dont think its object model is strong enough for my needs
depends on what you're using it for, i thought the same before i wrote my neovim config and imo lua is the perfect language for it
you'd be surprised
it can get a little bit hacky but it's doable
i dont even know how classes work in lua
__proto__ iirc
wait it doesn't look that bad https://www.lua.org/manual/2.4/node36.html
no lua is quite nice, only hinderance i have with it is 1 based indexing
can you have type wrappers easily in lua
like type X = Y?
i think you can do it but it might've been through doc comments
i honestly can't remember
struct Trim(Box<dyn VideoStream>)
generics?
No
oh nvm i'm dumb
A type thar just contains one other
i've only really seen that in rust
but if lua hasn't got a standard way of doing it you could just have an object with one field
generics are necessary but maybe work through dybamic typing
Oh it has generics anyways
yeah lua has generics
Ive decided ill just use v8 because then i can say i use a v8 engine
okay apparently ipatool is bugged because purchasing is busted
is there any way to purchase removable system apps?
Arent they purchased by default?
Oh you are using ipatool py
Apple Music, measure, literally none of them are purchased
Yeah
ipatool golang also has the same issue when I try it with CLI
Maybe try their method for old version
What's that
You can run an itunes server on windows and download old versions through it
Oh that's cool
Try using the server to purchase instead
where do I find how to selfhost a server?
Theres a guide in their github
No
Well yes but also no
You don't get the proper versions but some garbage stubs instead
Why




