#programming
1 messages · Page 287 of 1
damn
Not me
this is what we were living with

If every single person is gonna ping me to say "not me" im gonna have a problem 💀
me

i posted pics of this thing but i used to have one of these just in my sock drawer for some reason
the pics are gone now
Im pretty sure i haveca delided athlon somewhere on my windowsil
wtf photobucket
I didnt delid it, and im not even sure where it came from, but its here
"hey we have your photos still but you gotta pay us to get them bitch"
i probably cross shopped against that thing

the i5-750 is a bit newer
2009
that looks like a 2 core athlon 64x2
during that time, AMD CPUs were kinda falling behind in IPC but for a while they were doing more cores than intel
and therefore were very good budget-er-ish options
phenom II x6 was poggerz i wanted one pretty bad
Oh its from a laptop
Thats why its delidded
yeah that athlon is just a mobile cpu
it came like that
the budget king of 2009/2010
no smd
6 cores 6 threads
ddr2 OR ddr3 depending on the chipset used
$295 msrp regularly found mid 200s
supported exactly 0 AVX extensions because avx had just come out for the first time with plain AVX lol
and then bulldozer happened and it was just over
bulldozer
Bulldozer bulkdozed amds entire reputation
is eyefinity still a thing
why is it not
i forgot about till now
we've become shittier
ati cards used to have a gazillion outputs to support like 6 monitors at once
oh it is still around
nobody uses it apparently
ATI
Nvidea has something for that iirc
@fast pagoda After using Vivaldi for a bit, one thing I've noticed is that the tab bar seems to burn into the screen more so then with other browsers, I'm not sure how this could happen? But it's a really weird thing I noticed
did anyone try gemini 3 and is it actually that good as the people keep hyping it
Why not just use a round monitor? wtf is this
Didn't exist when ATI was still a thing
ATI was acquired in 2006 and curved consumer panels didn't come out till the mid 2010s
I remember when TV manufacturers tried curved panels too, I don't think that lasted long

Well, people will be sitting around a couch at different spots, and curved panels are really only visible if you look at them from the front, you can't see the screen from the side since it's curved
exactly
Geometric algebra 
Did you get new mouse batteries yet Vanor? It's been 8 hours
I did! (i forgor to buy it and bought everything else instead, so i had to go back to the store)
b-burn in???
ive never had anything burn in anywhere on a computer monitor in regular use and im using an OLED for the last year
it's based and yeah before mainstream curved monitors
a more "standard" eyefinity setup would just be the common triple monitor of today really
eyefinity
vanor vanor 
i wanted to ask
because stallman
It mainly happens if I leave it on things like ghidra where there are the borders of panels that never change
someone thought it was a cool feature and added it probably
rrr
but hey i now know when we have a full moon

Neovim is superior
this is a whole thread of edits to lunar.el lol they were spending time on it
ye me learning emacs now 
have work to do so not very actively
i dont wanna use evil mode too
i like modal editing but maybe emacs will change that who knows 
Im drunk rn but im still refreshing my vulan knowledge
once you get used to the more complex emacs key bindings you get to look absolute schizo as you type a long series of emacs shortcuts with nothing seeminly happening on the screen
Gotta keep up the grind
and then all of a sudden, you have pasted 4 different bookmarked regions into the current file
Because NeoVim is superior 
For what?
Colemak dh
i like vim keybindings but i dont like neovim 
oo me same
emacs probably emphasizes parts i dislike about neovim 
(the sheer jank)
Im using a custom dactyl manuform keyboard
but surely will be worth it 
Though I still can't code as fast as id like to
So im hoping for a brain computer interface one day
switching to colemak taught me to use tab completion 
Lel
vim this neovim that where is neurovim
I can't wait till I can code just through thinking
you people couldnt care less modal or modeless you just dont like new thing 
@fast pagoda Which is better, emacs or NeoVim
vscode voice mode 
emacs
Na not the same

i say emacs because it is not modal
Like instant refactoring especially

