ɟɟoɥɹǝppıɹ

28.2K posts

ɟɟoɥɹǝppıɹ banner
ɟɟoɥɹǝppıɹ

ɟɟoɥɹǝppıɹ

@hoffridder

dysfunctional programming language developer LANG: en_US, es_ES, da_DK, C/C++, js/ts, WASM, hs/kms Tryna make friends

Chicago, IL Katılım Eylül 2018
749 Takip Edilen1.5K Takipçiler
ɟɟoɥɹǝppıɹ
ɟɟoɥɹǝppıɹ@hoffridder·
@ShriramKMurthi Uneducated people can imagine and describe programs, coming up with ideas for math research requires extensive education. At most I think AI will be a tool for math research, not something that can completely replace researchers imo
English
0
0
0
1.4K
Shriram Krishnamurthi (primary: Bluesky)
For a while programming looked most under AI threat, but suddenly mathematics has taken pole position. My theory for why is 2-fold: 1. Math has had 1000s of years to get to clean formulations. 2. Math is self-contained: no "network misconfigured", etc. to gum up the works. ↵
English
20
9
305
39.9K
Hubert Thieblot
Hubert Thieblot@hthieblot·
Anyone who surfed the early web between 1995-2010. What’s the one website/app you still think about?
English
13K
636
13.4K
4M
ɟɟoɥɹǝppıɹ
ɟɟoɥɹǝppıɹ@hoffridder·
Incredible how we as a society have decided that the people operating AIs aren't at fault for any crimes they commit. Robotaxi guilty of vehicular homicide? Good luck in your lawsuit, the CEO who put it on the street is clearly innocent.
Sauers@Sauers_

English
1
0
3
117
ɟɟoɥɹǝppıɹ
ɟɟoɥɹǝppıɹ@hoffridder·
ok, so I've heard of a hamburger menu but this is the first time I've seen a pancake menu
ɟɟoɥɹǝppıɹ tweet media
English
0
0
9
217
Sylvester Hesp
Sylvester Hesp@oisyn·
It's a bit pedantic, but "moving" implies it no longer exists at its original location. The value is copied (into a register), not moved 🙂 As for how to enable optimizations, I don't know if that's possible with compiler explorer. C# doesn't compile to native assembly anyway, the .Net JIT compiler takes care of that at runtime. I'm not sure how representative the compiler explorer toolchain is. But the case your showing seems very representative of a debug build.
English
2
0
0
40
:3
:3@Colonthreee·
Apparently doing array[c]++ is not just syntactic sugar in C#, it takes less instructions...? OwO
:3 tweet media
English
6
0
32
3.7K
ɟɟoɥɹǝppıɹ
ɟɟoɥɹǝppıɹ@hoffridder·
@Colonthreee So the C# equivalent is ref int v = ref values[c]; v++; Seems cursed but I guess at least it's possible. I wonder if C# supports move semantics lol
ɟɟoɥɹǝppıɹ tweet media
English
0
1
2
153
ɟɟoɥɹǝppıɹ
ɟɟoɥɹǝppıɹ@hoffridder·
@Colonthreee idk C# but in C++, values[c] is an lvalue (assignable reference) -- so if you don't assign it to a variable, there's no need to copy. Why? consider you have multiple threads, behavior changes values[c]++ is comparable to int& v = values[c]; v++; or int* p = &values[c]; *p++;
English
1
1
4
158
Gerard Jebaily ☈🌪
Gerard Jebaily ☈🌪@GerardJebaily·
INSANE video of a tornado (No, this is NOT A.I.) moving within just yards of people outside in Trappe, MD as it destroys a roof off a building!!! This is one of two confirmed tornadoes to hit the county yesterday. @FOXBaltimore #wxtwitter #mdwx
English
31
152
1K
172.8K
ɟɟoɥɹǝppıɹ
ɟɟoɥɹǝppıɹ@hoffridder·
@thepanta82 @ImLunaHey You can actually use the `mutable` keyword if you want to modify the copy of factor. You can also use std::move to transfer ownership although in this example it doesn't really matter.
English
0
0
3
99
Panta
Panta@thepanta82·
@ImLunaHey Hmm, `using` is more like the same keyword in C#, deals with resource disposal. This would be more like C++ lambdas, where you capture what you want to use from the outer scope ahead of time and can't touch anything else.
Panta tweet media
English
3
0
5
8.7K
Panta
Panta@thepanta82·
I always thought this idea was super neat. I wish a major programming language actually did it.
Panta tweet media
English
43
0
114
33.9K
ɟɟoɥɹǝppıɹ
ɟɟoɥɹǝppıɹ@hoffridder·
@ZyMazza I mean the issue is I don't think you can tell exact hair and eye color in that photo... Which probably isn't ideal.
English
0
0
0
6
Zy
Zy@ZyMazza·
@hoffridder no it looks like that. if you look closely youll see usa is red
English
1
0
1
103
Zy
Zy@ZyMazza·
do NOT like the new American Passport design 😖
Zy tweet media
English
21
1
84
8K
Space and Technology
Space and Technology@spaceandtech_·
Meet Sunbird, a nuclear fusion-powered space tug concept from Pulsar Fusion. Using a Dual Direct Fusion Drive fuelled by deuterium and helium-3, it could one day help spacecraft reach Pluto in about four years. Orbital demonstrations are planned for 2027.
English
190
583
4.5K
379.8K