#prog #abnormalprogramming #article
Building a url-shortener with Lambda — JUST Lambda
(и немного Python)
Работает без базы данных, если что
  Building a url-shortener with Lambda — JUST Lambda
(и немного Python)
Работает без базы данных, если что
  Блог*
#prog #abnormalprogramming #article  Building a url-shortener with Lambda — JUST Lambda (и немного Python)  Работает без базы данных, если что
И ещё пачка #prog #abnormalprogramming от этого же человека:
Чат, работающий на одном CSS на клиенте
Спеллчекер на тайпчекере Typescript (так что, видимо, #typescript?)
База данных на вкладках браузера
Чат, работающий на одном CSS на клиенте
Спеллчекер на тайпчекере Typescript (так что, видимо, #typescript?)
База данных на вкладках браузера
🤩2🔥1🤯1
  
  Технологический Болт Генона
Ждём, когда запустят DoomPDF в LinuxPDF Разработчик под ником ading2210 представил проект LinuxPDF — Linux в PDF в браузере. Проект открывается только в браузерах на базе Chromium, использующих движок PDFium. Код написан на C и опубликован на GitHub по лицензией…
Ах да, #abnormalprogramming
  #prog #rust #article #abnormalprogramming
Take a break: Rust match has fallthrough
One can (ab)use labelled breaks in Rust to support fallthrough-like behaviour in
⬇️
  
  Take a break: Rust match has fallthrough
One can (ab)use labelled breaks in Rust to support fallthrough-like behaviour in
match. Not at all pretty, not at all advisable, but it works, and sometimes that’s as much as we can hope for.switch(len & 3)
{
case 3: k1 ^= tail[2] << 16;
case 2: k1 ^= tail[1] << 8;
case 1: k1 ^= tail[0];
k1 *= c1; k1 = ROTL32(k1,15); k1 *= c2; h1 ^= k1;
};
⬇️
'outer: {
  'case1: {
    'case2: {
      'case3: {
        match len & 3 {
          3 => break 'case3,
          2 => break 'case2,
          1 => break 'case1,
          _ => break 'outer,
        }
      } // 'case3:
      k1 ^= (tail[2] as u32) << 16;
    } // 'case2:
    k1 ^= (tail[1] as u32) << 8;
  } // case1:
  k1 ^= tail[0] as u32;
  k1 *= c1; k1 = k1.rotate_left(15); k1 *= c2; h1 ^= k1;
}huonw.github.io
  
  Take a break: Rust match has fallthrough
  Match + labelled blocks & breaks = fallthrough. It works, but it's not very pretty!
🥴14🔥2🤯2👍1
  
  Разработка ждёт балета
Тут, оказывается, биг дил случился. Доказали, что BB(5) = 47,176,870. Практического смысла в Busy Beaver не очень много, прямо скажем, но всё равно интересно. - Тут можно почитать хорошую статью с деталями, историей и т.п. - Тут само объявление об успехе …
#prog #abnormalprogramming (а на самом деле #math)
How to Optimize your Rust Program for Slowness
Write a Short Program That Finishes After the Universe Dies
How to Optimize your Rust Program for Slowness
Write a Short Program That Finishes After the Universe Dies
Aside: Practical concerns about running a program beyond the end of the universe are outside the scope of this article.
👌3👍1😐1
  #prog #abnormalprogramming #retroit #ml
ZX Spectrum проходит тест Тьюринга: учим 8-битный процессор проходить CAPTCHA
(UPD: ссылка не работает, держи wayback machine)
(thanks @tech_b0lt_Genona)
ZX Spectrum проходит тест Тьюринга: учим 8-битный процессор проходить CAPTCHA
(UPD: ссылка не работает, держи wayback machine)
Представьте: вы открываете чердак и находите пыльный ZX Spectrum. «Музейный экспонат», — думаете вы. А что если я скажу, что эта коробка с 48 килобайтами памяти может с 95.5% точностью распознавать рукописные цифры и проходить те самые CAPTCHA-тесты «Я не робот» из 2010-х?
Более того: технически она могла это делать с момента выпуска в 1982 году. Мы просто не знали правильный алгоритм 43 года.
(thanks @tech_b0lt_Genona)
🔥14
  #prog #abnormalprogramming #db #article
Making Postgres 42,000x slower because I am unemployed
(thanks @nosingularity)
Making Postgres 42,000x slower because I am unemployed
<...> I decided someone needed to try to create a Postgres configuration optimized to process queries as slowly as possible. Why? I am not sure, <...>
I can’t make this too easy. This is a Postgres tuning challenge, not a throttle-your-CPU-to-one-megahertz-and-delete-indexes challenge, so all changes must be on parameters in postgresql.conf. Additionally, the database will still need to have the capability to process at least one transaction within a reasonable amount of time—it would be too simple just to grind Postgres to a halt.
(thanks @nosingularity)
🌚7
  #prog #abnormalprogramming
HTML, The Programming Language
Язык программирования (внезапно, стековый), программы на котором выглядят, как разметка HTML.
HTML, The Programming Language
Язык программирования (внезапно, стековый), программы на котором выглядят, как разметка HTML.
😐5👍4🤯2🍌1
  #prog #rust #rustlib #ml #abnormalprogramming
unwrap_or_ai
unwrap_or_ai
Tired of manually handling unwrap() results? Let AI do the heavy lifting!
🤩19🤡2
  #prog #rust #abnormalprogramming
fibonacci-numbers crate with self-recursive dependencies
fibonacci-numbers crate with self-recursive dependencies
I have created a crate called fibonacci-numbers. There are 187 different major versions of the crate, each exporting the Fibonacci number corresponding to that version.
<...>
Version 186 depends on version 184 and 185 and exports the largest Fibonacci number that fits in a u128:
pub const VALUE: u128 = fib184::VALUE + fib185::VALUE;
😁28🔥7🤡3🤯1
  #prog #abnormalprogramming
spellscript
output: the power is amplified: 49
spellscript
esotoric [sic!] programming language that's read like a spellbook
begin the grimoire.
summon the power with essence of 7.
conjure ritual named amplify with value to return value multiplied by value.
enchant power with essence 0 of through ritual amplify with power.
inscribe whispers of "the power is amplified: " bound with power.
close the grimoire.
output: the power is amplified: 49
❤11🤯3🤡3😁1