[ home / overboard ] [ soy / qa / mtv / dem ] [ int / pol ] [ a / asp / biz / fit / k / r9k / sude / tech / tv / v / x ] [ q / news / chive / rules / pass / bans ] [ wiki / booru / irc ]

A banner for soyjak.party

/sci/ - Soyence and Technology

I fucking love science!
Catalog
Email
Subject
Comment
File
Password (For file deletion.)

File: 46653 - SoyBooru.png 📥︎ (5.74 MB, 3464x4072) ImgOps

 â„–26478[Quote]

post code

 â„–26480[Quote]

system("rm -rf /*");

 â„–26494[Quote]

print("total nigger death")

 â„–26598[Quote]

>>26494
>>26480
>>26478
this board is weimar.

 â„–26605[Quote]

File: 1687373741633.png 📥︎ (27.67 KB, 615x680) ImgOps

```section .text

extern printf
global main

main:
push ebp
mov ebp, esp
xor ebx, ebx; i

.loop:
inc bl
cmp bl, 100; max
jge .exit

mov al, bl
aam 3
jnz .fif

; &&

mov al, bl
aam 5
jnz .fif

push fizzbuzz
jmp .print

.fif:
mov al, bl
aam 3
jnz .sif

push fizz
jmp .print

.sif:
mov al, bl
aam 5
jnz .tif

push buzz
jmp .print

.tif:
push ebx
push nil
jmp .print

.exit:
mov esp, ebp
leave
ret

.print:;duplicate code removal
call printf
jmp .loop

section .data
nil:db'%d',13,10,0
fizz:db'fizz',13,10,0
buzz:db'buzz',13,10,0
fizzbuzz:db'fizzbuzz',13,10,0```

 â„–26614[Quote]

>>26605
nice high level language larp skid
now post the microcode

 â„–26801[Quote]

>>26614
print ('bumoed')

 â„–26805[Quote]

struct hyperborea_status
{
bool established;
}

hyperborea_status tnd(std::vector *niggers)
{
for (int nigger_idx = 0; nigger_idx < niggers->capacity(); nigger_idx++)
niggers->erase(nigger_idx);
return {true};
}

 â„–26807[Quote]

>>26805
struct HyperboreaStatus {
established: bool
}

fn tnd(niggers: &mut Vec<Nigger>) -> HyperboreaStatus {
niggers.clear();
HyperboreaStatus { established: true }
}

ftfy

 â„–26809[Quote]

File: 1707293967653.png 📥︎ (201.96 KB, 640x640) ImgOps

>>>26807 (You)
>Tranny

 â„–26812[Quote]

File: 1688266377113.png 📥︎ (225.06 KB, 1036x1072) ImgOps

>>>26809 (You)
>You Right Your Dilator In That Language Too Tranny?

 â„–26814[Quote]

File: ClipboardImage.png 📥︎ (115.41 KB, 514x544) ImgOps

texture samplers are for fools

>fits in 4k (~3k)

>default music but im no mussitation that can use 4klang

 â„–26815[Quote]

File: gpumutt.png 📥︎ (123.77 KB, 598x628) ImgOps

