How I program with LLMs

crawshaw.io

2025-01-06 This document is a summary of my personal experiences using generative models while programming over the past year. It has not been a passive process. I have intentionally sought ways to use LLMs while programming to learn about them. … Read more

Program Synthesis and Large Language Models

cacm.acm.org

Much has been made of the abilities of the new developments in machine intelligence and in particular of what chatbots such as ChatGPT that are based on large language models (LLMs) are capable of. While these new pieces of software … Read more

How I Program in 2024

akkartik.name

Jul 31, 2024 How I program in 2024 I talk a lot here about using computers freely, how to select programs to use, how to decide if a program is trustworthy infrastructure one can safely depend on in the long … Read more

Make Your Program Slower with Threads

brooker.co.za
make-your-program-slower-with-threads

How much do context switches matter? Years ago, while taking a numerical methods course, I wrote some code to calculate the expected number of shared birthdays in a group. The code is very simple: each attempt constructs a vector of … Read more

F-35 Program Achieves Full Rate Production

defense.gov
f-35-program-achieves-full-rate-production

Earlier today, the Milestone Decision Authority, Under Secretary of Defense for Acquisition and Sustainment, Dr. William A. LaPlante, approved the Milestone C / Full Rate Production (MSC/FRP) of the F-35 Lightning II aircraft with the signing of an Acquisition Decision … Read more

The program is the database is the interface

scattered-thoughts.net

