odyssjii's profile picture. Husband. Father of 3. Programmer. Engineering Physicist.

Omid Ghavami Zeitooni

@odyssjii

Husband. Father of 3. Programmer. Engineering Physicist.

Omid Ghavami Zeitooni reposted

From my appearance on 60 Minutes: Me: Research works. If you want to freeze society where it is, then cripple the research enterprise. Bill Whitaker of 60 Minutes: Is that whole idea being lost in the harsh rhetoric by the administration? Me: The attack on universities is a…


The problem with "modern" programming languages is that they encourage you to write things like "str.replace(..).replace(...).replace(...)" as if they are going to compile it down to an efficient single-pass thing, but then proceed to interpret it verbatim like a complete donkey.


What neither M?GA-types or DEI folks seem to get is that if you take the creme de la creme it will contain a wide distribution of ethnicities, nationalities, etc. You didn’t get those people by being inclusive, they are the best, nor can you expect the best to be homogenous group


It is funny, because no-one in tech seems to have studied control engineering. First we had Xerox, Kodak, etc. This time around everyone is overcorrecting in the other direction.

🚨 M365 Copilot Prompt Injection Vulnerability Allows Attackers to Exfiltrate Sensitive Data Read more: cybersecuritynews.com/copilot-prompt… A sophisticated vulnerability in Microsoft 365 Copilot (M365 Copilot) that allows attackers to steal sensitive tenant data, including recent emails,…

The_Cyber_News's tweet image. 🚨 M365 Copilot Prompt Injection Vulnerability Allows Attackers to Exfiltrate Sensitive Data 

Read more: cybersecuritynews.com/copilot-prompt…

A sophisticated vulnerability in Microsoft 365 Copilot (M365 Copilot) that allows attackers to steal sensitive tenant data, including recent emails,…


🫡🇸🇪🇺🇦

Now boarding

SwedishPM's tweet image. Now boarding


My natural instinct would probably be to do two passes to pre-allocate all the memory in one go. There was discussion about this FP style stuff before. Would the compilers of any of these languages ever do something like this? I would be surprised.

odyssjii's tweet image. My natural instinct would probably be to do two passes to pre-allocate all the memory in one go.

There was discussion about this FP style stuff before. Would the compilers of any of these languages ever do something like this? I would be surprised.
odyssjii's tweet image. My natural instinct would probably be to do two passes to pre-allocate all the memory in one go.

There was discussion about this FP style stuff before. Would the compilers of any of these languages ever do something like this? I would be surprised.

I haven't shared beautiful C++ code for a while. Here's some FP in C++ for a treat.

ChShersh's tweet image. I haven't shared beautiful C++ code for a while.

Here's some FP in C++ for a treat.


This explains a lot.

I just solved the strangest tech problem I've ever come across. My wifi kept dropping packets, confirmed by ping. It would look something like the first image (packets dropping, then it comes back to life). After a while the connection would just stop working completely and drop…

hakluke's tweet image. I just solved the strangest tech problem I've ever come across.

My wifi kept dropping packets, confirmed by ping. It would look something like the first image (packets dropping, then it comes back to life). After a while the connection would just stop working completely and drop…


I have these macros (backed by functions) I use to conveniently format values into small string buffers on the stack. Like formatting byte counts or durations in human readable format for logging purposes. Some will frown upon such macros, but I love it. Simple one-liner, easy.

odyssjii's tweet image. I have these macros (backed by functions) I use to conveniently format values into small string buffers on the stack. Like formatting byte counts or durations in human readable format for logging purposes.
Some will frown upon such macros, but I love it. Simple one-liner, easy.

The single defining feature is ctor/dtor which fundamentally makes them completely different and incompatible languages. Most of the other features are up to taste. In C there is just memory and all structures are just transient interpretations. Not true in C++ with ctor/dtor.

Most C++ features create more problems than they solve. It's a fact. But some of them are useful and I'd love to see them in C. The only reason I don't use C++ is because it invites the "C++ Developers" to my code. The worst kind. You mfs know who you are. Stay away from my code.



Amen.

It is nonsense to suggest you can’t write any app, of any complexity, in C. I do find a light level of C++ beneficial for many larger projects, but it can also go tragically wrong. Sometimes, specific language features can be transformative valuable, but not nearly as often as…



Omid Ghavami Zeitooni reposted

The Dungeon Experience is being published by @devolverdigital !!


Static preallocation whenever possible 100% the way to go. In addition to performance benefits also simplifies a lot. Most of my structs look something like this whenever I can:

odyssjii's tweet image. Static preallocation whenever possible 100% the way to go. In addition to performance benefits also simplifies a lot.
Most of my structs look something like this whenever I can:

Just spent just over a week reading and rewriting some bad C++ code. It’s still scalar C++ right now, no SIMD parallelism or multithreading yet, but it’s already got a roughly ~1500x speed improvement on my machine. I inlined all the code, eliminated all the branches, removed…



Omid Ghavami Zeitooni reposted

Noooooo not my super secret antichrist lecture noooo

allgarbled's tweet image. Noooooo not my super secret antichrist lecture noooo

It will be really funny when we get AGI and it is not based on ridiculously parallel matrix math at all.

I want to keep it kind and amicable but basically, this is completely terrible advice and makes 0 sense Certainly do not go into debt to acquire GPUs unless it’s {{{debt}}} in the sense that it really isn’t Get cloud compute for free by working on interesting things, leverage…



Omid Ghavami Zeitooni reposted

post your night art🌃

pixelianska's tweet image. post your night art🌃

Post your Night Art ✨ This is an old one of mine

PixelArtJourney's tweet image. Post your Night Art ✨
This is an old one of mine


Hottake:Rust is idiomatic C++ with the implicit rules statically enforced and then a package manager slapped on top. Good version of an inherently flawed idea. Little overlap with what C is good at. Rust is more in space of ref-counted compiled languages. Not systems programming.


Loading...

Something went wrong.


Something went wrong.