What's the fastest language in the world? C++ right now!
I'm stoked to have my C++ solution at the top of the leaderboards for the GitHub Primes project!
If you're not familiar with it, it's the same sieve algorithm implemented in 100 different computer languages, from Ada to Zig, with weird ones like PowerShell and Minecraft included!
Certain rules have to be followed, like you only get one bit per sieve entry, you have to allocate the sieve every pass, and so on. It keeps things fair across a wide range of languages!
With a recent check-in, I managed to eke out a slight win over the assembly language version! But they're close enough to be within variance, so I need to find some more headroom...
Which languages are the fastest? Find out!
https://t.co/oul9spRMF9
C++ just got a new operator
It looks like this: ^^
The committee calls it "the cat-ears operator." It's the gateway to the biggest language change since templates 🧵👇
A seagull can live 49 years. It can recognize your face. And if you stare at it, it backs off. The ones in Türkiye that learned to meow for cat food are part of a much weirder story about how smart these birds are.
In 2020, scientists at the University of Bristol stuck GPS trackers on 12 city gulls and followed them around for a year. The birds had learned the city’s eating schedule, hour by hour. They showed up at schools right before lunch, then again at curbsides when the garbage trucks came through. They were running a schedule. Our schedule.
Sussex researchers ran a different test in 2023. They placed two chip bags in front of a single seagull, each one a different color. A person walked up, picked one up, looked at it for a moment, then put it back. The gull went straight for the color the human had touched. Copying another animal’s choice like that is rare. Outside of dogs, apes, and crows, very few wild animals do this kind of copying.
A separate study from the University of Exeter, published in the journal Biology Letters, ran an even simpler test. Researchers dropped a bag of chips in front of 74 wild gulls and watched. Then a person stared each bird down. Only 27 of them even tried to grab the bag. The rest walked off.
Most birds physically cannot change the sounds they make. Only songbirds, parrots, and hummingbirds can really pull it off. But a 2021 Royal Society review identified one type of gull, the black-headed gull, that can. So when the Türkiye birds nudge their squawks toward something cat-like, they are showing a skill almost no other bird group on Earth has.
The machine in the clip is part of Istanbul’s Mama Otomati program, run by a Turkish company called Pugedon since 2014. Drop a plastic bottle in, get pet food out. None were built with seagulls in mind. The gulls worked it out.
2Unreal5Underground lançou um novo vídeo de gameplay de seu remake de Need for Speed: Underground 2, que será feito na Unreal Engine 5.
De acordo com o canal 2Unreal5Underground, a IA ainda precisa de alguns ajustes, pois continua apresentando comportamentos estranhos. Carros podem surgir ao redor do jogador, assim como oponentes do mundo aberto com os quais você pode competir no modo de corrida livre normal e no modo carreira.
O que achou do visual?
Salvador Dalí adorava jantar bem.
Grupos grandes.
Mesas longas.
Vinhos caros.
Os melhores restaurantes de Paris e Nova York.
E sempre insistia em pagar a conta.
Ninguém desconfiava.
Na hora de fechar, ele preenchia o cheque com o valor total, com calma e elegância.
Assinava.
E então, antes de entregar ao garçom, virava o papel e rabiscava um desenho no verso.
Um esboço rápido.
Elefantes.
Cavalos.
Figuras surreais.
Assinava embaixo.
E entregava o cheque ao estabelecimento.
Dalí sabia exatamente o que aconteceria a seguir.
O dono do restaurante não descontaria o cheque.
Colocaria numa moldura.
Exibiria na parede do melhor ponto do salão.
Um Dalí original, emoldurado, no restaurante.
Valia infinitamente mais do que qualquer refeição.
Os cheques com seus desenhos foram todos guardados.
E hoje valem uma fortuna.
Há relatos de que a prática aconteceu diversas vezes ao longo dos anos, em Paris e em Nova York.
Em uma das noites documentadas, no Café de la Rotonde em Paris, Dalí pediu ao garçom uma folha de papel, esboçou um elefante de tromba erguida, assinou embaixo e entregou com desenvoltura.
A conta estava paga.
E o estabelecimento havia lucrado com o negócio.
O que Dalí fez não era só excentricidade.
Era uma compreensão precisa de que o valor da sua presença e da sua assinatura já haviam superado o preço de qualquer cardápio.
Ele não precisava de dinheiro para pagar.
Precisava apenas de um pedaço de papel e de saber o quanto valia.
Fontes: ISTOÉ — ArteRef — Revista Bula — Top Melhores