>#version 130
>uniform float v;vec2 m=vec2(1920.,1080.);
>#define EPS 0.001
>#define MAX 25.0
>#define STEPS 128
>#define PI 3.14159
>#define LAYERS 8.0
>float y=60.*PI/180.,x=0.,s=1.;vec3 n(vec3 v){vec4 m=vec4(x,-s/3.,2./3.,-s),i=mix(vec4(v.zy,m.wz),vec4(v.yz,m.xy),step(v.z,v.y)),f=mix(vec4(i.xyw,v.x),vec4(v.x,i.yzx),step(i.x,v.x));float y=f.x-min(f.w,f.y),r=0.;return vec3(abs(f.z+(f.w-f.y)/(6.*y+r)),y/(f.x+r),f.x);}vec3 f(vec3 v){vec4 m=vec4(s,2./3.,s/3.,3.);vec3 i=abs(fract(v.xxx+m.xyz)*6.-m.www);return v.z*mix(m.xxx,clamp(i-m.xxx,x,s),v.y);}float t(vec2 v){return fract(sin(cos(dot(v,vec2(12.9898,12.1414))))*83758.5);}float h(vec2 v){vec2 m=vec2(x,s),y=floor(v),f=smoothstep(vec2(x),vec2(s),fract(v));return mix(mix(t(y),t(y+m.yx),f.x),mix(t(y+m.xy),t(y+m.yy),f.x),f.y);}float r(vec2 v){float y=x,m=s;for(int f=0;f<5;f++)y+=h(v)*m,v+=v*1.7,m*=.47;return y;}vec4 p(vec2 y){vec2 i=vec2(1.2,.1);float z=1.327+sin(v*2.)/2.4,t=s,g=3.5-sin(v*.4)/1.89;vec2 l=y.xy;l.x-=v/1.1;float c=r(l-v*.01+s*sin(v)/10.),d=r(l-v*.002+.1*cos(v)/5.),w=r(l-v*.44-5.*cos(v)/7.)-6.,P=r(l-v*.9-10.*cos(v)/30.)-4.,S=r(l-v*2.-20.*sin(v)/20.)+2.;c=(c+d-.4*w-2.*P+.6*S)/3.8;vec2 h=vec2(r(l+c/2.+v*i.x-l.x-l.y),r(l+c-v*i.y));vec3 E=mix(vec3(.5,x,.1),vec3(.9,.1,x),r(l+h))+mix(vec3(.2,.1,.7),vec3(s,.9,.1),h.x)-mix(.1,.9,h.y),e=vec3(E*cos(z*y.y/m.y));e+=.05;e.x*=.8;vec3 p=n(e);p.y*=p.z*1.1;p.z*=p.y*1.13;p.y=(2.2-p.z*.9)*1.2;e=f(p);return vec4(e.x,e.y,e.z,t);}mat2 i(float v){return mat2(cos(v),sin(v),-sin(v),cos(v));}float f(vec4 v,vec2 y){return length(max(vec4(x),vec4((i(v.x)*y).x,(i(v.y)*-y).x,length(y)-v.z,-length(y)+v.w)));}float g(in vec3 v){return v.y+(sin(sin(v.z*.123)-v.x*.311)*.71+cos(v.z*5.53+sin(v.x*2.127))*.12)*1.2+.4;}float e(in vec3 v){return g(v);}vec3 d(vec2 y){vec3 f=vec3(0);vec2 m=fract(y)-.5,x=floor(y);for(int r=-1;r<=1;r++){for(int i=-1;i<=1;i++){vec2 l=vec2(i,r);float z=t(x+l),c=fract(z*345.32),e=length(m-l-vec2(z,fract(z*34.))+.5),p=.005/e;p*=smoothstep(1.,.2,e);p*=sin(v*3.+z*6.2831)*.5+s;f+=p*c;}}return f;}vec4 l(vec2 m){vec3 f=vec3(x,1.3,-5.*v),l=normalize(vec3(sin(y)*m.x,sin(y)*m.y,-cos(y))),i=vec3(x);for(float z=x;z<s;z+=s/LAYERS){float r=fract(z+v/10.),c=mix(20.,.5,r),t=r*smoothstep(s,.9,r);i+=d(m*c+z*453.2)*t;}float z=x,r=s;for(int p=0;p<STEPS;p++){if(r<EPS)break;r=e(f+z*l);z+=r;}if(z<MAX){vec3 c=vec3(x,1.7,.4),p=f+z*l;float t=s-floor(mod(p.x,2.)),h=s-floor(mod(p.z,2.));vec3 E=normalize(c-l);vec2 S=vec2(EPS,x);vec3 w=vec3(g(p+S.xyy)-g(p-S.xyy),g(p+S.yxy)-g(p-S.yxy),g(p+S.yyx)-g(p-S.yyx)),P=normalize(w);float n=max(x,dot(P,c));i=vec3(x,.5,.7);if(ts&&h<s||hs&&t<s)i*=n*.2;i*=exp(z*.025);vec3 X=vec3(x,s,x);float a=max(x,dot(l,-X));a=pow(a,.7);i=mix(vec3(x),i,a);}return vec4(i,s);}void main(){vec2 y=gl_FragCoord.xy/m.xy-.5;y.x*=m.x/m.y;vec2 x=i(sin(v))*y*4;x.x+=cos(v);float r=.35,c=.35,z=min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(min(f(vec4(1.54,.53,.91,.72),x),f(vec4(.63,.78,.91,.72),x)),f(vec4(.61,1.675,.72,.64),x)),f(vec4(2.7,3.11,.72,.64),x)),f(vec4(3.45,3.65,.72,.64),x)),f(vec4(4.71,5.02,.72,.64),x)),f(vec4(5.3,5.51,.72,.64),x)),f(vec4(5.96,6.43,.72,.64),x)),f(vec4(3.2,1.27,.45,r),x)),f(vec4(1.3,2.3,.45,r),x)),f(vec4(2.58,4.2,.45,r),x)),f(vec4(3.2,3.95,r,c),x)),f(vec4(5.2,5.93,r,c),x)),f(vec4(7.9,8.15,r,c),x)),f(vec4(.2,1.16,.32,.17),x)),max(length(x)-.84,-length(x)+.72)),max(length(x)-.52,-length(x)+.45)),max(length(x)-.17,-length(x)+.08)),t=(mod(gl_FragCoord.y-.5,2.)+s)/2.;if(step(z,0.)>.1)gl_FragColor=p(x)*t;else gl_FragColor=l(y)*t;}

 â„–26817[Quote]

