who wants to late night drunk code
Smizaxxed
I am not old enough to drink alcoholic beverages.
niether am i faggot
Show us your boypussy
but what about code
its what i made this thread for
You can code AND cock.
but can we code cocks
i think not
unless we get a 3d printers that prints biological matter
fuck it, i lost my buzz
you guys are low energy as fuck
What system are you programming for? We doing 32 bit x86?
i was thinking straight c
lets do something demoscene-ish
been itching to do something graphical
did you steal that from a display shelf
did we get a logo done or not
Confirmed drunk. (On cheap sherry.)
Well, looks neat
excellent work user, youve inspired me to break out my proto board
no, google images
i actually used to have this same model, i got it out of a thrift store in PA for $20
well now i know why it was $15, the audio jack is fucked and wont play music
gg rip
Time to heat up your soldering iron then.
well i did everything the guide says to do, the audio is in 32khz mono 16bit PCM yada yada yada etc
and then i use wav_playing() to check that the music actually got loaded off the sd card
and then i played music from my pc to make sure my speakers were working
and then i looked carefully at the audio jack
there dont appear to be any loose connections or fucked solder
so i honestly have no fucking clue what the issue is
fucked DAC?
but no, the dac is labeled and it looks fine
Gas Plasma screen masterrace
Same boat. found some molson dry in the backlane on my way home from highschool though. i hope it's enough to take effect.
I'd be up for something in C even if I'm not a big fan of it.
Not a big fan of graphics either but I could do some basic raster graphics or just work in the backend ig.
Reverse engineering, cracking or interesting challenges would be fun too.
pic related was pretty fun and easy
Damn the beers really kicked in. time to go to bed.
m8
assuming those are 12 ounce cans
thats only 48 ozs
fucking lightweight
forth is pretty cool
still learning though, i have a pdf of an old book called "starting forth", the guy who wrote it have an amazing teaching style
i wanted to do a voxel engine but the math is crazy
3d raycasting and super compact voxel data structures and all sorts of shit
Yeah, it's pretty enjoyable to program with.
forth.com
pic related, something I'm working on rn (doesn't work for certain sizes)
I actually wrote most of it straight off the bat instead of doing it interactively like maybe I should have, oh well.
You have that business card sized ray casting engine in C. I saw a dissection of it somewhere.
Would be cool to have anons re-implement it from that dissection in C or whatever language they want.
its right here, source code and everything: advsys.net
tried to dissect the c version but theres a fuckton of inline asm and insane maths with no explanations
still working on comprehending the toy example in QBASIC
also, thats the same book im reading :)
O only skimmed through that link, but I was talking about this: fabiensanglard.net
Maybe we should write a good description of it and have user's implement it.
And yeah, I just thought the website might be more practical ;)
im fully erect
god bless you user
w-why?!
i just transitioned to technosexual
Well, if you're talking about the pic I posted, then it was inspired by this one posted in the lainchan forth thread.
A guy in my forth discord server optimized the r> swap >r >r by doing r> 2>r instead and the opposite for the other piece of code.
If you're talking about the link I posted, then yeah, it's pretty fucking crazy shit. That kind of stuff should be way more popular tbh. Maybe we wouldn't have so many soydevs if it was :/
i actually was talking about the link yeah
but the forth is great too, is that the start of a lisp interpreter?
It's a """full""" lisp interpreter in a sense.
It just pushes the execution token of the word after ( and then pops it and executes it when ) is called.
It allows you to use s-expressions/Lisp syntax in Forth.
And yeah, I need to do some shit with the Netpbm formats, they're a god send.
Fuck netpbm, use farbfeld.
Looks slightly harder to work it but superior in all other aspects, thanks user.
It's pretty easy to work with, x/y pixels is just math on dimensions, I'd write a gforth/retro implementation but I'm writing a Punyforth driver for the VL53L0X for university at the moment (due in a couple hours)
HRNNNNNNNNNNG
lets not derail this into a fag hate thread, keep coding well, fizzbuzzing
Shit, sounds fun. I really need to get a Forth running on my arduino.
I'll see about doing some stuff with farbfeld and Forth tomorrow.
UNTIL NOW
What the fuck is wrong with people, jesus christ
What's wrong with pointers?
theyre unsafe user
smoke rust instead
unsafe?
yes, rust will handle all that "memory management" and "variable referencing" stuff for you user
its called humor
Ok. If that's your brand of humor.
next level bait mate
farbfeld is pretty cool, thanks.
What were you looking to do with it?
I've one of these, the gas plasma screen's really neat. The plastic has become very brittle over the years, though.
Found the american. enjoy your 4% nigga
been using devcpp since i started coding, im just comfortable with it
tried a whole bunch of other text editors, gui and cli, all of them were missing some feature that i had grown used to (bracket autocomplete, variable monitoring while debugging, ctrl-click to find function header or class dec, etc)
and sure i could be autist and write scripts to implement missing functionality but why bother when i already use ide that Just Werkz™
also, not complaining, its called a joke you dense faggot
and the code is the solution to a problem someone posted on lainchan, which is supposedly a google interview challenge
inb4 lainchan rant
I will, the beer is less expensive
$0.75 a can m8
Sounds like you need vim/neovim with some plugins and a decent debugger then fam.
Yeah ik, that's why I called it bait kek.
That problem is actually pretty interesting, simple because of how unfit it is to regular programming logic/control structures. Not sure how useful of a test it is tho.
I've mentioned lainchan in this thread before, you're fine
Fuck yeah, mah user.
I am working on a damn IRC client for damn months now. All I got working was an IRC v3.2 compliant parser, but no actual UI for users to work with and use.
Dude, can I use this Forth programming to wreck my G3? I know it's OpenFirmware is Forth based, and I've gone into it to load weird bootloaders, but I've never programmed for it. If I study Forth, can I write a firmware for a PCI video card and get some sweet hardware graphics acceleration beyond the ATI Rage 128 pre-installed?
ive tried vim on several occasions
could never get the feel for switching back and forth between modes and using commands to move the cursor
i know its supposed to improve productivity or whatever by keeping you away from the mouse but i cant get accustomed to it
You are stuck within the GUI world mah user. Get rid of that mentality. Text, keyboard commands and movement, direct control: these are what you need user to excel in this world.
well i guess ill give it another go
however, the real question is emacs?
Why do you need it? Does it really enhance your productivity beyond other IDE's or even a simple text editor?
idk
anons were shilling it hard a while back
"its literally an operating system, youll never use any other software ever again!"
I originally used Emacs because I was a lisper and having your whole programming environment in an extremely powerful Lisp VM is pretty fucking comfy but man is it bloated.
After watching a few youtube videos on vim (no bully) I decided to make the switch to vim+tmux and it's fucking great. It's way closer to the Unix way and really pushes you towards learning your terminal and system in general (I recommend zsh if you're lazy btw).
Here's one of those videos btw: youtube.com
I recommend watching a few before diving into it, just so you know at least the basic idea behind vim. It's really quite simple and much more suited to humans than Emacs and many other bloated IDE's.
how i would i rig vim so f11 compiles and runs the current file with g++
ive grown really attached to that feature
I use a plugin that allows me to run a command on another tmux window with just a press of a sequence or a hotkey.
When I start working on a project, I press a sequence, I input the command I want to run and then press enter. It runs it and saves it. Then, all I have to do is press another sequence/hotkey and it'll automatically run that command.
This allows me to use just one plugin for pretty much any project I want. It could be a simple fizzbuzz in Forth, it could be some C or it could even be writing code for the kernel and compiling it, and all of that with just one plugin.
Not only that, but this plugin also lets me seamlessly transition between Vim and Tmux windows. This is basically the only plugin I really need, the rest I rarely use.
Getting shit initially setup (vim, tmux and zsh) is really the hardest part, so feel free to mish and mash configs you see online, that's what I did. All my configs are based on other people's configs.
ok thats cool then
also one more thing
how badly does a VM degrade performance
i happen to be hedonistic individual with a predilection for vidya, so i still use windows
and i actually dont give a fuck about insecurity; all i have is code, pron, and memes, so if the nsa wants to browse, thats fine with me unless they copy and upload those embarrassing photos of me at the christmas party
If anons are shilling it, you know to stay away.
just like infinity next
Not sure, never used Linux on a vm.
Learning Linux, vim, tmux and zsh/bash all at the same time is probably way too much anyways tbh. I'd recommend you dualboot Linux and just use Emacs to start off with (it's easier for beginners) or, if you're really set on being a gaymerfag forever and are too scared to dualboot, a vm running Linux (the lag might be too much tho).
I'd highly recommend running Linux only, no dualbooting or VM crap, just so you force yourself to do everything in it and don't run away when it gets too hard. That's how I and most people really got started with it.
If all you're using Windows for is gaymes then Linux will probably be a good way to great out of it (although you can certainly do some light gaming in Linux now a days), it was for me and while it wasn't easy, I'm very glad I did it. I'd probably be a /vg/ soyboy by now if I hadn't done it tbqfh.
pic related, vidya is a jewish trick
ive used linux before, im just too lazy to setup dualboot right now
actually that has me thinking, would there be any way to hotswap OS's? like literally just save state of one OS and load state of another? that would be awesome if even remotely possible
and vidya is just fun game, idk why people here are allergic
I THINK I might have heard of people doing that kind of stuff once or twice, might be just my imagination tho, not sure.
We don't hate vidya, we just wish we would have grown out of it earlier ig. It's a great way to get into tech and even programming, but it's hard to move on from it, especially now a days.
seriously though
wouldnt it be cool to have some way to save the cpu state (cache, registers, etc) to memory and load the state of another
literally have an operating system to manage operating systems like programs
what kind of hardware support would be necessary
Yeah... you're making it cancer now.
Software can do that right now. Hardware...you will need direct memory access and other peripheries. It's not impossible user.
yeah, i started with blitzbasic cause i wanted to make vidya, and then i started to get into doing demoscenish type stuff, and then just started learning general CS
wrote my own emulator last month, a few games are still incompatible but im proud nontheless :)
how so, you fucking faggot
literally could swap between wangblows, loonix, and fagOS on the same pc at the press of a button without rebooting or vm
oh, i thought you were talking about:
do you not remember when hotwheels tried to "upgrade" Zig Forums?
You can kind of do this already, it's called a hypervisor, for example Xen
the floppy drive was fucked on mine
Well to be fair it's not super practical. I looked into it once for muh gaymen, but long story short because of discrete GPU PCI initialization windows would have to use a separate monitor. Nice to not have to reboot, but not if I lose a dedicated monitor.
but doesnt that let you play windows vidya on one screen and code on linux on another, off the same pc?
Good for you user, I wish I had gotten into the demo scene, it's some pretty fucking nice shit.
What hardware were you emulating? Implementing a machine is always a comfy way to grok it
It's fucking bloated af and unnecessary.
The guys that implemented that shit in software must have been a very rare combination of genius and crazy.
I'd be interested in seeing where this could go if we somehow got it to run in the Intel ME or something like that.
I don't have a use for it tho.
i did i regular ol beginners chip8
was extremely rewarding to see it work when i finished, am now working on gameboy emulator
Yeah it sounds good in theory and I still kind of have an itch to do it, I'm just too lazy between the hassle of setting up video and keyboard/mouse switching. If I had enough desk space for 4 monitors I'd do it, but I've grown accustomed to coding with 3 monitors lol
i dont even have enough desk for 2 monitors but id make room
Ah yeah, I've considered making a chip8 emulator quite a few times, but I hate doing gfx so I've always noped out of it.
Brainfuck is one of the things I implement in every language I learn and it's a surprisingly good test of the language.
I'd love to implement a stack based machine, something like the soviet Setun computers. M-maybe I should implement something that uses binary base and has source code or at least good documentation available tho ;_;
Fug, I wanna get a midrange desktop with a widescreen and a mechanical keyboard so much.
graphics coding is easy once you learn the basics and api shit
try sfml or allegro, easy peasy
maybe talk to forth user, it should be easy to implement a lightweight forth interpreter
I-I am the Forth user tho ;_;
I hate working with bloated APIs, so when I do do gfx's it's all basic raster/framebuffer stuff.
Yeah, I've already experimented with a Forth inner interpreter for X86, including one variation that used a wheeler jump instead of a return stack.
The Setun is a ruskie kind of comfy tho. They claim it's still in use in Moscow University.
my mother used to bug out and throw my computers away
but i could always count on getting more from dumb people who threw 5 year old PCs out
go dumpster diving, people are stupid and hardware is plentiful
i found this monitor brand new in the box literally sitting on the ground outside of microcenter
go to the free section on craigslist
hard mode: strike up a conversation with someone and ask if they have any old computers they dont need or want anymore
basically, just hustle
ofuck son
yeah i wanted to learn pixel shader coding but all the tutorials are like "LETS LEARN OPENGL FIRST"
i just want simple thing where i can input per-pixel function
and shadertoy.com is too much bloat
I never considered this but you could actually just plug your monitor into discrete GPU and mobo at the same time, and use the monitor buttons to switch between inputs.
If you're interested I'd say go for it. Be warned though, you'll need to pass some kernel params in your bootloader to prevent PCI initialization until the windows guest takes hold.
If the Thinkpad X220 an upgrade for you I highly recommend it. Nice keyboard and battery life, corebootable, and if you're handy with solder you can hack in a 1080p IPS monitor (imgur.com
but Tyrone, I live in a small Yuropoor country.
I went dumpster diving once before and literally found nothing of any use. I was gonna go right after xmas but then I got dumped so said fuck it kek.
I'll def do it again and check out my local CL to see if there's some free shit tho, thanks.
hehe
Oh yeah, I tired learning OpenGL and all that shit when I started out with gfx, but fuck do I hate writing 90% boilerplate code.
I'd honestly recommend you just code for formats like farbfeld, use the framebuffer on Linux (surprisingly easy to access) or use an API that provides something similar.
I might do some basic VGA fb graphics if I get to making a x86_64 Forth system. I remember the tty framebuffer in x86 that I used for my Lisp OS was extremely fucking comfy.
Yeah, it'd be a pretty nice upgrade, but I doubt I could find a decently priced one close to me.
My main reason for not getting one is that I really want a big screen and a proper keyboard tho tbh. I got the chance to use a pretty well sized screen for a while and it was orders of magnitudes less cancerous than bending down to code on my shitty laptop.