/tech/ - nology

Technology and Computing

Mode: Thread
E-mail
Subject
Message

Max message length: 4096

Files

Max file size: 20.00 MB

Max files: 5

Password

(used to delete files and postings)

Misc

Remember to follow the rules


Zero Cool Admin 12/08/2019 (Sun) 03:56:54 No. 594 [Reply]
I've made you a vol on /b/ so you can delete CP if you ever see it.

(6.12 MB 480x266 ToMyGoodFriendMike.webm)
Welcome to /tech/! Zero Cool 08/25/2019 (Sun) 02:24:21 No. 1 [Reply]
Welcome to the upgraded /tech/.

RULES
1. Spoiler all porn and gore. Assume anything spoilered is NSFW
2. Have fun!

Use this thread for all meta discussion as well as for submitting banners, alternate spoilers, etc.
8 posts and 6 images omitted.
CODE TAGS HAVE BEEN (RE)ENABLED
Edit: Code should be in a nice box now!


/*
I've pretty much got the CSS where I want it. I just wish I knew of a way to try and get rid of that stupid [orange] tag.
It's actually just a less than angle bracket, but lynxchan dickers the formatting.
Time for some trial code.
*/

#include [orange]stdio.h>

int main(){
puts("Hello /tech/!");

return 0;

Message too long. Click here to view full text.

Edited last time by dukat on 09/06/2019 (Fri) 13:12:51.
>>167
Thanks, this is so much more convenient.
(37.69 KB 400x371 happyyotsuba.jpg)
Thanks for sorting the spam out.
(34.61 KB 216x324 bobdobbs.png)
>>167
adopted
>>>/c/
>>>/doomer/
gave (You) credit in my css
(15.59 MB 480x360 ballad-of-bob-dobbs.webm)

Lisp Zero Cool 08/28/2019 (Wed) 14:47:28 No. 21 [Reply]
Is there a way to compile a lisp to an actual proper program that doesn't just include the entire interpreter?
160 posts and 54 images omitted.
May as well throw an ISO up now, but don't expect it to be fun or useful. There won't be much point playing with it until I write a text editor and add the ability to import/export values over the serial port so you can save anything you make. It's missing really basic features to tostr, substr, concat, etc. and is still slow (but I know how to make it faster soon).

Here's how to install it to a fresh VM using qemu:
truncate -s 5M hdd.img
qemu-system-i386 -drive format=raw,if=ide,media=disk,index=0,file=hdd.img -cdrom "(λa.in).iso" -boot d


Here's how to boot it following installation:
qemu-system-i386 -drive format=raw,if=ide,media=disk,index=0,file=hdd.img -boot order=c

Type (this-env) to see the stuff the prelude defines. The following definitions are included in it:
>(proc-make formal-param-list env-list body-list)
Make a procedure with the specified formal params, environment, and body. See below for details.

>'
Quotation, prevents evaluation. This is a normal function and must be used like (' a) rather than 'a.

>lambda-l

Message too long. Click here to view full text.

>read
Parse a string as a lisp value.

>print
>print-raw
print-raw produces values suitable for (read)ing. Prints at the current cursor position in the current foreground colour over the current background colour.

>car-set!
>cdr-set!
Mutate the car and cdr of a cons cell.

>list?
Returns true for cons cells and the empty list (NONE) even if the cons cell is a dotted pair rather than a list.

>cons?
>none?
>sym?

Message too long. Click here to view full text.

(7.14 MB (λa.in).pdf)
Licensing shit: https://pastebin.com/raw/rWgA08Hd
tl;dr: all rights reserved, except for terminus, the multiboot header, and GRUB.

Rename is this file to .iso
>>585
>lambda-l/d
>Evaluate to lexical and dynamic scoped procedures.
Quick word of warning, this isn't actually true dynamic scoping. What lambda-d procedures actually do is execute in the calling environment. If a lambda-l proc calls a lambda-d proc then the lambda-d proc executes in the lambda-l's environment, not the environment of the caller of the lambda-l.

>refs are unique and never reused
on a per-value basis, (ref v) and (ref v) will always return the same value so long as v is bound to the same object.

>and/or/xor
I patched short-circuiting in moments before posting and fucked it up badly. I think I broke xor, but I don't have the time to check right now. Oh well, I'll post a good release later, this is just a preview because y'all wanted one.

>the null reference
Used to construct environments. I forgot to make #NULL (read)able so you'll have to (define! nullref (car (this-env))) at the top-level to get hold of one if you want to build environments which don't cause the root env to be searched and which (define!) will modify.

Here's a half-arsed script to type stuff into qemu if you boot with:
qemu-system-i386 -drive format=raw,if=ide,media=disk,index=0,file=bin/hdd.img -boot order=c -monitor stdio -monitor telnet:localhost:9312,server,nowait

Message too long. Click here to view full text.

PS the UI state (e.g. your colour scheme) is not saved/restored over reboots, since I'm going to be handling all that stuff in lisp eventually and it won't need to be handled explicitly. The entire interface is going to be rewritten in lisp now that I'm at the point that's feasible, including (read-line) and it's line editing.

PPS I (clearly) wasn't paying much attention while writing this. The "the following are primitives" statement in >>585 is wrong and the following are not: nth-cdr, nth, cadr, map, let (though I'm going to make it one (again) for performance reasons), defun!, copy-list.

Programming Thread Zero Cool 08/25/2019 (Sun) 22:28:24 No. 7 [Reply]
This is the last programming thread you'll ever need. Feel free to ask for help or to show off your latest accomplishment.
39 posts and 5 images omitted.
>>250
if your game world's state and sub-objects are all in one big Game object, you can just serialize it with pickle, write it to disk, then just read the file and unpickle it on the next program startup
bump
>>290
kys
I have been bested by a simple challenge and am feeling like a fucking moron. The challenge was to calculate CPU utilization from /proc/stat, for whatever reason whatever I try gives 0%. My approach was something like

P_TOTAL=total_time
P_IDLE=idle_time

sleep a lil

TOTAL=total_time
IDLE=idle_time

DELTA_IDDLE=self explanatory
DELTA_TOTAL=self explanatory

DELTA_USAGE=$(( 100 * (DELTA_TOTAL - DELTA_IDLE) / DELTA_TOTAL ))

I refused to look for an answer, and instead just read documentation and ended up watching some conference talks on cpu utilization, wtf apparently the whole concept is wrong lmao?! and now I'm even more confused.
> inb4 where did you go to school I clearly haven't yet, fgt

Message too long. Click here to view full text.

>>579
I don't know enough about scripting to help, but if you're using ints then loads like 0.2 will be rounded to 0 so try redoing it with floats.
>echo "3 / 40" | bc
<0
>echo "scale=4; 3 / 40" | bc
<0.0750

(564.83 KB 1280x1024 newmotif_safe.png)
Desktop Bread Zero Cool 11/20/2019 (Wed) 18:24:30 No. 533 [Reply]
I spent ages forcing steam to use server side decorations like a good boy. Now I am drowning in pussy.

Rules:
Don't post if you use A*ch
Windows 7 wallpaper changes are more appreciated than Gnome with a few extensions
Only good-looking Macs are allowed (below OSX.10)

What I've To Do:
Replace start menu icon with a cool one
Make date & time background transparent and text dark
Make the highlight on task bar match the colour of the active window's boarder
7 posts and 1 image omitted.
>>540
>>spent ages
>really shouldn't be
<proceeds to talk about steam skins, which I haven't even touched
4chan's /g/ is not hosted on space, dude
>>543
not talking about steam skins, just how steam handles rendering of its UI

>>542
wasnt familiar with the terminology or the use of it
>You seem to think a server has to be an external computer
just not used to it being used in this case of GUIs
>Do you happen to use arch?
no but also when i use linux i don't use desktop environments
>>545
'Aight, sorry for being rude.
>>549
Don't fucking apologise, that nigga just sperged the fuck out!
(1.94 MB 3520x1200 not-much-to-see.png)
The statusbar is only visible while I hold the windows key.

(8.56 KB 250x172 1412084715640.jpg)
Black Pill Thread: Blast from the past edition Zero Cool 10/09/2019 (Wed) 02:22:38 No. 293 [Reply]
Drop /tech/ black pills itt. Privacy has been dead for a long time, what do you do to protect your privacy? Why will the general public never care about these issues and why haven't we done anything yet.
if only those epic 8ch shooters would've targeted evil zaibatsu instead of boogeymen
https://www.youtube.com/watch?v=dNZrq2iK87k
14 posts and 4 images omitted.
bump
up
>>298
>Until someone goes rogue and builds a commercially viable open Risc-V with enough processing power we won't really be free.

T-there's always Talos POWER9, right? And what about ARM? Why does buying a 64-bit ARM machine never come up in these discussions?
>>553
>Talking about processors with a free to use architecture
>Talking about processors without an ME
<Why aren't you talking about the licensed, ME ridden (used as spyware in phones) ARM xDd

'One of the more interesting parts of the paper (below) for me, however, is in Chapter 9 where she deflates the idea that somehow ARM processors solve the problem of ME or that they couldn’t (or don’t) have similar features.'
-'Kyle_Rankin', Purism CSO
http://blog.invisiblethings.org/papers/2015/state_harmful.pdf

I haven't actually read it, so I hope he was right :^)

(248.43 KB 1500x1500 man-with-question-01.png)
Zero Cool 11/18/2019 (Mon) 21:21:31 No. 422 [Reply]
How can I have full privacy and anonimity? Not from the US btw if that helps, I'm from the netherlands
top
>>422
Privacy isn't a matter of government spying, but also companies. Google lurks on 75% of all webpages and collects your information
The short answer? Use Tor on linux with the most paranoid settings.
>>422
Just try to blend in with others. You can do this easily by following >>541
>>541
Use the tor browser bundle to help avoid fingerprinting and disable JS if it isn't disabled by default.

(6.59 KB 1600x441 mysteryload.png)
Mystery Load Zero Cool 10/27/2019 (Sun) 00:25:28 No. 388 [Reply]
Anyone know of a tool which records the cpu load and some useful info about what processes were running?
I know unattended-upgrades ran while I slept, but this seems excessive and I'd like to be able to replay what htop would have shown or something similar.
acct (sa,ac) and sysstat (sar,sadc, and friends) together should help. Mostly sysstat. You probably already have them installed.
(98.58 KB 365x273 bal039ba.png)
(61.75 KB 350x524 bal039g.jpg)
>>420
thanks
cool

(98.20 KB 640x400 download.jpg)
(675.10 KB 1024x768 download.png)
Zero Cool 10/07/2019 (Mon) 19:34:03 No. 289 [Reply]
lol I like how these Linux distros advertise their distro like it's the latest cyberpunk hacker OS
2 posts omitted.
because it's a fun demonstration of configurability
I'm half temped to set up a second DE with all the hollywood bullshit, beeping and booping whenever anything happens, silly animations, five clocks, live graphs of random shit, all the stupid bullshit.
>>315
this
I almost feel like doing a gay rice to piss off op. I don't have time for that
>>289
itt OP is a faggot
>>333
>sage in the subject field
retard
whoops

Zero Cool 11/08/2019 (Fri) 18:18:18 No. 407 [Reply]
Why does nu-/g/ behave like this?
He's right all the infrastructure is controlled by our enemies so worrying about internet privacy from them is dumb.
They don't realize that even if one trusts the current people in power not to abuse that info (HAH), one cannot trust the people who will be in power 20 years from now unless one is psychic.
That data is sticking around forever, storage is cheap. If they had spent five minutes trying to figure out how to leverage temporary political power into a more permanent form they would be far more scared of the state having the ability to blackmail almost everyone with legal&ethical but socially unacceptable things, especially considering how easy it is to whip up a moral panic in order to transform previously embarrassing or innocuous information into blackmail material.
>>410
For example: being openly gay in weimar germany was acceptable, and one had nothing to fear from the state knowing it though it was technically unlawful.
Fast forward a few years and it was a free train ticket.
If nazi germany happened again (or communism, or whatever floats your fuck-those-guys boat) the massive amounts of information people publish about themselves would go from quirky twitter bios to self-signed death warrants pretty fucking fast.
Should a person living in 2019-USA hide being gay from the government? Hell yes. Lie on every form you're permitted to, and avoid the others. Be cautious of lying where it's unlawful, that may be more dangerous in some contexts than being truthful.
>>407
nu-/g/ is nothing but vidya gamerz and phoneposters. That's why.
bump

Delete
Report

no cookies?