Alex (@bara) profile picture

Witness to shows of misplaced confidence and embarrassing defiance.

Joined April 2007
Photo by Alex (@bara)Photo by Alex (@bara)Photo by Alex (@bara)Photo by Alex (@bara)Photo by Alex (@bara)Photo by Alex (@bara)Photo by Alex (@bara)Photo by Alex (@bara)Photo by Alex (@bara)Photo by Alex (@bara)
Time for a new pinned tweet. And keeping it on topic with the old one... Looking for information on BASICTutor
5
6
2
19
Replying to @Nymdok
Yes. Bolillo, sliced in half, tamal in the middle, no condiments. It is like biting on a sponge that will dry out your mouth. And I love it.
17
Replying to @SandyofCthulhu
This is why Dark Souls and the rest from From are way better than most of the Souls-likes.
303
This was obvious to anyone a bit familiar with generative AI, but journalists (@crampell) are not known for that.
Correcting the record: 1. It's built by autonomous SI agents that plan, write, test and merge code on their own at all hours of the day. While I am at work, it runs on my home computer. The GitHub activity is agents committing, not me at a keyboard. 2. This is a side project that has been running continuously for a few weeks. 3. It runs entirely on my personal accounts: Claude and ChatGPT subscriptions I pay for myself, plus my own AWS and Cloudflare. No taxpayer money or government resources.
2
122
Replying to @DaddyWarpig
I have not played it and remember very little of the original, but maybe that's why Marcus starts in jail?
1
21
Replying to @Nymdok
I want a torta de tamal now.
1
25
Alex retweeted
And then the witch doctor, he told me what to do He said that:
Replying to @NYCMayor
ICE wala hoosa siutaare nyalaumaare gootel daga sendutuki Iyaluuji Wuro New York. Min hoosataa siutaare nyalaumaare gootel daga haɓutuki. Himɓe New York waawan nodduki Lamba Wallinde Hiita Egguki ha 1-800-354-0365 ko nyo'u 311 nden wi'u "Immigration Legal" (Hiita Egguki) ngam heɓuki wallinde hiita jei shaahu, holnaare e nder sirru balɗe jeeɗiɗi nder asaweere. Wuro amin ɗo darano Himɓe New York.
3
2
2
41
565
I'm speechless...
When my DJ life and a LAN party accidentally collided in LA. My roommate was throwing a LAN party. I was supposed to DJ a club that night. So a bunch of club girls came over to ride with me to the club. The gig got canceled at the last minute. So I decided to hang at the LAN party. The girls came over anyway out of boredom. They call some of their friends who have nothing else to do. So an apartment full of nerds and hot chicks. Music. Me DJing a bit and playing games a bit. Fellow nerds in hot girl heaven. Booze flowing everywhere. My buddy Scorp calls me. Says his car is broke down but he wants to come to the party. Some of the girls follow me into my car. Music blasting. Pick up booze. Pick up Scorp. Scorp is incel as fuck. He's speechless. Girls are giggling having a good time teasing him. Hesintoit.jpg At a stop light one of the girls with huge tits flashes an old man who looked like he was gonna have a heart attack. Scorp in awe. Head back to the party. Some girls are playing around with the better looking nerd guys. LAN party goes crazy. Booze. Boobs. Quake 3. Starcraft. Loud trance music. Some of the neighbors come over. Biggest house party I ever had. Girls actually have a good time with nerds. One or two probably got some. Alternating between DJing and gaming is really fun. Party lasts until the morning. Fell asleep halfway. Wake up. There's a random slice of pizza on my video card for who knows what reason. Apartment looks like a tornado hit it. Girls tell me they had a way better time than another random club night. Nerd friends are in heaven and think I'm some sort of god. Somehow a party like this never happens again.
3
119
The Amazing Digital Circus.
2
19
Speaking of Ellison, I love that a weird schizophrenic cartoon by an Australian studio has hundreds of teenagers reading IHNMAIMS.
1
1
43
Teaching using the Montresori method where I slowly entomb the kids in my wine cellar brick by brick unless they pass the state tests
14
171
5
2,555
42,840
1999年,《雷神之锤3》发布。 画质炸裂,但奇怪的是,破电脑也能跑得很流畅。 几年后源代码开源,全世界程序员冲进去扒拉。 想看看id Software到底用了什么黑科技。 然后大家就发现了这么一段东西: ``` float Q_rsqrt(float number) { long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y = number; i = *(long*)&y; i = 0x5f3759df - (i >> 1); // what the fuck? y = *(float*)&i; y = y * (threehalfs - (x2 * y * y)); return y; } ``` 我当时看完这段代码,愣了好一会儿。 这函数干嘛的?算 1/√x,平方根的倒数。 你可能会问,这有啥难的,调个sqrt再除一下不就行了? 问题是,那个年代CPU算浮点开方慢得要死,一次要几十上百个时钟周期。 而3D游戏里算光照、算反射,每帧要归一化几万个向量,每次都要求这玩意儿。 按正常写法,直接卡成幻灯片。 然后就有人整出了上面这段代码。 核心就一行:i = 0x5f3759df - (i >> 1) 看到这你肯定懵逼——把浮点数的二进制当整数读出来,右移一位,再用一个莫名其妙的常数去减它,结果居然就是平方根倒数的近似值??? 这不是玄学,是数学。让我给你掰扯清楚。 首先你得知道浮点数在内存里长啥样。 一个32位float,内存里分三块:1位符号、8位指数、23位尾数。表示的值是: (1 + 尾数/2²³) × 2^(指数-127) 比如8.0,就是 1.0 × 2³,指数存130(就是3+127),尾数存0。 现在来个骚操作:把这个浮点数的二进制直接当整数读出来。 你会得到一个整数 I = 指数×2²³ + 尾数。 关键来了。 浮点数的真实值取个对数,大概是: log₂(value) ≈ I/2²³ - 127 换句话说,浮点数的"整数形式"和它的对数基本成正比。 这个性质太重要了。因为我们要算的是 y = x^(-0.5),取对数就是 log(y) = -0.5 × log(x)。 对数之间是线性关系!那我直接用整数运算不就能算对数运算了吗? 具体推一下。设 Ix 是 x 的整数表示,Iy 是 y 的整数表示: Iy/2²³ - 127 ≈ -0.5 × (Ix/2²³ - 127) 解出来: Iy ≈ 1.5 × 127 × 2²³ - 0.5 × Ix ≈ 0x5f400000 - (Ix >> 1) 诶,算出来是 0x5f400000,但代码里用的是 0x5f3759df,咋回事? 因为上面的推导有近似误差。0x5f3759df 是有人通过数值方法调出来的,能让最大误差最小。 后来有数学家专门写论文算过,理论最优值是 0x5f375a86,跟这个就差一丢丢。 到这里,我们就用一次整数减法和一次移位,搞出了一个粗糙的近似值。 但粗糙不够用啊,游戏还是会穿帮。
71
286
21
2,095
230,716
Replying to @longhorndave
That's why I'm flying instead. 🫠
5
Replying to @Nymdok
Hey, many ways to be rich.
1
62
How long have you been an employment lawyer? Because I know a couple and, oh boy, do they have stories.
1
110
📹 Michèle Mouton retrouve son Audi Sport Quattro S1 et la mythique montée de Pikes Peak dans une vidéo sublime 🥹🏔️ #WRC
17
618
70
4,121
231,461
Replying to @MorlockP
He never said that. The quote from Lord of the Rings is “The Shadow that bred them can only mock, it cannot make: not real things of its own. I don't think it gave life to the orcs, it only ruined them and twisted them.”
1
6
79
Replying to @robkroese
The Reluctant Saint is an old and slow but good movie about this guy. You should watch it.
1
40
...with the saggy tits?
1
40