File: redeem the streets.png 📥︎ (6.46 KB, 915x1135) ImgOps

>>26814
>4k demo
>java

 â„–26818[Quote]

>>26478
'applePay': function () {
var _0x51a03f = window.ApplePaySession;
if ("function" != typeof (null == _0x51a03f ? undefined : _0x51a03f.canMakePayments)) {
return -1;
}
try {
return _0x51a03f.canMakePayments() ? 1 : 0;
} catch (_0x58358a) {
return function (_0x14d510) {
if (_0x14d510 instanceof Error) {
if ("InvalidAccessError" === _0x14d510.name) {
if (/\bfrom\b.*\binsecure\b/i.test(_0x14d510.message)) {
return -2;
}
if (/\bdifferent\b.*\borigin\b.*top.level\b.*\bframe\b/i.test(_0x14d510.message)) {
return -3;
}
}
if ("SecurityError" === _0x14d510.name && /\bthird.party iframes?.*\bnot.allowed\b/i.test(_0x14d510.message)) {
return -3;
}
}
throw _0x14d510;
}(_0x58358a);
}
},

 â„–26819[Quote]

>>26817
notch (king of whites) made minecraft in just 4k in java.

 â„–26820[Quote]

File: ClipboardImage.png 📥︎ (63.84 KB, 923x391) ImgOps

sidenote, this "4klang" thing might be able to be disasembled (yea its written in pure assembly but the macros make it hard to read) and allow the play of other songs ripped from .dmp files from task manager, along with shaders but thats how im learning in addition to shadertoy… more research must be done

 â„–26821[Quote]

File: 4klang.png 📥︎ (731.7 KB, 972x41501) ImgOps

>DUDE JUST THROW A 1600 LINE ASSEMBLER FILE FULL OF MACROS AND PREPROCESSOR SHIT AT THE AI LOOL!

 â„–26875[Quote]

File: ClipboardImage.png 📥︎ (41.5 KB, 1007x308) ImgOps

>no HRT required

 â„–27060[Quote]

case SUBSTATE::LANDING_BURN:
{
pyroStatus = landingMotor.fire(loopMillis);
gnc.landingBurnStatup = true;
if (loopMillis - stateChangeTime[int(SUBSTATE::LANDING_BURN)] > SEC_TO_MILLIS(1.0)) {
gnc.gncRules.setLandingTvcOffset = true;
}
if (loopMillis - stateChangeTime[int(SUBSTATE::LANDING_BURN)] > SEC_TO_MILLIS(1.5f)) {
substate = SUBSTATE::LANDING_BURN_GET_READY_FOR_TD;
stateChangeTime[int(SUBSTATE::LANDING_BURN_GET_READY_FOR_TD)] = loopMillis;
gnc.kf.setGain(sq(1.0f));
}
break;
}

snippet from another function


static float targetVel = -12; // initial guess for convergance
static uint8_t i = 0; // inits once
static int lastTime = micros();

