From ca55ddd1da4289580543d8f40c35c7bd42090b98 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Fri, 15 Mar 2024 16:53:29 -0400 Subject: [PATCH] Update built js files. Update index.html size stats. --- index.html | 8 ++++---- js/miniMAL-core.js | 2 +- js/miniMAL-node.js | 2 +- js/web/miniMAL-core.js | 2 +- js/web/miniMAL-js1k.js | 2 +- js/web/miniMAL-min.js | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 4cec4db..86d3d11 100644 --- a/index.html +++ b/index.html @@ -32,10 +32,10 @@

A Delightfully Diminutive Lisp

- miniMAL:  min ( 906 bytes), - orig (3943 bytes, 118 lines)
- Core Lib: min (1081 bytes), - orig (4156 bytes, 122 lines) + miniMAL:  min ( 824 bytes), + orig (4053 bytes, 119 lines)
+ Core Lib: min (1086 bytes), + orig (4161 bytes, 120 lines)
diff --git a/js/miniMAL-core.js b/js/miniMAL-core.js index a935912..df08029 100644 --- a/js/miniMAL-core.js +++ b/js/miniMAL-core.js @@ -1 +1 @@ -_='modu.exports=["doWnewza|&4Tdel#4dete+T(i@doW.|)so^logaYD{(*@.|JSON^s8y map#^mapqfnWxqa U{Va%>=#L<6{>#L>=|TL=6],!1{<=#L>6{classOf@.5(ototype%toS8%call not@9/ {DD,Ktrue!0,Kfalse!1,Ks8?zaL=9/D],!1}=^S8-or%nameU#|cqtWl$Wmapzxq|cW(* Ls8? xW(* U,"a%.|l$^joinb"(-: Y!0{:Y!1{(Q0(ilQ1V?@.|^is #hasOwn+bget#L|T-|TYD{set#|cqdo|T|c keys@.5keys vals@.5values )s#W`/[}HqV9bHWVqH%`9qV h|getqcou@.-ngth"fir$zaL>WGaY0h9/0],D{la$@h9W-WGaY1zaLV?9q=/0}Ga%=9/D3#|&|e3bWW>WGeY0get|e/0GaU{re$@39/1{azf|&|f^afWHW3/0,-1la$U{aB!0ZCa%re2%UorBDZ7C7q7or%re2U],D];},["|/zWfnWq"^WZ}W=/1}Gxs%fir2qV^tqV^],W"}Vli$U"TaQnq(iW Y!LqWK"aH)catGcou|DnullCqfir2%V^qBW~z& sL sY@zaq:$rq9|a8tring7or_FIXME6|TY 5|Object^4|Refct^3slice2$ s/",+Property)con(pr%U}$st#zTdef|__aY"W.-)tains?`|q.]]nt]{pply(-V*?@=/empty?)$ructz&9leif |x YK !1,!0ArrayqHW`Wnd|b]}9^"{';for(i of' #$%()+/23456789:@BCDGHKLQTUVWYZ^qz{|}')with(_.split(i))_=join(pop());eval(_) +for(_='fir+get/map@ndQbject^",qq")`)()O^H,["G"],L"GKKfnKZL["YZaY%K($s%.H$#)bDaDCZC)cYBconWWcatVYVK`KUArrayT!1,!0})x|le{empty?z)a:Z&:Y9st8pr7li867-6*5pply4L"3def)2]]]G2"a"LntclassOfototypeK.-__aQ?%=q]coains?.)Ref{ct$Property38|ssliceZCY:DL}or_FIXME"]]G $7 ( tring ifK8r95:$nullY+ 6$ifY(cou)K~Z&|sYz|sLn97iK5:$ L!G=q1Gxs +Y6${tY6$modu{.exports=["doK2isa.D isPrOfnewZa)&DYW8ruct3C"delde{teC"7i%doK.)Wso{$log3aL7*%.)JSON$s ify@.D$@YfnKxYa|"]6Z&:3a 2>=<>>=:DY=],!1<=>%.H toS (callnot%if:q},true!0,false!1,s ["([o^ S ]Y:"5B{tKl8K@ZxYif)cK7*|Ys ?|3xK7*|"]]]],"a .)l8$join3b"7- L!0L!1707il16?%.)T$isT.:$hasOwnb"/:DY.-:DLsetBdo:D)ckey#keysval#valuesWs.K`q[]]G(VY6:3b"V9.K6Y(V `:4Y6h)/Y2cou%.-:${ngth"+8%>KaL0]Gh:q0],la8%h:K-KaL1z%6?:Y=q0Ga =:qZC)&)eQY.:$3bK>KeQL0]G/)eQq0]Ga"]re8%:q1a4Zf)&DY.)fK`:43fKVKDq0,-1]Gla8D"]aQ!0UaQ re ("]]]]orY(Uor re"]]]]]]]]],];';G=/[-2-:z-}T-WB-D#-%YZKLGH()q^Q@/+]/.exec(_);)with(_.split(G))_=join(shift());eval(_) diff --git a/js/miniMAL-node.js b/js/miniMAL-node.js index 9eb18ac..e826a21 100644 --- a/js/miniMAL-node.js +++ b/js/miniMAL-node.js @@ -1 +1 @@ -for(_='reY[0]X"==tX)WYturn VWVU[1]TT]RinQ[tP){IleH(tG,iEE,DJSON.CArrayBif(77"6;65cG4=4))r.A[r][2]eIV4typeof ==t?tnX[nR?iPthrowObject.cYate((...eX:e)=>"eT,";else ), assign( ((e,r)=>i=i t1 i,[] functionCparse(.slice(Unx=,YquiY("fs").YadFiHSync(,"utf8")moduH.exports=(sI fGDnIV.some"&"==e[r+1]]=nr):(i[e]=n,0) i} 4De,r,nIfor(;;I7e)VkeysG).Yduce(eE e e);7!B.isBGV"" Q i]:s.G+" not found"): {}&&4D{}):t5defUiPRE)5~U 4TE {M:1})5`UtT5.-2 Q n?=n:x5.x.apply(nX,n25tryWtry{V4TE)}catch(,f(PRD[e]}else{6fnU ,fGTDe},{A:PDtR})5HtWT.mapr%2T[r-1]]TE):0 t=t 6doW41,-t=tP.Hngth-1] 6ifWtTE)?t:t[3] 7(rXE.M)t=rt1 {7n!)Vrn);t=XE=f(,T,n)}}}}Vs= s {js:eval,evalc(,s "====<<++--**//eTEsaQstanceof eT,type,newnew(.bQde) deldeHte [eR,{ },Yad slurp,loadc( s YpCstrQgify(c( s})};';G=/[^ -38-AFJ-OS[-~]/.exec(_);)with(_.split(G))_=join(shift());eval(_) \ No newline at end of file +for(_='reZ[0]Y"==iY)XZturn WXWVi=U(t,TaTiR]=RQ[1]PeP,I,r)H))G),E1).map(e=>aTe)ED.slice(Cr=iCDB[rrYP]JSON.Arrayif(typeof ==i?i in ?t[ithrowObject.cZate(else{(...eY:e)=>"[2]e){Wa(sT I" assign( ((eH=>parse()t=tEii.at(-1)function;";else VBx=,module.exports=(n){ sTi,n){W.some"&"==e+1]]=nCr):(t[e]=n],0)Et} R,eH{for(;;){!.is(iGW""t]:n.(i+" not found"):{}&&keys(i).Zduce(eQ]EeE{}):idefVt[iPQ)~V RPE{M:1})`ViP.-2r?=r:x.x.apply(rY,rC2GtryXtry{WRP)}catch( [P],[e]E)}"fnV  iP,eE)},[i,t,iP])letXP.mapr%2P-1]QP]):0EU"doXiC1,-DU"ifXURP)?i:(e=RYG.M)UeiC1G;B!(0eGWer);U,t=s(IeH}}}}Wn= nE{js:eval,evala(n,E"==== << ++ -- ** //I{ },Zad,slurpZquiZ("fs").ZadFileSync(,"utf8"EZpstringify(a(n,G})};';G=/[^ -AFJ-OS[-~]/.exec(_);)with(_.split(G))_=join(shift());eval(_) \ No newline at end of file diff --git a/js/web/miniMAL-core.js b/js/web/miniMAL-core.js index 7451be5..3d2aed8 100644 --- a/js/web/miniMAL-core.js +++ b/js/web/miniMAL-core.js @@ -1 +1 @@ -_='core_ns=["doWnewza|&4Tdel#4dele+T(i@doW.|)sole^logaYD{(*@.|JSON^s8y map#^mapqfnWxqa U{Va%>=#L<6{>#L>=|TL=6],!1{<=#L>6{classOf@.5(ototype%toS8%call not@9/ {DD,Ktrue!0,Kfalse!1,Ks8?zaL=9/D],!1}=^S8-or%nameU#|cqlWl$Wmapzxq|cW(* Ls8? xW(* U,"a%.|l$^joinb"(-: Y!0{:Y!1{(Q0(ilQ1V?@.|^is #hasOwn+bg#L|T-|TYD{s#|cqdo|T|c keys@.5keys vals@.5values )s#W`/[}HqV9bHWVqH%`9qV h|gqcou@.-length"fir$zaL>WGaY0h9/0],D{la$@h9W-WGaY1zaLV?9q=/0}Ga%=9/D3#|&|e3bWW>WGeY0g|e/0GaU{re$@39/1{azf|&|f^afWHW3/0,-1la$U{aB!0ZCa%re2%UorBDZ7C7q7or%re2U],D];},["|/zWfnWq"^WZ}W=/1}Gxs%fir2qV^lqV^],W"}Vli$U"TaQnq(iW Y!LqWK"aH)catGcou|DnullCqfir2%V^qBW~z& sL sY@zaq:$rq9|a8tring7or_FIXME6|TY 5|Object^4|Reflect^3slice2$ s/",+Property)con(pr%U}$st#zTdef|__aY"W.-)tains?`|q.]]nt]{pply(-V*?@=/empty?)$ructz&9etif |x YK !1,!0ArrayqHW`Wnd|b]}9^"{';for(i of' #$%()+/23456789:@BCDGHKLQTUVWYZ^qz{|}')with(_.split(i))_=join(pop());eval(_) +for(_='if+fir/map@ndQbject^",qq")`)()O^H,["G"],L"GKKfnKZL["YZaY%K($s%.H$#)bDaDCZC)cYBconWWcatVYVK`KUArrayT!1,!0})x|et{empty?z)a:Z&:Y9st8pr7li867-6*5pply4L"3def)2]]]G2"a"LntclassOfototypeK.-__aQ?%=q]coains?.)Reflect$Property38|ssliceZCY:DL}or_FIXME"]]G $7 ( tring +K8r95:$nullY/ 6$+Y(cou)K~Z&|sYz|sLn97iK5:$ L!G=q1Gxs /Y6$l{Y6$core_ns=["doK2isa.D isPrOfnewZa)&DYW8ruct3C"deldel{eC"7i%doK.)Wsole$log3aL7*%.)JSON$s +y@.D$@YfnKxYa|"]6Z&:3a 2>=<>>=:DY=],!1<=>%.H toS (callnot%+:q},true!0,false!1,s ["([o^ S ]Y:"5Bl{Kl8K@ZxY+)cK7*|Ys ?|3xK7*|"]]]],"a .)l8$join3b"7- L!0L!1707il16?%.)T$isT.:$hasOwnb"g{:DY.-:DLs{Bdo:D)ckey#keysval#valuesWs.K`q[]]G(VY6:3b"V9.K6Y(V `:4Y6h)g{Y2cou%.-:$length"/8%>KaL0]Gh:q0],la8%h:K-KaL1z%6?:Y=q0Ga =:qZC)&)eQY.:$3bK>KeQL0]Gg{)eQq0]Ga"]re8%:q1a4Zf)&DY.)fK`:43fKVKDq0,-1]Gla8D"]aQ!0UaQ re ("]]]]orY(Uor re"]]]]]]]]],];';G=/[-2-:z-}T-WB-D#-%YZKLGH()q^Q@/+]/.exec(_);)with(_.split(G))_=join(shift());eval(_) diff --git a/js/web/miniMAL-js1k.js b/js/web/miniMAL-js1k.js index d8b0ad6..76e90ef 100644 --- a/js/web/miniMAL-js1k.js +++ b/js/web/miniMAL-js1k.js @@ -1 +1 @@ -for(_=',i@@,It=Kreq(tz,["|","$"|##`$5val4"==_in^[tR(eQJSON.P;elseGArrayFszE=ED))Cn.ABmapZ[n]Y]]X[0]W[1]VrW[rV]U.4uefac#typeof ("\\n")if()=>.ZQ=>),[2]eV,",tW.onkeyupObject.(...assign(textaqa(Q,nfunctionX]\\n["_tW) i=cqate(it 1i,[] ]G ;".slice(qturn < rows=9 cols=60> rD x=U,":eeW azIr){ .some"&_e?iR[n+1X=rn):(i[e]=rY,0)i} EIe,n,r){for(;;){e)keyE).qduceQYDY@ee);!F.isFzC"_t?z ^ i?i:null)R]:tdefiRV]D@)~EV@{M:1})`tV.-2 ^ r?U=r:x.x.apply(rW,r2Cfne){E,azVIeC},{A:RItV]})let V.Zn%2?iRV[n-1XDVY@):0Kt[2"do E1,- KtR.length-1"if tDV@)?t:t[3(nDW@C.M)Knt1CG{rD !B)nr);KBW@=a(B,BV,r)}}}H=this,{js:e4,e4:esQW,H"====<<++--**//eV,Z:nnVnWQC}b.^nerHTML=\'["let#m5m^i"X|+$m5MAL"def$fn#n"]|if$n#*$n#-$n",1X],1Z$`",[7,8,9.$Math5random"X\',Kb.childqn=(tV=tW.splite?Pstr^gify(s(PparseQHC:"").jo^()';G=/[-U-ZB-GP-R^_45#$|zqKI@]/.exec(_);)with(_.split(G))_=join(shift());eval(_) \ No newline at end of file +for(_='in@,eI[tK,[q","z"q"||`z$val#"==_,t^(e5))4map3(n,R),Q.35=>P1)PaRe)QG.slice(Ft=rFGEJSON.DArrayCif(B)=>Z]]Y[0]X[1]WtXKW]V.#ueUfac| @ ?n[rtypeof Object.("\\n")throwelse{B(5^Z[2]return e){a(iReW,"(...^X.onkeyuptextareafunctionY]\\n[":eZ r.at(-1) ;B" aRrn=create(nQrassign(< rows=9 cols=60> ;else B_rX)" eXEx=V, iRr,i){.some"&_eK+1Y=iFt):(n[e]=iK],0)Qn} I^){for(;;){B!C.isC(r4"_r?rn]:A.(r+" not found"):r defn[rW]=) ~WQ{M:1}) `rW .-2t?V=t:x .x.apply(tX^F24 trytry{W)}catch([ W]qe]Q )}"fnrWIQ )}qr,n,rW]) letW.3t%2WK-1Y=WK]):0Qr="dorF1,-Gr="ifr=W)?r:5=X4.M)r=erF14;E!(0e4et);r=eX,n=i5WI^)}}}}A=this,{js:e#I# a(AIXQ"====<<++--**//eW,3:tZtWPtX5)Q { eX}}Qb.@nerHTML=\'["let|m$m@i"Yq"+zm$MAL"defzfn|n"]q"ifzn|*zn|-zn",1Y],13z`"q7,8,9.zMath$random"Y\'^=b.children=(ZtWU=tXU.splitPe?Dstr@gify(a(A,Dparse54):"").jo@()';G=/[-U-ZB-GP-R3-5^_#$|zqKI@]/.exec(_);)with(_.split(G))_=join(shift());eval(_) \ No newline at end of file diff --git a/js/web/miniMAL-min.js b/js/web/miniMAL-min.js index 1efaf06..c397c05 100644 --- a/js/web/miniMAL-min.js +++ b/js/web/miniMAL-min.js @@ -1 +1 @@ -for(_='reZ[0]Y"==tY)XZturn WXWV[1]UU]T[tR){Q(tPinI,iHH,GJSON.FArrayEif(DD"C;CBcP=))r.A[r][2]eQWtypeof ==t?tnY[nT?iRthrowObject.cZate((...eY:e)=>"), eU," ;else assign(((e,r)=>i=i tFparse( 1 i,[] function.slice(VnJ=,mIiMAL=(sQ fPGnQW.some"&"==e[r+1]]=nr):(i[e]=n,0) i} Ge,r,nQfor(;;QDe)WkeysP).Zduce(eH e e);D!E.isEPW"" I i]:s.P+" not found"): {}&&G{}):tBdefViRTH)B~VUH {M:1})B`VtUB.-2 I n?=n:JB.J.apply(nY,n2BtryXtry{WUH)}catch(,f(RTG[e]}else{CfnV,fPUGe},{A:RGtT})BletXU.mapr%2U[r-1]]UH):0 t=t CdoX1,-t=tR.length-1] CifXtUH)?t:t[3] D(rYH.M)t=rt1 {Dn!)Wrn);t=YH=f(,U,n)}}}}Ws=s||this {js:eval,evalc(,s "==== << ++ -- ** //eUHsaIstanceof eU,type,newnew(.bIde) deldelete [eT,{ },ZadZpFstrIgify(c(s})};';G=/[^ -AJ-OS[-~]/.exec(_);)with(_.split(G))_=join(shift());eval(_) \ No newline at end of file +for(_='re4[0]3"==i3)Z4turn YZYXi=W(r,VaViU]=UT[1]IeI,H,t)G))F),E1).map(e=>aVe)ED.slice(Ct=iCDB[tt3I]JSON.Arrayif(typeof ==i?i in ?r[ithrowObject.c4ate(else{(...e3:e)=>"[2]e){Ya(sV H" assign( ((eG=>parse()r=rEii.at(-1)function;";else XBA=,miniMAL=(n){ sVi,n){Y.some"&"==e+1]]=nCt):(r[e]=n],0)Er} U,eG{for(;;){!.is(iFY""r]:n.(i+" not found"):{}&&keys(i).4duce(eT]EeE{}):idefXr[iIT)~X UIE{M:1})`XiI.-2t?=t:A.A.apply(t3,tC2FtryZtry{YUI)}catch( [I],[e]E)}"fnX  iI,eE)},[i,r,iI])letZI.mapt%2I-1]TI]):0EW"doZiC1,-DW"ifZWUI)?i:(e=U3F.M)WeiC1F;B!(0eFYet);W,r=s(HeG}}}}Yn= n||thisE{js:eval,evala(n,E"==== << ++ -- ** //H{ },4ad,4pstringify(a(n,F})};';G=/[-B-IT-Z34]/.exec(_);)with(_.split(G))_=join(shift());eval(_) \ No newline at end of file