Ralph Caraveo

1.1K posts

Ralph Caraveo banner
Ralph Caraveo

Ralph Caraveo

@deckarep

Software Engineer - likes Go, Rust, C#, C, Javascript, Python and love Zig! Tic-tacs are my fav mints!

Los Angeles, CA 加入时间 Haziran 2008
565 关注347 粉丝
Ralph Caraveo
Ralph Caraveo@deckarep·
@AnthropicAI your app on iOS is extremely slow when Claude is generating a response and the user is also trying to type into the input box. Seems like the UI thread is getting tied up too much. Someone on your iOS team should optimize the code so as not to tie up the UI thread.
English
0
0
0
17
Dave W Plummer
Dave W Plummer@davepl1968·
What programming languages have you learned along the way that are now obsolete? For me, it's Ada, Prolog, VBScript... and maybe REXX if you count that!
English
705
19
879
146.4K
LaurieWired
LaurieWired@lauriewired·
I really miss .swf (shockwave flash) as a format. Literally a chain of bezier paths. Scale to any resolution. Oh, and it loads progressively with its own virtual machine (ActionScript Bytecode). No modern filetype comes close. Vector video was a special era.
LaurieWired tweet media
English
318
319
6.6K
315.8K
Ralph Caraveo
Ralph Caraveo@deckarep·
@davepl1968 I’m pretty sure if Carmack wants to know how something works he’ll tear it apart and understand it better than anyone.
English
0
0
0
26
Dave W Plummer
Dave W Plummer@davepl1968·
True enough - but that doesn't obviate the value in knowing how they work. I've never written qsort but I know how it works, when it's appropriate, etc... I once faced an interesting situation - an interview question about calculating the difference between two dates. I knew difftime(), so I called it. Then he got frustrated, and said "OK, but what if difftime didn't exist"? As someone with autism, that just did not compute. It DOES exist, damnit.
John Carmack@ID_AA_Carmack

I thought I had good reason to code up a vectorized binary search, which was kind of fun to do, but then I checked, and the standard torch.searchsorted() works well enough. For all the emphasis given in computer science curriculums and job interviews, actually implementing classic algorithms is a rare event. If I had to, there was ample opportunity to specialize with fixed power of two sizes, but using existing functions is usually the right call. Adding a new dependency versus your own implementation can be a harder call.

English
15
2
127
15.6K
Ralph Caraveo
Ralph Caraveo@deckarep·
@davepl1968 Or how about write an OS for me that doesn’t have ads built in or that doesn’t blue screen.
English
0
0
0
17
Dave W Plummer
Dave W Plummer@davepl1968·
It'll be transformational; I believe it already is. The best programmers will be 10x as productive, and the worst will be doing other stuff. When your prompt can be "Write a replacement Linux kernel that compiles and builds" and it does it well... then I don't know what we all do at that point :-)
kababíi@the_croms

@davepl1968 Dave, what do you foresee AI roles in software development will be as compared to what we have today?

English
39
7
209
27.8K
Ralph Caraveo
Ralph Caraveo@deckarep·
@goinggodotnet Big lessons will be learned when a generation of coders deploys slightly incorrect AI code to production that they didn’t fully take the time to understand.
English
2
1
4
640
William (Bill) Kennedy
William (Bill) Kennedy@goinggodotnet·
You can use all the AI tooling you want, but if it don't know how to break a problem down into discrete units of functionality that can be assigned, coded, and tested, I'm not sure it matters. In fact, it might make things worse.
English
2
4
35
1.7K
Ralph Caraveo
Ralph Caraveo@deckarep·
Here’s a tip: another way to detect memory leaks on MacOS in #ziglang #zig is to use the C-based allocator with the “leaks” command line tool. This is a nice alternative to Valgrind.
English
0
1
3
164
Ralph Caraveo
Ralph Caraveo@deckarep·
@raysan5 Wel, well deserved. Raylib is awesome and your C code is just so intuitive so it all makes so much sense.
English
0
0
1
180
Ray
Ray@raysan5·
Today I woke up with a BIG surprise! ❤️ Today #raylib is the most popular open source Game Engine! 🤯 A simple C library. In year 2024. I can't wait for 2025! 🚀 Source: ossinsight.io/collections/ga…
Ray tweet media
English
41
95
1.5K
51.3K
Ralph Caraveo
Ralph Caraveo@deckarep·
@EliasDaler And with this knowledge you can use bit twiddling to toggle uppercase and lowercase letters.
English
0
0
0
125
Elias Daler
Elias Daler@EliasDaler·
Today I learned that ASCII is pretty clever. If your char’s upper bits are "01" - it’s a letter. If the next bit is 0, then it’s upper case, otherwise it’s lowercase. The remaining 5 bits indicate the letter position in the English alphabet. Want to get a "C"? - 01 0 00011.
Elias Daler tweet media
English
7
23
216
9.5K
Ralph Caraveo
Ralph Caraveo@deckarep·
@LubaRaphael Or having to give a presentation and Windows decides to do an update. Or it randomly bluescreens, or crashes or lets malware in. Oh Windows, thanks for the memories.
English
0
0
0
102
Raphael Luba
Raphael Luba@LubaRaphael·
I was compiling LLVM on Windows (which takes frickin’ forever), came back an hour later, and Windows just decided to reboot for updates in the middle of it? 🤬 Whoever decided that this was acceptable behavior for an OS should be fired with prejudice!
English
23
5
178
11.1K
Ralph Caraveo
Ralph Caraveo@deckarep·
@AbheekGulati @davepl1968 I like readable and maintainable code but elegance isn’t the only important thing. Code first and foremost needs to be useful and get something done. And sometimes it must be done in a performant manner. Also without the Numpy lib written in C what would you do?
English
0
0
1
216
Abheek Gulati
Abheek Gulati@AbheekGulati·
@davepl1968 The question was about elegance, and python is far ahead of all else here. And when it comes to converting ideas into readable code 🍻
English
8
0
38
8.9K
Ralph Caraveo
Ralph Caraveo@deckarep·
@range_marten @Mattias_G I love how creative people got when limited to do cool stuff like this. Pico8 has some of these abilities would love to see it in other fantasy consoles.
English
0
0
1
50
Mårten Rånge
Mårten Rånge@range_marten·
@Mattias_G I like the limitations put into the fantasy console but with ways to work around it like we did in the old days. For example limiting the colors to 16 colors but then I can switch the palette. Perhaps there are even more interesting ones
English
1
0
3
183
Mattias Gustavsson 💖
Mattias Gustavsson 💖@Mattias_G·
I’m thinking of making a simple ”fantasy console”, just for fun. I’ll make it in C, and share the code as usual, and should run on win/mac/linux and wasm/browser. What kind of specs and features do you think it should have? What would make it fun/enjoyable?
English
10
5
86
8.8K
Ralph Caraveo
Ralph Caraveo@deckarep·
@Mattias_G I would love to see something that is similar to your DosLike project but allows you to code in some kind of ASM language and a simple scripting language. It would also be very cool to have coroutines.
English
0
0
1
143