Readit News logoReadit News
convivialdingo commented on xAI's Grok 3 comes to Microsoft Azure   techcrunch.com/2025/05/19... · Posted by u/mfiguiere
scuol · 3 months ago
It still seems to have the problems most other LLMs suffer with except Gemini: it loses context so quickly.

I asked it about a paper I was looking at (SLOG [0]) and it basically lost the context of what "slog" referred to after 3 prompts.

1. I asked for an example transaction illustrating the key advantages of the SLOG approach. It responded with some general DB transaction stuff.

2. I then said "no use slog like we were talking about" and then it gave me a golang example using the log/slog package

Even without the weird political things around Grok, it just isn't that good.

[0] https://www.vldb.org/pvldb/vol12/p1747-ren.pdf

convivialdingo · 3 months ago
When I use the "think" mode it retains context for longer. I tested with 5k lines of c compiler code and I could 6 prompts in before it started forgetting or generalizing

I'll say that grok is really excellent at helping my understand the codebase, but some miss-named functions or variables will trip it up..

convivialdingo commented on Lock-Free Rust: How to Build a Rollercoaster While It's on Fire   yeet.cx/blog/lock-free-ru... · Posted by u/r3tr0
j_seigh · 3 months ago
I did a lock-free ABA-free bounded queue in c++ kind of an exercise. I work mostly with deferred reclamation schemes (e.g. refcounting, quiescent state based reclamation, and epoch based reclamation). A queue requiring deferred reclamation, like the Michael-Scott lock-free queue is going to perform terribly so you go with an array based ring buffer. It uses a double wide CAS to do the insert for the enqueue and a regular CAS to update the tail. Dequeue is just a regular CAS to update the head. That runs about 57 nsecs on my 10th gen i5 for single producer and consumer.

A lock-free queue by itself isn't very useful. You need a polling strategy that doesn't involve a busy loop. If you use mutexes and condvars, you've basically turned it into a lock based queue. Eventcounts work much better.

If I run more threads than CPUs and enough work so I get time slice ends, I get about 1160 nsecs avg enq/deq for mutex version, and about 146 nsecs for eventcount version.

Timings will vary based on how man threads you use and cpu affinity that takes your hw thread/core/cache layout into consideration. I have gen 13 i5 that runs this slower than my gen 10 i5 because of the former's efficiency cores even though it is supposedly faster.

And yes, a queue is a poster child for cache contention problems, une enfant terrible. I tried a back off strategy at one point but it didn't help any.

convivialdingo · 3 months ago
I tried replacing a DMA queue lock with lock-free CAS and it wasn't faster than a mutex or a standard rwlock.

I rewrote the entire queue with lock-free CAS to manage insertions/removals on the list and we finally got some better numbers. But not always! We found it worked best either as a single thread, or during massive contention. With a normal load it wasn't really much better.

convivialdingo commented on New material gives copper superalloy-like strength   news.lehigh.edu/new-mater... · Posted by u/gnabgib
convivialdingo · 4 months ago
Wonder if this could work for li-ion batteries as a current collector? You could potentially lower charging times and handle higher power applications and higher temperature ranges.
convivialdingo commented on Gemini 2.5 Flash   developers.googleblog.com... · Posted by u/meetpateltech
convivialdingo · 4 months ago
Dang - Google finally made a quality model that doesn’t make me want to throw my computer out a window. It’s honest, neutral and clearly not trained by the ideologically rabid anti-bias but actually super biased regime.

Did I miss a revolt or something in googley land? A Google model saying “free speech is valuable and diverse opinions are good” is frankly bizarre to see.

convivialdingo · 4 months ago
Downvote me all you want - the fact remains that previous Google models were so riddled with guardrails and political correctness that it was practically impossible to use for anything besides code and clean business data. Random text and opinion would trigger a filter and shut down output.

Even this model criticizes the failures of the previous models.

convivialdingo commented on Gemini 2.5 Flash   developers.googleblog.com... · Posted by u/meetpateltech
convivialdingo · 4 months ago
Dang - Google finally made a quality model that doesn’t make me want to throw my computer out a window. It’s honest, neutral and clearly not trained by the ideologically rabid anti-bias but actually super biased regime.

Did I miss a revolt or something in googley land? A Google model saying “free speech is valuable and diverse opinions are good” is frankly bizarre to see.

convivialdingo commented on Compilers: Incrementally and Extensibly (2024)   okmij.org/ftp/tagless-fin... · Posted by u/todsacerdoti
fuhsnn · 5 months ago
>I’ve been modifying the the MIR c2mir JIT compiler to extend the c11 compiler to support simple classes, boxed strings(immutable, nun-nullable) with AOT support