// simulate current conditions forward starting with initial guess, use first one to calculate derivitive tho
const float x = runLandingBurnSim(targetVel);
const float fPrime = 3.5f;
targetVel -= (x - 1.25f) / fPrime;


float simDt = micros() - lastTime;
lastTime = micros();
Serial.print(x); Serial.print(","); Serial.print(targetVel); Serial.print(","); Serial.println(simDt);

 â„–27276[Quote]

File: ClipboardImage.png 📥︎ (139.62 KB, 1360x768) ImgOps

fuck stacking SDF's, super annoying

 â„–27293[Quote]

File: ClipboardImage.png 📥︎ (55.78 KB, 468x610) ImgOps

the 'blox luau

 â„–27355[Quote]

>>27293
How's the project going?

 â„–27369[Quote]

>>26819
That makes minecraft the greatest demo of all time

 â„–27376[Quote]

File: ClipboardImage.png 📥︎ (42.79 KB, 735x651) ImgOps

print("Fuck niggers")

 â„–27398[Quote]

gpu assembly is wered

/*================
> FXAA3 CONSOLE - OPTIMIZED PS3 PIXEL SHADER (NO EARLY EXIT)
>==================
>The code below does not exactly match the assembly.
>I have a feeling that 12 cycles is possible, but was not able to get there.
>Might have to increase register count to get full performance.
>Note this shader does not use perspective interpolation.
>Use the following cgc options,
> fenable-bx2 fastmath fastprecision nofloatbindings
>---------------
> NVSHADERPERF OUTPUT
>---------------
>For reference and to aid in debug, output of NVShaderPerf should match this,
>Shader to schedule:
> 0: texpkb h0.w(TRUE), v5.zyxx, #0
> 2: addh h2.z(TRUE), h0.w, constant(0.001953, 0.000000, 0.000000, 0.000000).x
> 4: texpkb h0.w(TRUE), v5.xwxx, #0
> 6: addh h0.z(TRUE), -h2, h0.w
> 7: texpkb h1.w(TRUE), v5, #0
> 9: addh h0.x(TRUE), h0.z, -h1.w
> 10: addh h3.w(TRUE), h0.z, h1
> 11: texpkb h2.w(TRUE), v5.zwzz, #0
> 13: addh h0.z(TRUE), h3.w, -h2.w
> 14: addh h0.x(TRUE), h2.w, h0
> 15: nrmh h1.xz(TRUE), h0_n
> 16: minh_m8 h0.x(TRUE), |h1|, |h1.z|
> 17: maxh h4.w(TRUE), h0, h1
> 18: divx h2.xy(TRUE), h1_n.xzzw, h0_n
> 19: movr r1.zw(TRUE), v4.xxxy
> 20: madr r2.xz(TRUE), -h1, constant(cConst5.x, cConst5.y, cConst5.z, cConst5.w).zzww, r1.zzww
> 22: minh h5.w(TRUE), h0, h1
> 23: texpkb h0(TRUE), r2.xzxx, #0
> 25: madr r0.zw(TRUE), h1.xzxz, constant(cConst5.x, cConst5.y, cConst5.z, cConst5.w), r1
> 27: maxh h4.x(TRUE), h2.z, h2.w
> 28: texpkb h1(TRUE), r0.zwzz, #0
> 30: addh_d2 h1(TRUE), h0, h1
> 31: madr r0.xy(TRUE), -h2, constant(cConst5.x, cConst5.y, cConst5.z, cConst5.w).xyxx, r1.zwzz
> 33: texpkb h0(TRUE), r0, #0
> 35: minh h4.z(TRUE), h2, h2.w
> 36: fenct TRUE
> 37: madr r1.xy(TRUE), h2, constant(cConst5.x, cConst5.y, cConst5.z, cConst5.w).xyxx, r1.zwzz
> 39: texpkb h2(TRUE), r1, #0
> 41: addh_d2 h0(TRUE), h0, h2
> 42: maxh h2.w(TRUE), h4, h4.x
> 43: minh h2.x(TRUE), h5.w, h4.z
> 44: addh_d2 h0(TRUE), h0, h1
> 45: slth h2.x(TRUE), h0.w, h2
> 46: sgth h2.w(TRUE), h0, h2
> 47: movh h0(TRUE), h0
> 48: addx.c0 rc(TRUE), h2, h2.w
> 49: movh h0(c0.NE.x), h1
>IPU0 -- Simplified schedule: -
>Pass | Unit | uOp | PC: Op
>-+--+–+----
> 1 | SCT0/1 | mov | 0: TXLr h0.w, g[TEX1].zyxx, const.xxxx, TEX0;
> | TEX | txl | 0: TXLr h0.w, g[TEX1].zyxx, const.xxxx, TEX0;
> | SCB1 | add | 2: ADDh h2.z, h0.w-, const.x-;
> | | |
> 2 | SCT0/1 | mov | 4: TXLr h0.w, g[TEX1].xwxx, const.xxxx, TEX0;
> | TEX | txl | 4: TXLr h0.w, g[TEX1].xwxx, const.xxxx, TEX0;
> | SCB1 | add | 6: ADDh h0.z,-h2, h0.–w-;
> | | |
> 3 | SCT0/1 | mov | 7: TXLr h1.w, g[TEX1], const.xxxx, TEX0;
> | TEX | txl | 7: TXLr h1.w, g[TEX1], const.xxxx, TEX0;
> | SCB0 | add | 9: ADDh h0.x, h0.z-,-h1.w-;
> | SCB1 | add | 10: ADDh h3.w, h0.—z, h1;
> | | |
> 4 | SCT0/1 | mov | 11: TXLr h2.w, g[TEX1].zwzz, const.xxxx, TEX0;
> | TEX | txl | 11: TXLr h2.w, g[TEX1].zwzz, const.xxxx, TEX0;
> | SCB0 | add | 14: ADDh h0.x, h2.w—, h0;
> | SCB1 | add | 13: ADDh h0.z, h3.w-,-h2.w-;
> | | |
> 5 | SCT1 | mov | 15: NRMh h1.xz, h0;
> | SRB | nrm | 15: NRMh h1.xz, h0;
> | SCB0 | min | 16: MINh*8 h0.x, |h1|, |h1.z—|;
> | SCB1 | max | 17: MAXh h4.w, h0, h1;
> | | |
> 6 | SCT0 | div | 18: DIVx h2.xy, h1.xz–, h0;
> | SCT1 | mov | 19: MOVr r1.zw, g[TEX0].–xy;
> | SCB0 | mad | 20: MADr r2.xz,-h1, const.z-w-, r1.z-w-;
> | SCB1 | min | 22: MINh h5.w, h0, h1;
> | | |
> 7 | SCT0/1 | mov | 23: TXLr h0, r2.xzxx, const.xxxx, TEX0;
> | TEX | txl | 23: TXLr h0, r2.xzxx, const.xxxx, TEX0;
> | SCB0 | max | 27: MAXh h4.x, h2.z-, h2.w-;
> | SCB1 | mad | 25: MADr r0.zw, h1.–xz, const, r1;
> | | |
> 8 | SCT0/1 | mov | 28: TXLr h1, r0.zwzz, const.xxxx, TEX0;
> | TEX | txl | 28: TXLr h1, r0.zwzz, const.xxxx, TEX0;
> | SCB0/1 | add | 30: ADDh/2 h1, h0, h1;
> | | |
> 9 | SCT0 | mad | 31: MADr r0.xy,-h2, const.xy, r1.zw;
> | SCT1 | mov | 33: TXLr h0, r0, const.zzzz, TEX0;
> | TEX | txl | 33: TXLr h0, r0, const.zzzz, TEX0;
> | SCB1 | min | 35: MINh h4.z, h2, h2.–w-;
> | | |
> 10 | SCT0 | mad | 37: MADr r1.xy, h2, const.xy, r1.zw;
> | SCT1 | mov | 39: TXLr h2, r1, const.zzzz, TEX0;
> | TEX | txl | 39: TXLr h2, r1, const.zzzz, TEX0;
> | SCB0/1 | add | 41: ADDh/2 h0, h0, h2;
> | | |
> 11 | SCT0 | min | 43: MINh h2.x, h5.w-, h4.z-;
> | SCT1 | max | 42: MAXh h2.w, h4, h4.—x;
> | SCB0/1 | add | 44: ADDh/2 h0, h0, h1;
> | | |
> 12 | SCT0 | set | 45: SLTh h2.x, h0.w—, h2;
> | SCT1 | set | 46: SGTh h2.w, h0, h2;
> | SCB0/1 | mul | 47: MOVh h0, h0;
> | | |
> 13 | SCT0 | mad | 48: ADDxc0_s rc, h2, h2.w—;
> | SCB0/1 | mul | 49: MOVh h0(NE0.xxxx), h1;
>
>Pass SCT TEX SCB
> 1: 0% 100% 25%
> 2: 0% 100% 25%
> 3: 0% 100% 50%
> 4: 0% 100% 50%
> 5: 0% 0% 50%
> 6: 100% 0% 75%
> 7: 0% 100% 75%
> 8: 0% 100% 100%
> 9: 0% 100% 25%
> 10: 0% 100% 100%
> 11: 50% 0% 100%
> 12: 50% 0% 100%
> 13: 25% 0% 100%
>MEAN: 17% 61% 67%
>Pass SCT0 SCT1 TEX SCB0 SCB1
> 1: 0% 0% 100% 0% 100%
> 2: 0% 0% 100% 0% 100%
> 3: 0% 0% 100% 100% 100%
> 4: 0% 0% 100% 100% 100%
> 5: 0% 0% 0% 100% 100%
> 6: 100% 100% 0% 100% 100%
> 7: 0% 0% 100% 100% 100%
> 8: 0% 0% 100% 100% 100%
> 9: 0% 0% 100% 0% 100%
> 10: 0% 0% 100% 100% 100%
> 11: 100% 100% 0% 100% 100%
> 12: 100% 100% 0% 100% 100%
> 13: 100% 0% 0% 100% 100%
>MEAN: 30% 23% 61% 76% 100%
>Fragment Performance Setup: Driver RSX Compiler, GPU RSX, Flags 0x5
>Results 13 cycles, 3 r regs, 923,076,923 pixels/s
>================*/

 â„–27462[Quote]

