« first day (4378 days earlier)      last day (763 days later) » 

00:36
mmmm
@RydwolfPrograms oh dear
Although in about 16 hours I may just have about as close to petabytes of RAM as anyone reasonably can get :p
Access to a supercomputer or visiting a RAM foundry?
01:29
@Adám Alternatively, destroying every other piece of RAM in the world :P
 
2 hours later…
03:11
@user Nobody needs RAM anymore. CPUs have caches far bigger than RAM was not too long ago, and modern SSDs are significantly larger than any reasonable computer's RAM while being faster than most DDR3
Unless you're a filthy centrist, you don't need both moderate speed and moderate capacity. SSDs have all the capacity at acceptable speeds, and cache has all the speed at acceptable capacities.
I have single handedly revolutionized computing.
@RydwolfPrograms For real?
The second part, but not the first. Please don't throw away your RAM :p
Okay, I seriously thought CPU caches had somehow gotten to 2-4 GB
But yeah, PCIe 5.0 SSDs are gonna be able to hit around 11 GB/s IIRC, which is around what mid-tier DDR3 can handle. And the Ryzen 7950X3D will have 144 MB of cache, which would've been normal in like the late 90s I think
> not too long ago
03:17
It's relative okay :p
144 MB is nothing to sneeze at
Wouldn't surprise me if for most non-gaming applications an M.2 SSD with a big CPU cache and no RAM would be pretty similar in performance to a typical setup
There's probably a good reason people haven't replaced RAM with SSDs
Well yeah, there's a lot of them :p
Like the fact that the latency is like hundreds of times higher despite the similar throughput, or the limited endurance of SSDs, or the performance downgrade being entirely unnecessary. But as comic book villain Rydwolf, it is my mission to destroy all RAM, because my utopian view of the future is surely correct :p
I was about to say that a system where you had a reasonable amount of RAM with an SSD as a backup for additional capacity would be cool but then I remember 1. swap exists and is that and 2. that's basically just using the RAM as another layer of cache
Oh also that ridiculously high speed for SSDs is only for sequential read/writes of large chunks of data, for lots of small things it's like a hundredth of that
(this is a PCIe 4.0 drive, but still)
Thinking about grabbing one of those 7950X3Ds when they come out if there's not much of a single core performance drop compared to the normal 7950X
Although I don't need it one bit lol
@RydwolfPrograms Rydwylf: Bane of Good Practices
 
1 hour later…
04:44
I now find them sent into comment
Whattt....
Mods can do that, right?
Although why are there 4 of them?
B/c I posted several times
05:46
@RydwolfPrograms So did anyone run old OS totally on cache, or new OS on CPU with lots of cache? no RAM no disk
06:26
0
A: Sandbox for Proposed Challenges

l4m2A map maps keys(string) to values(string). Basic operations includes: Set. Given a key and a value, store it. Get. Given a key, get the last value stored into this key, or ""(empty string) if nothing ever stored into. For some reason, sometimes keys looks same but need to refer to different obj...

07:10
Forget PHP, I think Bash is actually the worst practical language ever
07:28
Bash is glue
07:42
i just figured out how to play music with termux
aplay?
They say Python is glue
They would be wrong
python is glue compared to java but it's waaaaaaay less glue than a shell language
or rather it's a relatively normal language that you can also use for glue if your glue is just a bit too big for a shell language for reasons like the above
@mousetail Zsh is just Bash but even worse
07:55
If bash is glue then python is steel pipe. Yes it's commonly used to stick other things together but it's a useful construction material even on it's own
zsh is zipties
if bash is glue, then zsh is tar
Hmm that makes more sense indeed
wtf i want to learn zsh now
Just use Zsh as your shell and use Python for all your scripting
> practical language
Don't you go assuming things
08:52
Are golfing languages or adjusted compressed non-golfing language shorter
Golfing languages for the type of challenges on this site, for larger real word programs I'd guess compressed practlangs would be shorter
Fun fact: In real life you don't have flexible IO
non-golfing languages usually have variable name and we usually use a small part of them
What do you mean?
 
2 hours later…
10:39
Is there a challenge for recusive best of 3 yet?
wat
For each group of 3, replace it by the most common element. Repeat till only 1 remains
(1,0,0,0,1,0,1,1,1) => 0
what if tie?
Tie is impossible
Since the groups have a odd length
OK it's binary input
10:44
Yep, like in a best of 3 game
11:09
@RydwolfPrograms What's this?
0
A: Sandbox for Proposed Challenges

lyxalSalacious Bacon Tripod code-golfrandomstring In a certain chatroom, we like making acronym jokes about the build tool we use called sbt. While it usually stands for "Scala Build Tool", we aim to come up with all sorts of meanings, such as: Stupid Brick Teeth Sussy Baka Training Shady Blue Touris...