Is the project public? Really interested in the AOT support, I've always wanted to see its generated code but didn't find an easy way to dump it.

convivialdingo · 5 months ago
Once things are a little more stable, I will put it up!

Right now you can just break before the (fun_call)() delegate and disassemble the fun_call in gdb.

The basic trick is to add reloc support to the x86 translate code, mark external calls and replace with 0x0 placeholders, and copy out the machine_code and data segment output to an object file.

I can do basic main functions with simple prints calls but not much more. It’s a hack for now but I’ll refactor it until it’s solid.

convivialdingo commented on Compilers: Incrementally and Extensibly (2024)   okmij.org/ftp/tagless-fin... · Posted by u/todsacerdoti
convivialdingo · 5 months ago
I’ve been modifying the the MIR c2mir JIT compiler to extend the c11 compiler to support simple classes, boxed strings(immutable, nun-nullable) with AOT support.

Imagine if Java and C had a love child, basically.

MIR is a fantastic piece of engineering.

Honestly the hardest part is representing types. Having played around with other compilers it seems to be a typical problem.

I’m stuck in the minutiae of representing highly structured complexity and defining behavior in c. I can understand why many languages have an intermediate compiler - it’s too much work and it will probably change over time.

convivialdingo commented on All Tuberculosis programs funded by the U.S. Gov were officially terminated   bsky.app/profile/johngree... · Posted by u/chinathrow
convivialdingo · 6 months ago
Here's what I found researching this.

US domestic TB funding by CDC, through state and local programs, have not been cut.

The Global Fund to Fight AIDS, Tuberculosis and Malaria is still funded by the US congressional appropriations through State department ($6B for 2023-2025) but future funding is in review.

USAID funding for the Global Drug Facility was cut. GDF is a treatment coordinator which helps deliver drugs and treatments to areas in need. GDF is managed by the Stop TB Partnership (a UN OPS program) and has largely been a success so it's not going away as it's funded by multiple nations and private organizations.

State Department could include GDF in the existing emergency humanitarian waiver.

convivialdingo commented on USDA fired officials working on bird flu, now trying to rehire them   nbcnews.com/politics/doge... · Posted by u/pmags
koolba · 6 months ago
> You know a good chunk of Republicans in Congress knows these many of these cuts are a mix of illegal, unconstitutional or dangerous to national security

When the dust settles on the buckshot of related cases and they make their way to the SCOTUS, it will be confirmed that the executive branch has unilateral power to fire people working in the executive branch. If it’s constitutional, it’s de facto legal. And I think it will be at least 7-2 as well.

convivialdingo · 6 months ago
You can thank Biden, actually.

On the merits, this Court previously held that no provision of § 8468 prevented the plaintiffs' removal. See Mem. Op. at 7. First, the Court noted that “the power of removal from office is incident to the power of appointment” “absent a specific provision to the contrary.” Id. at 6 (quoting Carlucci v. Doe, 488 U.S. 93, 95 (1988) (citation omitted)). Second, the Court held that the plain text of § 8468(b), which provides only that Board members “serve for three years each” on staggered terms, does not meet that standard. Id. at 7. Third, the Court read Parsons v. United States, 167 U.S. 324 (1897), and Myers v. United States, 272 U.S. 52 (1926), to hold that term-of-office provisions, standing alone, do not confer removal protection.

https://casetext.com/case/spicer-v-biden-1

convivialdingo commented on Air traffic failure caused by two locations 3600nm apart sharing 3-letter code   flightglobal.com/safety/u... · Posted by u/basilesimon
convivialdingo · 9 months ago
I guarantee that piece of code has a comment like

  /* This should never happen */
  if (waypoints.matchcount > 2) {

u/convivialdingo

KarmaCake day591May 16, 2014
About
$ openssl aes-256-cbc -d -a -k convivialdingo U2FsdGVkX1/RqrjOPvbJ7AJ5er1IZwLqgTyW49oBRrhozxRbI6rMoH3lkyO27zy7 7QswjRxCFcs4lti81teb99LgS1UK3UVUoJOoTJ+YMcTi07GJLvZGSNfGtTzEYNK5 UVMICrU+h2uDFaHbCq62SVV5iAusqnD/vFDtzWPEJDnB1+77NTL275cw9OxTDJ9b HTuSeMFPEi6k8vC7i39b5KEpIdhxLSLzpPqENY2O30I=
View Original