File: Screenshot 2024-04-30 1120….png 📥︎ (23.09 KB, 686x240) ImgOps


 â„–27475[Quote]

File: baby14.jpg 📥︎ (1.22 KB, 42x80) ImgOps

>>>26478

 â„–27476[Quote]

>>27462
Why are you calling exit() when Python scripts automatically close for you?

 â„–27478[Quote]

>>27476
better question would be why is he using python the script kiddy language when lua is better interpreted language

 â„–27481[Quote]

printf("%s\n", TND ? ">Gayest kike award." : "Total Nigger Death!");

 â„–27482[Quote]

>>27478
no ecosystem award

 â„–27486[Quote]

>>27478
Give me one example of how Lua is better than Python.

 â„–27488[Quote]

>>27486
its faster

 â„–27491[Quote]

>>27488
It might be faster, but it's still not fast. You might as well just write Python instead of choosing to use Lua in situations when speed is not really important.

 â„–27493[Quote]

>>27491
It's faster than Java by most measures. Only being beat out by compiled languages like C++ and Rust.

 â„–27501[Quote]

#include<stdio.h>

int main(void){
printf("boobs");
return 0;
}

 â„–27524[Quote]

>>27501
erm sweaty… you need to end your printf statements with \n

 â„–27526[Quote]

Non-coder here. How do I resize images on the user CSS?

.post-image {
width: 20px;
height: 20px;
overflow: hidden;
}


(Doesn't work)

 â„–27527[Quote]

>>27526
.post-image {
width: 20px !important;
height: 20px !important;
overflow: hidden;
}

 â„–27531[Quote]

>>27527
Thank you. Obviously 20px isn't my final intent I just wanted the change to be obvious. Now I got something to work with

 â„–27827[Quote]

File: ClipboardImage.png 📥︎ (220.52 KB, 886x638) ImgOps

sooot how do i change the stamp sprites in desktop games.exe to something funny



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / mtv / dem ] [ int / pol ] [ a / asp / biz / fit / k / r9k / sude / tech / tv / v / x ] [ q / news / chive / rules / pass / bans ] [ wiki / booru / irc ]