@cairdcoinheringaahing sandbox was broken earlier
it was a test post
transcript starts here
11:52
so yesterday morning I may have put the bread in the fridge instead of the pantry and forgotten about it until this morning
guess I finally get to use the "Defrost" button on my toaster :p
@mousetail ngn/k, 25 bytes: (~1=#:)((1<#:(0=)_)'3':)/
me and the lads licking the ears of AI
if you want them to comply you must show them you love them
@PyGamer0 Nice
12:27
@mousetail Overlapping groups or not?
13:07
No overlap
13:19
TIL I Learned about Python splatted multiple-assignment (IDK what it's called but that's what I'm going to call it)
it lets you do things like a, *b = c where c is a tuple or smth
so a gets the first element and b gets all the other ones
@Ginger tasty
yum yum
13:49
@lyxal Is it working now? I'm guessing so from the Sandbox Posts thing above :P
14:13
Why tf is $this->errorCallback() different from ($this->errorCallback)() in PHP :/
14:26
@Ginger Explain
You keep bread in the pantry?
And your fridge is cold enough it got icy?
I mean I guess keeping bread in the pantry is probably normal and my family just sucks at bread ownership
But you should get that fridge checked
@mousetail Honestly not that weird of a behavior in a dynamicall typed language which has both lambdas and OOP with methods
Still probably worse than whatever JS does with .bind and stuff, but not by much
Python does it nearly properly
if you got rid of self
@RydwolfPrograms yeah my fridge sounds like a jet engine and the exhaust is over the flash point of wood so there's metal sheeting behind it /s
Yeah but if it's cold enough to make your bread frosted you should adjust the temperature :p
Oh then it's fine
You should move the exhaust inside the fridge so it can already start roasting your bread while it''s being refrigerated
@Ginger That's normal, due to the fourth law of thermodynamics, which states that the amount of thermal energy bread can hold is approximately sqrt(c) times higher than air, meaning that when it's exhausted by the refrigerant, the air gets way hotter than you'd expect
14:34
@RydwolfPrograms oh yeah didn't Isaac Einstein do a famous experiment proving that?
4
Famous thought experiment where someone dropped an apple on his head from a moving train
This led him to realize apples always fall at constant speed, and length of the train changes to make it seem like it accelerates
14:52
any idea how I could detect (using Python) if someone typed Shift+Enter on stdin?
I'm not sure terminals differentiate that from normal enter, do they?
idk
probably not :/
> there's no standard way to represent key combos like Ctrl-Enter in the terminal
sadge
24
A: What is the easiest way to detect key presses in python 3 on a linux machine?

TurnThis is a simple loop that will put stdin in raw mode (disabling buffering so you don't have to press enter) to get single characters. You should do something smarter (like a with statement to disable it) but you get the idea here: import tty import sys import termios orig_settings = termios.tc...

14:55
I'm trying to figure out how best to do multiline Vyxal programs in the REPL
@Ginger Most terminal applications work with tripple enter to execute
sure, but the issue is I have no way to detect if a Vyxal program is multiline
Does Vyxal care about whitespace?
The curses solution in the linked question should let you detect key combinations
If not, use a trailing space to indicate the line's not the end
14:57
@RydwolfPrograms ¯\_(ಠ_ಠ)_/¯
@mousetail using curses seems kind of overkill here tho
@RydwolfPrograms not really
or I could use a Ctrl-something key combination to toggle "multiline mode" or smth
That could be kinda unintuitive tho
@RydwolfPrograms One answer recommends a stripped down curser variant that does just keyboard input
14:59
Maybe make Ctrl+M or Ctrl+K a way to go to the next line without entering? Not as the main one, just a convenience thing?
maybe
ffs I don't think there's a way for me to detect a Ctrl code w/o the user pressing enter
Line buffering somewhere
I guess you could type some code and then press Ctrl-L and then enter?
Just take input in a way that doesn't line buffer. Python's gotta provide something like that
@RydwolfPrograms I figured out how to turn that off, but doing it means I have to handle waaaay more stuff than I would otherwise (like backspaces and such)
oh and also it only works on unix
15:04
oh, hm
Guess you're handling way more stuff now :p
there's no good way for me to do this
guess I'm going with Ctrl-L + Enter! :p
Ctrl+L?
That's usually used for clearing the terminal screen
I'd avoid that one
TIL :p
Ctrl+K is the best option IMO
It's a vertical tab in ASCII
hmm
15:07
If you used a carriage return you'd risk ambiguity with LF/CRLF line endings
input() doesn't seem to register it
wait maybe I can read straight from sys.stdin
I'd assume you can
yup, just gotta replace input() with sys.stdin.readline()
Well if you have a way to read raw input maybe try not line buffering that
You might not need Ctrl+K then enter
Oh right you want to use readline's editing
nvm
yeah lol
thanks, you've saved me from writing a paragraph on why that wouldn't work
actually using sys.stdin.readline() breaks readline's editing
and it also disables EOF handling
15:17
@Ginger use that library..... i forgor its name
oh wait
its called prompt_toolkit
nope, I am not using that
I already have one giant CLI toolkit, I'm not getting another just for input
besides I already tried it and it didn't work
@Ginger what are you using rich for anyways?
formatting and such
i think you can do the same thing with prompt_toolkit
yeah, but I don't want to
15:20
you can also do multiline prompts
hmmmmmmmmmmmmmmmmmmmm
I don't really want to switch which lib I'm using tho
@Ginger do you want multiline prompts?
(with syntax highlighting, if you make the the syntax parser thingy :P)
blyat fine
@Ginger haha i convinced you :p
but now I have to rewrite the highlighter and a bunch of other code
15:30
@Ginger why not use both then?
that's janky
prompt_toolkit for prompts
rich for other things
mmmh
feels like overkill
ffs I don't think there's a single maintained and up-to-date lib for this besides prompt_toolkit
15:48
How many methods does JS have that apply a function to each element of an array? map, forEach, flatMap, some, every,…
find/findIndex might or might not
Same with some/every
They can return early IIRC
Ah, yes, probably. Makes sense.
yep
Some less conventional ones would be reduce and sort, which in a sense apply a function to each element
Oh there's also findLast and findLastIndex now
and reduceRight
Shoutout to Ash which had not one but two completely distinct systems for using functions to operate on the items of arrays
And you could use them inside each other...
One was meant to be used with operators as a digraph, but could be put in front of a code block
16:12
0
A: Sandbox for Proposed Challenges

mathcatSplit some points Given an even number of finite points return a line \$y=mx+b\$ that exactly splits the points on both sides. Specs Half of the points should be true for \$y>mx+b\$, the other half should be true for \$y<mx+b\$ \$P_x\$ and \$P_y\$ are integers There will always exist a line \$y=...

16:31
does anyone remember Wellscripted?
yeah, kinda
i should probably work on it at some point in the future
alright, I have decided to abandon these new modules and stuff and instead just... check if the input ends with two spaces :p
17:06
@RydwolfPrograms first
lets you use var/var/let/whatever x: int
17:49
What's good with than an existing MCU?
It was created specifically for CGCC/PPCG, and becoming familiar with it means that answerers can also answer some other challenges on the site. But I think it's kind of dead.
yeah, the newest question is from 2015 :p
I mean why don't they just use an existing MCU instead
didn't know you could program in the Marvel Cinematic Universe :p
I made challenge based on 8051(or 52?) though
because I also need to limit RAM usage that time
18:23
this is VERY interesting, and might actually make pypackage feasible after all
What does it mean if you take 3 or more aguments to main in C?
@Ginger huh, I was just scrolling through the db and found a package titled advent-of-code-ocr
what a coincidence
18:59
@Ginger Disallowing autoclosing would help a little
19:32
Hi, I have to subject yall to this:
in Off-Topic TNB, 34 secs ago, by Rydwolf Programs
👁 👁
 👃
 👄
now we will all suffer together :3
19:43
I can't unsee that.
 
1 hour later…
20:58
0
A: Sandbox for Proposed Challenges

97.100.97.109Yakko's New World Order code-golf kolmogorov-complexity Given a list of countries in alphabetical order, put them in the same order as they are given in the song "Yakko's World". Specifically, given the following list of countries: Abu Dhabi, Afghanistan, Albania, Algeria, Algiers, Angola, Argent...

I sure wish I could comment on sandbox posts
You can't?
Nope
Whole sandbox is broken for me remember
@SandboxPosts I don't think allowing outputting the indices into the list should be allowed
@RydwolfPrograms adblock?
nope, disabling adblock doesn't fix it
21:08
@RydwolfPrograms agree
Okay this is um...
I uh...had a userscript that disabled all running scripts specifically on the sandbox
._.
0
A: Sandbox for Proposed Challenges

97.100.97.109Find Index of Rational Number in Calkin-Wilf Sequence code-golf math rational-numbers From Wikipedia: In number theory, the Calkin–Wilf tree is a tree in which the vertices correspond one-to-one to the positive rational numbers. The tree is rooted at the number \$1\$, and any rational number exp...

21:27
hey guess what? I just build Python 3.10 from source on a Raspberry Pi and it worked first second try
would've been first but I forgor 💀 to install some of the build dependencies for readline and such
21:42
How long did that take?
I mean I guess your RPi's probably faster than a zero but I've tried compiling stuff on a zero and it's unbearable
5-10m including ./config
oh, huh
I left Node.js running for probably an hour and it was like, a fraction of the way through
Luckily I found some shady repo with a precompiled version for the right Arm version
and of course now Poetry's being a bitch so it's taking me twice as long to install this project as it did to compile Python so I could install it :p
here's a cool trick: If you use Poetry on a Raspberry Pi, run the command poetry source add piwheels https://piwheels.org in your project folder and it'll massively speed up the install process for things like numpy
@Ginger Like I suggested? :p
yup lol
eyy it worked!
21:49
I like your change tho, reminds me of pip's special casing of two spaces for line comments
Since you might accidentally have a trailing space, but rarely two
thanks!
22:46
@Ginger whatcha working on?
23:15
h
23:26
@Seggan I wonder
I wonder what it could possibly be :p

« first day (4378 days earlier)      last day (763 days later) »