Like with switching keyboard layouts its much easier
But with vim its a project of its own
Like with a keyboard layout u can slowly switch keys at a time
But vim its all in or nothing
i just switched it all 
because a keyboard is your entire interface with the whole computer
without even printing a cheatsheet 
If im learning a new layout I do pairs at a time
so you cant really just escape by not writing shit in neovim for a whille
Its more efficient given i don't have photographic memory
Tho for vim ive been using those vim games to learn
and then look at the keyboard given the memorized char sequences i remembered
This is why NeoVim is better, emacs has no respect for my fucking eyes evilFlashbang
I never really look at the keyboard
alt+x customize-theme or something
it's beautiful
A list of old and new Emacs Themes.
I try to use vim keys in my current ides
I dont like vim as an ide but I like its keys and commands
tf is melpa
The largest and most up-to-date repository of Emacs packages.
the buzzone
extension store tho basically
How do I use it?
Installing Melpa Stable
To use the stable package repository instead of the default “bleeding-edge” repository, use this instead of "melpa":
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
Installing a package
To install a package run M-x package-install. See Package Installation for details about that and Emacs Lisp Packages for even more information about Emacs' package manager.
Enable installation of packages from MELPA by adding an entry to package-archives after (require 'package) and before the call to package-initialize in your init.el or .emacs file:
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See package-archive-priorities
;; and package-pinned-packages. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
Note that you'll need to run M-x package-refresh-contents or M-x package-list-packages to ensure that Emacs has fetched the MELPA package list before you can install packages with M-x package-install or similar.
i did this out of order
just for you
enjoy
or alternatively
The largest and most up-to-date repository of Emacs packages.
i have a severe dislike of the lisps use of ;; for comments

you have to edit the emacs init.el (or .emacs) config because it loads it fromthere
you cant just run it in bash
i like the yolo approach thoguh
https://github.com/melpa/melpa the gh has a smaller guide
Where is the init.el file?
because it's not in home, and neither is .emacs
it uses ;, ;; is just like /// or whatever
~/.emacs.d/init.el
~/.emacs
~/.config/emacs/init.el
maybe
ls -la ~/{.emacs,.emacs.d/init.el,.config/emacs/init.el} 2>/dev/null
you can run this
you also dont have to do any of that you can just use builtin themes
or that too
but but but muh 33 pages of themes
and all the other addons tho
it's like the whole vscode extension store on melpa toast
Calendrical Calculations is a book on calendar systems and algorithms for computers to convert between them. It was written by computer scientists Nachum Dershowitz and Edward Reingold and published in 1997 by the Cambridge University Press. A second "millennium" edition with a CD-ROM of software was published in 2001, a third edition in 2008, a...
this is why
stallman yeeted it into emacs because emacs is an os brah
calendar.el was written by these authors tho
yee emacs can load from either of those
it had no output at all which means there were no results or only errors which then got blasted to /dev/null
so that file is le not there
you could make one
that's how these things usually go
if it aint there you make it
Where do I make it if there are many possible locations though?
wherever you want
free will

editing my .emacs file with nvim
-# 2>/dev/null thing i had never used in my life till i saw coding clis using it all the time
wow my name is really close to afunyungpt right now too
🤖
alright
@fast pagoda
im mad because i was like i didnt chatgpt that but then i went back in browser a couple pages and it was the gyatt damn slop mode that i actually got the info from so it WAS
although this thread is right below that https://www.reddit.com/r/emacs/comments/1e1k8jn/fun_fact_about_calendarel/
M-x means alt+x
Problem
That shortcut is taken
I'll just change the NVidia one to Alt+Shift+X
brb
prioritizing an nvidia overlay keybind over anything else is crazy work i was concerned
And Alt+Z is the other graphics card
Which, I didn't realize until now had an overlay
2 gpu vendor shitty softwares 
nah it just got bored and could tell you are not libre
Minor spelling mistake; it's over AINTNEURWAY

I mean, it's like neoVim in the fact that it's worse then vscode because it doesn't have autocompletion or emmet, and is therefore, much slower
emmet? 
ah
nvim has cmp
emacs has uh probably something even more powerful
just not builtin ye
The html completion things that can for example turn
.form>input#input$*2
into
<form>
<input id="input1">
<input id="input2">
</form>
ye but you can customize nvim and emacs to same extent
in fact you can use emmet as is in nvim or emacs if you really want to 
After trying for almost half an hour, I can say that installing a plugin manager for nvim is beyond my skill level
theres plenty of emacs and nvim distros
for emacs - spacemacs or doom emacs
for nvim - lunarvim and erm idk any other ones but theres plenty i think
oh nvchad
name so bad reeks of reddit
It looks good though
mhm
either way would only use these as starter configs if you want to get into nvim or emacs but are too intimidated by the amount of customization required to get to a modern config 
if you want something that works out of the box helix or vscode are better
konii uses micro you can try that too
tf is helix
kakoune but written in rust and without plugin system (meaning everything either works out of the box or doesnt work at all)
No plugins 
yee i mostly havent felt the need for them though 🤔
meaning
you still have to learn how to configure emacs or vim you can just postpone it
so does helix
and any modern editor really it just isnt builtin for some
idk, I just think I like micro
If it's in the terminal, I prefer simplicity
vim is simple too
perhaps most widely ported editor on the planet
You can also technically use tee as a text editor
i reject your comparison 
zub zub

I'm gonna sleep now, gn
found a bunch of old screenshots so im leaving this here
** **s/found/bought/ 
lmfao
they held them hostage
$4 was worth it just for the collection of nigel thornberry gifs alone
i canceled with prejudice, sent a very annoyed message about that and deleted the shit out of the account now though
im sure theyll be offering a japanese management apology soon enoguh
smashing

Well my secondary monitor is dead
switching to your primary is faster than reloading
Wa


poor fan

kind to some, but not to thee
✅

neuroexpl ode


🐛
neuro already insect
regular

ye 6 legs
2 antennae
exoskeleton
hatch from egg
mister vedal, you're not the father

evolved
protect against enemies
and underwater pressure
sustain up to 5km depth

hello
im relearning python again
i made this countdown thing
but idk how to include milliseconds
it seems to always either be off sync
or just doesnt even count right
i want the millisecond part to count down from 99 to 00
hence the sleep being 0.001
s shouldnt be %60
second to milisecond is 1:1000
m is second % 60
h is m % 60
also wait its not %
why %
it should be /
so ms = x
wait no
okay i got it
ms = x % 1000
orr no

so for example you give it timeinput 60 so its 60000 ms
ms should be x % 1000
s should be (x / 1000) % 60
as in it doesn't sleep the exact amount you need?
i think everything is fine except ms being x
ms should be x % 1000
and h should have % 24 in the end
it'll always be off-sync technically because in reality you need to sleep for slightly less than a millisecond but i doubt that's much of an issue here
though i guess it'll add up
however measuring time with sleep is trash you need to access clock
and ms = x... and multiplication by 0.001...
start_time = time.time()
old_time = time.time()
while (old_time < start_time + timeInput*1000)
x = time.time()
if (x != old_time)
ms = x % 1000
s = x / 1000 % 60
m = x / 1000 / 60 % 60
h = x / 1000 / 60 / 60 % 24
print(sameprintyougot there)
old_time = x
time.sleep(0.0001) #to check it every 0.1 ms
something like this?
fixed
no its wrong hold up
you could not wait at all, but then you will use all cpu for this loop
- 0.001 and / 1000 is the same no?
yes but you definitely forgot %1000 for ms
try this
they're supposed to be the same but floating point
i prefer not to use them as far as it's possible
kinda crazy
yeah i fucked up
sleeping for an exact amount of time is a deceptively simple problem unfortunately
okay so time.time gives seconds for some reason
you want perf_counter_ns probably
this works
import math
import time
timeInput = 60
start_time = time.time()*1000
old_time = time.time()*1000
while (old_time < start_time + timeInput*1000):
x = time.time()*1000 - start_time
if (x != old_time):
ms = x % 1000
s = int(x / 1000 % 60)
m = int(x / 1000 / 60 % 60)
h = int(x / 1000 / 60 / 60 % 24)
print(f"{h:02}:{m:02}:{s:02.0f}:{ms:04.0f})")
old_time = x
time.sleep(0.0001)
its still off synce but its alright
is it
oh wait it repeats it
okay round helped
import math
import time
timeInput = 60
start_time = round(time.time()*1000)
old_time = round(time.time()*1000)
while (old_time < start_time + timeInput*1000):
x = round(time.time()*1000) - start_time
if (x != old_time):
ms = x % 1000
s = int(x / 1000 % 60)
m = int(x / 1000 / 60 % 60)
h = int(x / 1000 / 60 / 60 % 24)
print(f"{h:02}:{m:02}:{s:02.0f}:{ms:04.0f})")
old_time = x
time.sleep(0.0001)
you dont need 04.0f for ms actually you want 03.0f
also it doesnt stop after a minute for some reason 
Because you're using sleep which is not absolute
also its counting up
Time-oriented programming is massively difficult
i see why
import math
import time
timeInput = 24*3600
now = round(time.time()*1000)
start_time = now
end_time = start_time + timeInput*1000
old_x = end_time - now
while (now < end_time):
now = round(time.time()*1000)
x = end_time - now
if (x != old_x):
ms = int(x % 1000)
s = int(x / 1000 % 60)
m = int(x / 1000 / 60 % 60)
h = int(x / 1000 / 60 / 60 % 24)
print(f"{h:02}:{m:02}:{s:02}:{ms:03})")
old_x = x
time.sleep(0.00001)
maybe not very optimal code
i dont like initial old-time assignment
Especially if you rely on sleep() which relies on the OS scheduler which can resume the thread any amount of time after the initial timer runs out
this should be fine i think. doesnt print 00:00:00 at the start
counts down and stops as it should
0.1 ms precision
is there a way to make it more optimal
at work we are using cyclic tasks for controllers but idk how precise they are
there probably isnt much you can do except just checking time with max resolution and do things when the time has come?

actually it doesnt load cpu much if you make it 0.00001 for sleep
which gives 10mcs precision
in fact i saw no difference
how do you abbreviate microseconds in english 
oh its that mu symbol
µs
why does it count too fast
nvm its because terminal was cropping its output weirdly
no its actually weird
its probably terminal lagging because 1000 lines per second
A good timer is usually done with processor clock interrupts.
On Linux/POSIX, the C timer_create() function replicates this behavior on the OS level.
I'm not sure what the equivalent would be in Python, so don't ask me.
how does cpu clock work
how doest it know that 1ns passed or whatever frequency it has
or how is it called
system hardware clock
The RTC (realtime clock) has its own counter. I'm not exactly sure of the specific internals, though.
oh right its rtc
>at least 10 MHz
so it runs on fixed 10mhz frequency and does something like this essentially?
10mhz is... 10k ms... 10 us?
i guess its just one of implementations and there are more precise variants out there
i wanna say you're off by a couple orders of magnitude but i also don't feel like verifying that baseless claim 
atomic clocks in a pc xd
looks like it's 100ns per clock cycle for a 10mhz clock hmm
Visit https://www.squarespace.com/LTT and use offer code LTT for 10% off
Use code LINUS and get 25% off GlassWire at https://lmg.gg/glasswire
By using an Atomic Clock the clocks between different computers can be synced to within a dozen nanoseconds, and with that performance can sky rocket.
Check out the Open Compute Project: https://www.ope...
Guys, I wanna get a new phone, I have an iPhone 13. But I was considering selling it and buying a used Samsung or something. I was thinking S23 Ultra. But idk.
oh right you have to divide it
so its 10kk per second, 10k per ms, 10 per us, so one every 0.1 us so every 100ns
since when you can mouse scroll to zoom windows desktop
how do i reset it
kind of convenient though 
check your ctrl
or shift
i remember doing that in 2010 on windows 7
so at least that old
first time i noticed it 
now make it controllable 
what is this
well nvm not C++
what's the goal here
yeah
nvm problem solved

Don't worry about types, that's Python
Python just doesn't really do types
i wanted to make it so the "1 2 3" input can just concat to the tuple's name
cant you just assign whatever to whatever and typecast it like that
you know how there are 3 tuples, i want "items" as the base and whatever number i input concatenated to it can just access the numbered tuple
Dynamic types moment
but i realized i could just put all 3 tuples in one tuple and problem solved so
typecast into a variable name?
you mean eval()?
explicit casts are still checked at runtime and will blow up in your face
if you don't understand what it's doing, maybe
it speeds up progress
depends on how you can solve situations when chatgpt cant help
maybe im wasting time but i have this weird principle of not touching AI when coding
even the AI search result i cover my eyes
Yes
You will not learn anything
ok
i think you actually do learn
but not the programming itself
you learn how to make ai give you satisfying results
Yeah all you learn is how to optimally prompt a chatbot
and see the problems it creates
I might be better off just watching videos on C# ngl
bro code is my goat
i recommened him

ok
my stance on the ai bubble
crystal based clocks usually. but they usually can't hit beyond specific speed so that's where clock multiplier comes
oh yeah, for modern systems its usually done on separate chipset
then CPUs tend to dynamically multiply it with clock multiplier
its also why some motherboard for 12th gen intel can have external clock generator for the BCLK (this is how people overclock non K CPUs back then)
do you short $NVDA and $OPAI
i already sold mine when its at $206
lol
its slowly going down now.
eh the bubble is inevitable
all the brute forcing funds is genuinely just obviously unsustainable
90% of gamblers quit right before agi drops
she unwrap on my expect till I panic
i want to find whoever made WinAVR and sink their PC motherboard in water
rewrite it in crab
why the hell 15 years after the program was made it still rewrites all system 'Path' variables instead of adding on them
yup
at least the system path
the user path is still there
no recovery, no backup files
cinema
She code on my 80 crabs until I logic gate???
Wild compliment 
That kind of praise is how you know you're dealing with a very smart dude
because I am kinda learning unity a good bit I might as well get the programmer role
Another great reason to use linux on your non gaming system
I love Python dependency management
So many projects start their homepage with just "to install: pip install [our name]"
And it never works
You always have to edit the source code
Or dig through the timeline of the docs to figure out in what version they deleted the code that the project you want to run depends on
And that is just for running 1 project
Forget about running 2 projects with the same Python installation
I LOVE RUST (unironic)
are we going to ignore +4 cents prise increase like that
no like, is shifting the blame from hp for not paying 4 cents to windows for le being le bad ok now
asking why the royalties went 4 cents up would be better but who cares
shouldn't there be a way to fix that without upsetting daddy bill anyway
So true
Python dependencies is a mess
how
it works every time for me
i think that's your config lmfao
Nice
probably could get better music but I never done much unity before so all I thought of
what the hell are you installing that it doesnt work
ugh taking so long to make it become exe
I assume the context is installing Python software that doesn't have a requirements.txt
Anyone else actually run the four hour panel protect cycle on their oleds?
I don't have any oleds
I see a lot of people saying they don't bother but I just see it as a sign I need to take a break and go touch grass
can I send EXE of unity "game" I made in here though I feel like discord file size limit the biggest thing that makes that hard to do
when exe is made
I'm excusing neither
Remember I said its a good reason to switch to Linux
Should have used Godot
Godot stuff is plenty small for Discord
godot?
Though imo a company selling a "pro" line of products should cough up licencing fees to ensure their users get a "pro" experience even if it is unreasonable
At least some of the issues came from dependencies releasing updates that break things. The project I want to run doesn't specify an upper bound for versions because they can't predict when breaking changes are going to be made in the dependencies. Dependency publishers are partially to blame for this. For example transformers announced that they were going to delete BeamSearchScorer in version 4.61 or something, at least in the 60s. But it got deleted in 4.57 already. The project I want to run relied on it so I had to manually downgrade the package. But the version below gave another error entirely. Now I found a version that only gives a few warnings and slightly erroneous behaviour.
You don't know of Godot engine?
is godot easier to use then unity
It's much better than Unity
Yes
oh
Needs no tutorials, the docs are great
oh ok
And it doesn't have the obscure bugs of Unity
oh ok
there is also no cut of money they take at certain point
of course steam and such does
Well yeah Godot is an open-source engine
yeah
so not really owned by some big corporation

Pretty much
uuh the music didn't go into the unity exe
anyways this is what game looks like if anyone wondering
if it even works lol
oh it does
even without the crash handler and stuff
anyways gonna try godot
I don't think it'll work without any runtime 
A Godot EXE would
cool
Godot executables are self.-contained when you pack the assets into it
getting godot now
Fun fact: the Godot editor is made in Godot
There's code in there but the language is very easy
cool
The language is essentially Python but better
not as easy as ruby though

You can simply read the docs if you need to find how to do something most of the time
cool
godot maybe is best because I am not thinking of making game to make money or anything mostly just for fun
also godot has a vrm plugin so thats nice
worrying about using that later on
you want us to read??? clearly you're asking for too much
Wa
Hrmm...
Treat reading as a sport. You get better over time. Then one day, you will suddenly notice that you can read for more than 5 seconds.
What does pb mean?
I thought you were specifying the atomic number of lead for a second
personal best
I got a new personal best: 5.237999 seconds.
Yes
Books have words.
Have you ever read an electronics schematic by any chance?
nope
Those have a bunch of symbols.
And I've concluded that the ancient Egyptians may or may not have had something to do with the creation of the first electronics schematic
I mean, if you put them side by side, they do look similar, right?
idk
I'm just joking
I don't actually think Egyptians had anything to do with it :p
How do you get image perms?
omg it's semicolon
Hrm....
Man, Rust programs reaaalllyy read like Egyptian hieroglyphs. Who made this language? What were they thinking???
graydon hoare made rust because he was frustrated with memory issues in c++
clearly you haven't seen malbolge
and drew from the wisdom of multiple systems
clearly you haven't seen APL
not all of us are ancient like you shuni
traits, zero cost abstractions, borrow checker, lifetimes, bounded polymorphisms,
Every time I see a < or a >, I think of the horrors that a type system that I can never possibly wrap my head around, with arcane manipulations of data
I'm not ancient 
all older concepts drawn together to make a more safe and ergonomic performant language than c++
Man, I start yapping about Rust, and all the sudden #programming comes alive!
you overthink before trying to understand
just wait until triangle-man starts talking about how he made his triangle app run at 32000fps by removing everything from system32 to reduce bloat
I wish I could unsee malbolge
I'll start yapping for real:
The thing about types is... They don't exist in computer hardware like they do in Rust.
The Rust compiler targets a theoretical machine that doesn't correspond with current architecture.
So the type system comes off as very strange to me.
yea the sentence you just responded to still applies to your thoughts: youre projecting an overestimation of your own grasp of why things exist or what things must be to justify themselves
you aren't approaching from "this probably has good reasons, I want to figure them out"
which is the healthier mental approach
wat
dw I'm done
strong typing isn't meant for hardware architectural parity it's meant to prevent whole classes of runtime bugs and make maintenance easier
Or even "what made them think of this reason in the first place?"
I'm not advocating against types altogether, compilers/interpreters will need to know what data it is dealing with after all.
I just find Rust's type system to be a little strange.
lifetimes are to avoid a gc existing, traits are a superior architectural construct to inheritance
what you're referring to has existed since early 2000s with .NET
I don't know how Rust works, so I find it strange. I don't know what else to say 🤷♂️
I'm saying things that are glimpses into how to understand and you're shrugging, which is fine ig? I just kinda assumed maybe you'd have any level of enthusiasm in wanting to understand something you dont but guess not
We should all switch to using .net 
types are a social construct
The hardware needs to be instructed on how to deal with them.
Yes. They are extremely related.
related as in... hardware has no idea what a type is? it just gets instructed what to do with bytes?
how can it be called a relation
Rust tends to have weird, explicit and expressive syntax. if you come more from nonfunctional languages, it can look pretty odd and out of place. But I find that Rust doesn't have that much magic in it, everything starts to make perfect sense in time
it doesn't have to know what a type is unless you're type checking at runtime (e.g. dynamically typed langs like python)
it doesnt have to know what a type is
in general
so i guess nobody tells it what a type is
take this byte move it there
compare jump
There are a bunch of abstraction layers.
These cascade down into machine code eventually.
In C for instance, if you say:
int a = 45;
It will reserve a spot on the stack, which will be set to 45. The compiler keeps track of these spots, so that the instructions that come out will execute on the right data.
unless you're talking about RTTI then hardware only deals with signed and unsigned integers, and then a little bit of strings, vectors and arrays.
yes but where is hardware here
compiler yes
The slot on the stack is part of the hardware. In order to set a to 45, you need to instruct the hardware to do so.
even then the hardware doesn't "know" about types, it's the interpreter
I guess you could argue that bytecode does deal with types, but there's not any direct correlation with the machine code there
yes so it sets high byte to 0 and low byte to 2D
without even knowing why
and what it represents
int? part of float?
2 different chars?
doesnt matter
where are types here
erm, actually x86 does know about structures as it's addressing mode allows for indexing into an array of structures 🤓 👆

An int type in C, corresponds to a 4 byte integer, which is equivalent to an x86 DWORD size.
So it converts to something like:
MOV EAX, 45
MOV DWORD [RSP-4], EAX
It is the compiler's job to pass this information to the CPU.
The CPU doesn't recognize types, but it does recognize word sizes.
okay
now show me int here
a type
It doesn't exist at the machine level.

ok and now this
or is hardware not a machine level
What do you think a DWORD is?
DWORD
dword is 4 bytes
🤔
Depends
so by types you mean dword, word and byte
No.
Those are not types.
we don't talk about those people, the ones who think a word is not 16 bits
Those are word sizes
and word is the type
ARM
"word" is just meaningless these days
i work with words at my work
Do you use the Win32 API?
i make programs for industrial controllers
he's an embedded kinda guy
Technically, the x86 word size is 16 bits.
It isn't entirely meaningless, but nobody uses the term anymore, because it was historically confusing.
✅ stupid name
just use the size in bits
words
he hears things like "malloc" and "throw std::runtime_error()" and freaks out.
is this true, does it have dword keyword
i thought its registers and shit
eugh
Right when I started I had to support some code that ran on a DSP with 40-bit ints
Now it's just normal 64-bit ARM Linux devices.
it's whatever the platform wants it to be AFAIK
intel syntax uses explicit WORD, BYTE, DWORD etc. AT&T syntax uses different mnemonics instead like movl or movb or movq
okay and now back to rust

WORD is supposed to be the "native" size and x86 started as a 16-bit architecture
Now it's just silly
Why would you do that to yourself, going back to rust
i mean this message
I LOVE RUST

why must async Rust lifetimes suck so much 
GC 
Yes.
Modern x86 processors have the following word sizes (NASM):
BYTE - 8 bits
WORD - 16 bits
DWORD - 32 bits
QWORD - 64 bits
TWORD - 80 bits
OWORD - 128 bits
YWORD - 256 bits
ZWORD - 512 bits
I know a guy who's thinking of trying to abstract out lifetimes at cost of performance into a sort of rustscript lmao
I'm about to have a WORD with the people that made these names
x87, the old floating point ISA
The FPU is a funny thing...
It has an 80-bit maximum word size.
word makes sense if you think about it as a combination of 2 chars.
but its actually a pair of bytes 
so 2 characters make a word
the problem with async is that the function can run an indeterminate amount of time, including forever, so you have to make sure that the lifetime never expires before the async call returns, which might be never
already exists, kinda 
https://github.com/rhaiscript/rhai
but was char a thing when they invented word name
It still exists but most stuff uses SSE/AVX with normal 32/64-bit fp instead
not exactly Rust but looks like Rust
close enough 
Async is a lie from big CPU to keep you busy
Some computers had 18-bit words, other computers had 36-bit words.

It was a very confusing term
this clarifies why then didnt call it double-byte for example
Bytes are their own independent size
i assume byte has always been 8 bits, right? 

non 8 bit bytes?
Yes
the details of it make sense, it has to work within Rusts constraints after all, can't rely on an allocator existing for example
just sucks that it the implementation of it is the way it is
it feels like a bad abstraction, there's a lot of compiler magic involved
oh brother you wouldn't believe how bad standards can be sometimes
Although some older hardware used halfwords, which were 9 bits on some computers. They were used to store strings/char arrays.
And heck... Someone at Honeywell & someone else at IBM, decided that variable word sizes should be a thing.
no wonder ibm failed
ibm didnt fail theyre just lowkey hanging out
wait did they
Don't worry, IBM realized that was a bad idea early on, before they made their fancy S/360s
founded in 1911 
Man, 1911s AI was hip. You should've seen it.
I switched one of my monitors to be vertical, and I don't think I'll ever be able to go back.
I can read so many log lines now!
wow ur right i should do that
nah is till remember 1911s ai like yesterday
the secret ingredient to the chess ai was the chess grand master inside of the machine
The Mechanical Turk was peak AI until the Twins came along
modern beta ai tries to make the artificial intelligent. old based ai made the intelligent artificial
cloning repos via ssh from my laptop and back is so nice
and having each other as remotes
thank you linus
This morning a bunch of advertisers in the eu were botting views, and i had to investigate because it was causing abnormal traffic on the backend
Can't even rest on a weekend
My fucking router somehow messes with vpn
Phone through wifi with vpn = nothing loads
Phone through wifi without vpn = everything loads
Phone through mobile data with vpn = everything loads
Pc through router with vpn = everything works
I cant wtf is this
Is it vpn app being stupid and not working properly with wifi on phone

That happened to me but the other way around. Phone can connect through both wifi and data with and without vpn, but pc couldn't connect when vpn is on.
Fixed by messing with the firewall settings
Do phones have firewall
probably not
routers have firewalls/ports that can block this kinda stuff. an easy solution would be to activate UPNP/PCP (automatic port forwarding) for your phone in your router settings, otherwise you can compare settings for your PC with your phone in your router
If someone needs it
I modded Xtra (https://github.com/crackededed/Xtra) with AI and added mention on tap to username in the chat.
U should clone the repo, setup gradlew and Android SDK.
After select a branch like origin/fdroid and use pinned python script for repo.
After just build apk with gradlew.


ty now im considering rewriting my whole backend again
Did you know you can fork the project (and maybe turn this into a pr)
wtf is pijul
Oh, I've searched this before huh
pijul vcs on solid algebraic foundations 
ye ive read up about it
git vcs on solid "hacked together with duct tape" foundations 
tbh its actually not that hard a replacement because i modularized
what im building actually has nothing to do with like project versioning or actual git per se
its just the storage backend for a wholet hing
git stores entire file of every version it has ever been at
while pijul stores every single line that has ever been in a file only once
and preserves line identity across commits
line ordering is just a relationship between lines
it is what commits change

me think
if you have specific needs
better make your own vcs
git optimized for small files
pijul optimized for line-by-line files
neither particularly optimized for specific file types
i think git may end up being better for a lot of what im doing (arbitrary diffing on arbitrary websites and arbitrary fiiletypes and just hashing the original form + diffs) but im curious if i can get a hybrid architrecture to work
im not gonna invent a new one i dont have time or vision for that unless it spontaneously comes to me
for diffs you dont need git
i need content addressed everything and append only event storage either way
thats why it mapped naturally

unrelated but
@faint sandal how often do exposed .git directories occur in your experience
genuinely thank you for name dropping pijul this patch architecture is really cool
yee
designing systems to have the algebraic properties you want is very beautiful
old style unixy tools dont really care about it
but i hope the concepts spread all across the industry
i will help try
its also good for distributed systems
https://www.youtube.com/watch?v=R2Aa4PivG0g
https://github.com/iu-parfunc/lvars
https://hydro.run/
yes im actually building distributed systems
so i really owe you a lot
it seems like a viable drop in
i recommend watching the yt video at least 
will do
its not theory heavy
lmao theyre sponsored by cerner
im trying to take down cerner
im watching the yt vid now
i have a very research mindset
so this is compelling
hydro something that directly originates in alvaro's research
lvars separate but has novel concepts that are of personal interest to me 
what are those concepts called
yea what hes saying is very much in line with my philosophy
you mean what im interested in in lvars? 
im interested in integrating monotonic data structures into conventional programming languages in clean ways
exactly what lvars does
define monotonic here
just watch the video first 
not too common not too rare
fun fact i already have lens laws tests in my repo
bidirectional lensing in order to verify my pdf diffing system
strictly speaking i'm only interested in semiring-like structures because of their nice properties
but many non-strictly-semiring structures can be massaged just the right way to be able to work with them in similar ways
like opaque handle allocation

apparently these are the semi-ring like things in my codebase but im not architecting at low level so i cant exactly force things
I just dont have a time for it rn
I only made working way for it
claude also agrees with you on monotonic logic in geenral
i asked in the abstract which concepts from computational theory seem underrated in application
im now looking into changing my collab model to patch as well and federation model to CALM
session types just linear types
mostly useless in practice
yea im not touching that one
exist in rust in form of typestate pattern
algebraic effects are cool but im not sure the overhead of delimited continuations is worth it 
algebraic effects are just dependency injection with less boilerplate anyway
and they are usually implemented in a very sequential form as means of adding mutation to an otherwise pure language
meaning language have to be strict
dont like the way they are implemented
me think better approach powerful metaprogramming with ability to compile different versions of same function without excessive boilerplate
calm funny because it shows that distributed systems are just mutually recursive functions computing fixpoint over each other 
obvious in hindsight
but good to know
a lot of elegance is obvious in hindsight
thats why its so satisfying
once you see it everything else looks silly
so true bestie
50595 store paths deleted, 262596.93 MiB freed
pov: you forget nix likes to copy entire project folders into the store, including build folders
that reminds me time for my weekly cargo clean check
I love having to manually clean many different caches
ok itd be dumb to clean now but hey thats not as bad as i thought
just do
[build]
target-dir = "/tmp/dev/rust-target"
I got that in ~/.cargo/config.toml so I don't get persistent artifacts in the rust target dir―only have to grab them again after a reboot
i think persistent artifacts speed up some repetive testing in mjy workflow sometimes and i dont need the disk space so im good for now
you cache it while you're working, but they don't stick around all the time
i only cargo clean if i find I no longer have ram―usually after I've used over 96GB of memory
Because then I only have 32GB for the rest of the system
thats why you make sure its git: and not just file: 
file gets copied as is
git respects gitignore
or maybe thats flakes only
er non flakes doesnt copy anything at all maybe
wrrr
theres something like
i forgot
something like lib.filterSource or whatever

builtins.filterSource
this is for
non-flakes
with flakes+git its useless

theres also lib equivalent
lib.sources.cleanSource
lib.sources.cleanSourceWith
yeah i have path:. in the template because sometimes i just want to have my own gitignored flake 
forgot to change it so it pulled everything into the store
wrrr
should probably just not include the .envrc in the template tbf
I think we've also seen unprotected gitlab instances
yeee happen a lot
thats how gosuslugi code got leaked iirc 
russian government portal
but yeah bare git folders ain't too uncommon but it's not like we stumble upon one daily
ones that matter anyways
makes sense i guess
only happen when deploy manually
sometimes they're the result of post-exp and the attackers making the folders visible
you also just qualitatively improved my fuzzy search because i can afford more tokens now
WOW It has taken 7 years for them to bring those same ads standard protections to the Android WebView component.
Better late than never i guess 
Are you over 25
4
6
2
No
does anyone know the regex for git tag names?
chat
i take back what i said about python
i know im a c++ glazer
but honestly python's syntax is lowk kinda clean
im rubbing up to it
Goodmorning 
Good morning indeed
bad morning 
bad morning is crazy
bad morning 
it was raining loud as hell outside this morning
So?
Rain is the best
Do you have a weak roof so your house becomes like a tin can? Or what is the problem?
cuz it's a terrible day for rain
"lowkey" is crazy
maybe when c++ is your baseline 
Then be glad it happened in the morning instead of when you're outside
my steak is too juicy and my lobster is too buttery
it sucks once the snow has fallen though
Snow sucks to drive in, but besides that i dont mind it
snow is snow
regex 
regex NOT cute 
my problem is that it nukes my ability to do anything within a reasonable amount of time
[a] - character a
[^a] - anything except a
[^] - anything
[^^] - anything except ^
NOT cute 
and multiple dialects 