I do my accounts each year with a simple script. Something like this: (ns accounts (:require [clojure.string :as str] [clojure.pprint :as pp])) ;; converted from statement.csv (def txs [{:date #inst “2022-05-13T11:01:56.532-00:00” :amount -3.30 :text “Card transaction of 3.30 CAD issued … Read more

Why I Program in Erlang

evanmiller.org

By Evan Miller October 20, 2012 Translations: Urdu   Erlang is a twenty-five-year-old programming language that has yet to win a popularity contest, and almost certainly will never win any medals for speed, let alone any tiaras for syntactic beauty. … Read more

A Ruby program that generates itself through a 128-language quine loop

github.com
a-ruby-program-that-generates-itself-through-a-128-language-quine-loop

eval$s=%q(eval(%w(B=92.chr;g=32.chr;puts(eval(%q(N=10.chr;n=0;e=->s{Q[Q[s,B],?”].K(N,B+?n)};E=->s{‘(“‘+e[s]+’”)’};d=->s,t=?”{s.K(t){t+t}};def~f(s,n)s.K(/.{1,#{n*255}}/m){yield$S=E[$s=$&]}end;Q=->s,t=?${s.K(t){B+$&}};R=”;return~0;”;V=->s,a,z{s.K(/( #{B*4})+/){a+”#{$&.size/2}”+z}};C=%w(System.Console~Write);$C=C*?.;$D=”program~QR”;$G=”~contents~of”+$F=”~the~mix!g~bowl”;$L=”public~static”;$W=”s.WriteByte”;rp=->s,r{v=””;[r.!ject(s){|s,j|o={};m=n=0;s.size.times{|i|o[f=s[i,2]]||=0;c=o[f]+=1;m (m=c;n=f)};v=n+v;s.K(n,(j%256).chr)},v]};%(fn~mX{Z`x21(“{}”,#{E[“object~QR~extends~App{#{f(%((display~”#{e[%(Zf(“1d;s/.//;s/1/~the~sum~of~a~son~and0/g;s/0/~twice/g;s/2/`x59ou~are~as~bad~as/g;s/3/~a~son`x21Speak~your~m!d`x21/g^n#The~Relay~of~Qu!e.^ n#Ajax,~a~man.^n#Ford,~a~man.^n#Act~i:~Qu!e.^n#Scene~i:~Relay.^n#[Enter~Ajax~and~Ford]^n#Ajax:^n#”);function[]=f(s);for~i=1:2:length(s),Zf(“2%s3”,part(dec2b!(hex2dec(part(s,i:i+1))),$:-1:2)),end;endfunction`n#{s,v=rp[“Transcript~show:~’#{d[“Z”+E[% (fun~p~n=Z(Int.toSJ~n`x5e”~”);fun~mX=(p~0;p~0;p~130;List.tabulate(127,p);SJ.map(fn~c=>(p(3+ord~c);Z”-1~0~”;c))#{E[~~~~~~%(object”Application”{state”ma!”{foreach(s~![#{f(%(puts~”#{Q[e[%(echo~’a::=`x7e#{Q[Q[“let~s=#{E[%(void~p(!t[]c){foreach(!t~v~!~ c)stdout.Zf(“%c%c”,v/256,v%256);}void~mX{!t[]a;p({19796,26724,0,6,0,1,480,19796,29291,#{s=%(module~QR;!itial~beg!~#{f(“let~s=#{E[%(Module~QR:Sub~MX:Dim~c,n,s~As~Object=#{C[0]}.OpenStandardOutput(),t()As~Short={26,34,85,127,144,153,196}:For~Each~c~ !”BasmCBBBCRE`x60FD`x21BE@ABRCABRCABRCA`x4a`x21CE@~B-BB~CACk:CvACqRC~COBMADRCACRCADRCABRCABRC~BACj:B-BBOBMADRCADRCADRCA FRCMM}CBABM`x7e#{40.chr}BBBCBBB,BBBDBBB0BBBDBBB4BBB=BBB?BBB;BBB~…^t..^n..(module(import:wasi_snapshot_preview1::fd_H:(func(param~i32~i32~i32~i32)(result~i32)))(memory(export:memory:)(data~:^08^00^00^00$:))(func(export:_start:)i32.const~1~i32.con st~0~i32.const~1~i32.const~0~call~0~drop))”:c=Asc(c):If~c=36:For~c=0To~11:#$W(If(c~Mod~3,Asc(#{s=” sl:output~method=’text’/> “#{d[%(trans~B(Buffer)`ntrans~O(n){`nB:add(Byte(+~1 28~n)) }`nt rans~f(v ~n){`nO(+(/~n~64)107)`nO(n:mod~64)`nO~v}`ntrans~D(n){if( er”#{e[%W[STRINGz:=~226+~153,a:=z+~166,b:=a+”2″+z +~1 6 0,c:=b+”8″+z+~165,t:=”#{d[%(class~QR{#$L~void~ma!(SJ[]a){a=#{E[“H(‘#{Q[e[“implement~ ma!0()=Z”+E[“BEGIN{Z#{E[%(echo~’#{%(f(s){System.out.Z(s);}s=”38 9**6+44*6+00p45*,”;for(c:#{E[(s=”#!clude`n!t~mX{std::cout C($”{i}~g~caffe!e~{i}^n”);#$C(“^nMethod.^n”); foreach(char~c~!#{E[%((doseq[s(lazy-cat[“IDENTIFICATION~DIVI SION.””PROGRAM-ID.~QR.””PROCEDURE~DIVISION.”‘DISPL A`x59](map~#(str”~~~~^””(.replace~%1″^”””^”^ “”)”^””)(re-seq~#”.{1,45}””#{e[“(f=(n)->Array(n+1 ).jo!~’Y’);console.log(‘%s’,#{V[E[%((H-l!e”#{e [“import~std.stdio;void~mX{H(`x60#{%(method ~MX{Z(@”#{d[“[”]p[#{“IO.puts”+E[%((pr!c~” #{e[“`nma!(_)->`nio:fH#{d[E[‘Zfn(“””‘+d[?”+ “%option~noyywrap`n%%`n%%`n!t~mX{puts#{E[ “echo~’#{Q[Q[%(~:~A~.”#{g*9}”~;~:~B~A~.”~ WRITE(*,*)’”~A~;~:~C~B~T`x59PE~.”~’”~CR~ ;~:~D~S”~#$D”~C~S^”~Z~^”(&”~C~S^”~#{e[% (Z”# {e[“s:=OutputTextUser();WriteAll(s ,#{E[%(Zf”#{e[ d[f(“.template~1`n#{d[‘set~Z”-“;Z’+E[ %(package~ma!;import”fmt”;func~mX{fmt. Pr!t# … Read more

Program Synthesis is Possible (2018)

cs.cornell.edu

Program synthesis is not only a hip session title at programming languages conferences. It’s also a broadly applicable technique that people from many walks of computer-science life can use. But it can seem like magic: automatically generating programs from specifications … Read more