We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

!4warning

From Esolang
Jump to navigation Jump to search
!4warning logo (Brainloller prog)

!4warning is a semi-serious output-only esolang. The name is a reference to xkcd: Random Number that evaluates against a Varnier scale.


Varnier scale





The Varnier scale is used as a ruler and can be rendered in graphing software. K describes a set of relations on x and y.

framesless
framesless

sin(10πx)>0;
1<=y<=2;
0<=x<=1;
sin(12πx)<0;
0<=y<=1;
0<=x<=1;
sin;(10πx)=0;
sin;(11πx)=0;
0<=y;<=2
0<x<1;








K can be described as a constant: 945223859069131854467716857603320018335217386308408527627531821152235462876323136059470692538893113823721590322264
076747640009606936053067993541845980836848161004676371974799422742591398733768476573703679111089239134980278945183
281911548765632026957677907366460060731822731839365399615513079113430283587821242380930296407706282341626598344418
331832394037387254466358578187158879914091334845531264160250774167081287613157254659555348368699325828994696310033
6958037351963177619919832712526811720379511912110879890167484262879803610293602475520


Thenn using See_Two the png can be used as the ruler:

‰PNG
�
   
IHDR   K   •��   �z�µ   �sRGB ®Î�é   �gAMA  ±�üa�   	pHYs  ��  ��� šœ�  �IDATx^íÜAŠƒ@�@Ñ6‡œCÎ%Í4˜Å@4~‰»÷@èE�Ê�·µŒ1Ö¿çкþn§ÿ–åg;½·77]ý47Ý5ûØÎœ V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V Vpi�î™M²Ókîìý»Ôïx·�wÎ�Æ:Z»gïE{î¾?}ë�~Ã@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬@¬ÓÆx�™£1%ð2�˜    IEND®B`‚

put

To perform the principal function (print):

  1. !4warning compares a portable bitmap file with a P1 magic header against K.
  2. If k = K print 4.
  3. else: intervals = abs(k - K) // 17
  4. print(chr(intervals % 128))

You could print any other ascii by evaluating the set of files given here https://porneia.neocities.org/pbms or a zipped folder containing each bitmap can be found here. (Github)

interpreter

The interpreter can be found here.

See Also

Pierre Vernier