- 0 Posts
- 13 Comments
WolfLink@lemmy.mlto TechTakes@awful.systems•Remember how ChatGPT totally aced the bar exam? Wow! yeah, turns out that was just a lieEnglish34·1 year agoExactly my point. I’d expect humans trying to make something will get results on a timescale about a million times faster than evolution.
WolfLink@lemmy.mlto TechTakes@awful.systems•Remember how ChatGPT totally aced the bar exam? Wow! yeah, turns out that was just a lieEnglish34·1 year agoYes it is, in fact. Tiny, random variations, which typically take millions of years to end being a noticeable change.
WolfLink@lemmy.mlto TechTakes@awful.systems•Remember how ChatGPT totally aced the bar exam? Wow! yeah, turns out that was just a lieEnglish23·1 year agoSpecifically trying to do something will get it done a lot faster than waiting for it to happen by chance.
WolfLink@lemmy.mlto TechTakes@awful.systems•Remember how ChatGPT totally aced the bar exam? Wow! yeah, turns out that was just a lieEnglish41·1 year agoIf I practice trying to shoot hoops every day I’m going to get one in a lot sooner than you will just kicking at the ball every time you walk by.
WolfLink@lemmy.mlto Apple@lemmy.world•The first Apple-approved emulators for the iPhone have arrived41·1 year agoThis is the other side of OSS. As long as the clones share their source code too, this is completely legal.
WolfLink@lemmy.mlto Apple@lemmy.world•Apple calls 128GB 'lots of storage' in new iPhone 15 ad | AppleInsider82·1 year agoMy photo library is like 300GB (although I suppose I take a significant amount of video). I also have 30GB of downloaded music. 128GB is really not enough.
WolfLink@lemmy.mlto Nintendo@lemmy.world•Do new Switch joycons still develop drift?English11·1 year agoNo. It’s a bunch of screws, and a couple ribbon cables that slip into plugs. It requires being careful, patient, and some dexterity, but no soldering.
WolfLink@lemmy.mlto Programming@programming.dev•Any tips to help a scientist become a better programmer?2·1 year agoSay I’m doing what you describe, operating on the same data with different functions, if written properly couldn’t a program do this even without a class structure to it? 🤔
Yeah thats kinda where the first object oriented programming came from. In C (which doesn’t have classes) you define a struct (an arrangement of data in memory, kinda like a named tuple in Python), and then you write functions to manipulate those structs.
For example, multiplying two complex vectors might look like:
ComplexVectorMultiply(myVectorA, myVectorB, &myOutputVector, length);
Programmers decided it would be a lot more readable if you could write code that looked like:
myOutputVector = myVectorA.multiply(myVectorB);
Or even just;
myOutputVector = myVectorA * myVectorB;
(This last iteration is an example of “operator overloading”).
So yes, you can work entirely without classes, and that’s kinda how classes work under the hood. Fundamentally object oriented programming is just an organizational tool to help you write more readable and more concise code.
WolfLink@lemmy.mlto Programming@programming.dev•Any tips to help a scientist become a better programmer?5·1 year agoTo add to this, there are kinda two main use cases for OOP. One is simply organizing your code by having a bunch of operations that could be performed on the same data be expressed as an object with different functions you could apply.
The other use case is when you have two different data types where it makes sense to perform the same operation but with slight differences in behavior.
For example, if you have a “real number” data type and a “complex number” data type, you could write classes for these data types that support basic arithmetic operations defined by a “numeric” superclass, and then write a matrix class that works for either data type automatically.
WolfLink@lemmy.mlto Nintendo@lemmy.world•What are your favorite Zelda characters from across the series?English4·1 year agoWolfLink
WolfLink@lemmy.mlto Apple@lemmy.world•How do I add music (.m4a) from my files folder into the music app on ipad iOS 16.7.62·1 year agoConnect the iPad to the computer. In Finder select the iPad under “locations”. Select “Music”. Configure what to Sync, and then click “Sync”.
Alternatively, depending on your use case, it might be easier to simply use VLC and the Files app on the iPad.
The A button is already the largest button so it had to be stopped