#ot1-perplexing-regexing
1 messages ยท Page 618 of 1
breh
graphed graphs
@wise schooner
bruh lol
bruh
\๐ฉ
you can probably get the exact same on win term except you also get tabs
with the month I used Windows Terminal, I've not seen anything remotely similar
but I don't need nor care about the tabs
hi
hi
what is the transparency set to on that terminal?
it looks nice
alacritty
I was asking about the transparency, not the terminal name
well you can set that in alacritty's setting..
I'm aware, but I'm wondering what the number is
0.7
tyty
oh you're askin the number ok
looks great for everything except this one color lmao
by color I mean the comments
and also for some reason micro scrolling is broken on Windows
shell:
program: C:\Program Files\PowerShell\7-preview\pwsh.exe
args:
- -wd ~
- -NoLogo
It's stuff like this that I love to mess with in Alacritty
don't have to mess with the stinky PowerShell profile things
That's Micro
NOOOOOOOOOOOOOOOO
I like Micro, but some of the features are wonky on Windows
but it's perfect on Linux
any unix tool is wonky on windows
Micro's much better than Nano IMO
even neovim barely runs perfectly there
the keybinds make more sense, it has things like clickable terminal features
syntax highlighting
im clickable too
._.
the devs for micro i think planned to add lsp extension
i think that makes it modern nano
like how neovim is modern vim
vim sounds overhyped, really
it is not overhyped. it is just that most unix systems have vi
As a user of it daily, vim is overhyped.
yeah, and most people won't use it beyond something like visudo
i use sudoedit. eww visudo
._.
but it's sooo nice to have
I only ever try learning it before I go to sleep
and then I remember why I was putting it off
goodnight!
I must do a quick one line rant: I cannot update winterm to 1.12 on win11 ๐
Alacritty ๐ค
use winget and subscribe to dev channel and become sad for more breakages
I can't update to win11 
I might just install winterm preview at this point
that's what I've had for a while
what why
but I just completely stopped using it after I switched back to Alacritty
alacruttos
because my Ryzen 1800x is not supported. 
i dont use alacritty on windows. for me it sucks. but i guess each to their own preferences
did you verify with something like "WhyNotW11"? It could possibly just be a TPM thing
tpm would be the problem
lots of articles tbh
not the processor
that's what I'd think
even an i3 bad gen can run win11
so he can probably just install win11 on his machine. use ventoy hehehehe
even I can run win11 on my brain
you are windows 11
TPM? Help me out here. I don't do hardware stuff.
maybe something like this? idk
the dark side of it. i use a linux os mainly :D
ok
scoop install neofetch
remove winfetch smh
idk, not a huge fan of the lack of contrast
i need to know your motherboard
Y'all rocking some vaperware color themes that are singing to my soul. 
that contains the main info ,
you can change it, i just meant that it's possible lol
MSI Carbon something something digs for notes
me still using windows 11 rust โข๏ธ
I prefer the pure transparency in this case ยฏ_(ใ)_/ยฏ
banned for not activating Windows
activated
i can't make it transparent without acrylic blur :(
I might really really have a thing for 80s vaperware
i am using dev channel
huh. has that always been there?
looks epic
same i plan to download stable version once exam ends
you need just "opacity" and make sure you're on 1.12
maybe I'm crazy
I just had that issue
yes
wack
i'm probably not on it
?? that is activated though
actually i switched the windows 11 insider and since then not able to transfer to the stable
I thought that only showed up when you weren't activated
they did warn us
but sadly, I need a background color and an opacity on that, no pure transparency ๐
no it does show when you are an insider tester
X370 Carbon (MS-7A32) is the mobo
yes and i fucked up
so i guess we will redownload a media iso.. idk how much gigs.. but im pretty sure it is around 20
that does have tpm , all you need to do is FREAKIMNG ENABLE IT IN BIOS
time to spam F2
This is hard... hardware is dumb
bonk bonk bonk bonk @low chasms
aboo more like "aRoo"
ooh this transparent-ish terminal is nice. me likey
๐
well don't be shy
show us
wanna enable it now ๐ letsdothis
What is TPM though? Trusted Platform Module? (best guess)
yes
what is there to show
Groovy, that will be my project next weekend then. 
a winfetch ๐ซ
your mobo is there but
neofetch is the best I've got
Yeah, the 1800x isn't listed either
Because "why not"
Hey, I learned that TPM is something in my bios. That's a win
hm... too transparent or your font is just too small
yes it is
No new WSL for me yet.
you can even enable tpm and give it a try
I only ever actually overlay my terminal over my similarly colored vscode, so the transparency looks a bit darker there
wack
I think I will. Next weekend though. Too much going on this weekend for messing with bios and things.
@thick osprey spam del key while restarting pc then
makes me wonder why some BIOS have TPM disabled
Last time I did that I bricked my mobo for a day until my partner could reset the bios.
you are 3-4 linus tech tips videos away to be a hardware geek
thats what i did lmfao
Them: What did you do?
Me: I just installed the new bios update!
Them: what did you do?!
Me: 
same for me
this makes me sad
sadsuuu
want some hugs?
Made me sad too. I wanted to play a game and couldn't.
nvm your partner will become jealous
:pandahug:
I've never updated my BIOS I don't think
But then they fixed it and all is good.
if I have... Windows Update has done it for me
imma hug you both instead uwu
I never touch my bios myself
updating bios is nightmare when you receive frequent power cuts in your area
update -> power cut -> ups down -> mother board dead lol
i wont update my bios. smh i will flash it with coreboot or libreboot once this laptop becomes older than my grandchild
I updated the bios on my work laptop once. That was a nice two days off while they shipped me a new one
Something something bitlocker and incorrect keys.
I am but a humble midware engineer. I know nothing of these things.
are you eeemployed egg or student egg ๐
buttlocker.... windows
employed. Been a long time since I was an actual student.
dam
smh flatpak fonts broke
can install win 11 tho
yeah i think so
get linux
hello
send rust halp
code: https://paste.pythondiscord.com/ozatoqofif.rust?noredirect
error:
โฏ cargo bench
Compiling prime_factorization v0.1.0 (E:\prime_factorization)
error[E0554]: `#![feature]` may not be used on the stable release channel
--> src\main.rs:1:1
|
1 | #![feature(test)]
| ^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0554`.
error: could not compile `prime_factorization`
To learn more, run the command again with --verbose.
@low chasm help the man
am i supposed to use nightly or something
lol
@eager cliff any fun projs to work on in C?
https://github.com/antropez/ctools
make data structures like me.
or maybe a JSON parser.
i have yet to finish mine.
JSON parsers are really fun to make.
nvm i fixed it
had to do cargo +nightly bench
poggers julia is as fast as rust
5ms faster even
that almost doesn't sound right
yep
python is (unsurprisingly) around 30x slower lol
python: 1.16 s ยฑ 44 ms per loop
rust: 37,636,430 ns/iter
julia: 32.238 ms (4 allocations: 608 bytes)
um... wouldn't this mean Rust is like 1,000x faster or am I crazy
wtf nvm I can't do math
37 million ns is 37ms
yes
I wonder why Rust would be slow
why not just time everything?
although... this would assume you have access to something like time... I don't think Windows has something preinstalled, so you'd need to use something else
powershell has a MeasureCommand
โฏ time
time : The term 'time' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
cmd has a time but thats for like
changing the system time
oh wtf I must've installed something from scoop
scoop install time ๐ฅด
โฏ time
InvalidOperation: C:\Users\56mik\scoop\apps\time\current\time.ps1:7
Line |
7 | & $cmd @args
| ~~~~
| The expression after '&' in a pipeline element produced an
| object that was not valid. It must result in a command name, a
| script block, or a CommandInfo object.
lol
help measure gives doc
โฏ Measure-Command {sleep 2}
Days : 0
Hours : 0
Minutes : 0
Seconds : 2
Milliseconds : 17
Ticks : 20176953
TotalDays : 2.33529548611111E-05
TotalHours : 0.000560470916666667
TotalMinutes : 0.033628255
TotalSeconds : 2.0176953
TotalMilliseconds : 2017.6953
this literally doesn't help me understand at all what it does
wtf
lol
How do you even see that
see what
โฏ Measure-Command {echo 'ok'}
Days : 0
Hours : 0
Minutes : 0
Seconds : 0
Milliseconds : 5
Ticks : 55718
TotalDays : 6.44884259259259E-08
TotalHours : 1.54772222222222E-06
TotalMinutes : 9.28633333333333E-05
TotalSeconds : 0.0055718
TotalMilliseconds : 5.5718
lol
idk lol i probably learnt it from a SO answer
INPUTS
System.Management.Automation.PSObject
Thank you PowerShell, very informative
lo
I totally would've gotten {echo foo} from this
i still dont have ligatures enabled smh
there's not even any examples
time to do
and help is very hard to navigate
like it looks like you have to use the enter key to move down
and this is what happens when you reach the end
idk how people can stand this
also frankly this prompt is ugly but >:(
is there a way to have wsl start automatically on Windows so I can just set that as my shell for Alacritty
why not just use linux lol
-_-
cause I'm fed up with dealing with my NVIDIA drivers
they literally never work and I'm tired of switching between systems constantly
I program and I game and I hate having to choose between them
F
oh well
I want to wipe my drive again
this is so annoying ๐
nothing feels right
this is annoying. Why most both operating systems be such a pain in the ass
Anything else you've done?
jack
?
hmmm sure
@lime maple I don't actually know what a keylogger is for. Why is it bad?
A keylogger is used to steal passwords, if a user clicks on a link and it's a keylogger.... Every single key he presses will be logged
Imagine you're logging into a website... and well... I'm sure you can see the problem
ah I see
And they can see the password
among us?
insightful
no i like graph
Because your compiling it in debug mode
that was my theory but I dunno
Cc @acoustic moss, it's his benchmark
You should be on nightly
Ok
and cargo bench runs optimisations
Ah
i hope
It was 2 am
excuses
Lies
THE RUST BOY IS AWAKE
Yes
Lays
Lays lies while lieing in the Layman's house๐
let me know how it goes!
I'm hoping my C knowledge helps?
but I have no idea aboutt he syntax of rust lol
oh for sure
although Rust is more like C++
I know a few staffers are hopping on the rust train, so if you need help definitely bug f1re
It's kinda... Rust's got a lot of things you really won't see anywhere else
there are some things for me that were very confusing to understand coming from Python
the most confusing things will end up being lifetimes, a lot of other stuff you'll probably recognize from C/C++/Python
I've got quite high hopes on the whole multi-threading aspect
could be incredibly useful at work
From what little I remember of messing with threads in Rust, it was quite fun
Yea from what I understand from rust it's the main selling point
low level similar to cpp but with really nice threading support
ye ye rust is cool and all but have you seen julia
lol
okay but julia indexes at 1
0 indexing is a lie invented by C programmers
they have taken us for absolute fools
class List(object):
def __init__(self, items: list) -> None:
self.items = items
def __repr__(self) -> str:
return '{}({})'.format(self.__class__.__name__, self.items)
def __len__(self) -> int:
return len(self.items)
def __contains__(self, item: any) -> bool:
return item in self.items
def __getitem__(self, key: int) -> any:
return self.items[key - 1]
def __setitem__(self, key: int, value: any) -> None:
self.items[key - 1] = value
def __delitem__(self, key: int) -> None:
del self.items[key - 1]
oh no
what am i looking at
superior lists
cover your eyes hsp
would probably be better subclassing collections.abc.MutableSequence but I cba lol
here was me using ~ to pretend to have negative 0 indexes
Or from collections.UserList, which would shorten the code
assert "abc"[~0] == "c"
users need lists too
ah yes, my favorite -0
since python inverts integers like -x - 1
Well that's because of 2's complement
And I can't stress enough just how convenient it is for reverse indexing
You mean the ~?
yeah idk I don't ever see it used much, idk how "appropriate" it is
but then again I never see ~ anywhere else
I thought it was supposed to be Bitwise NOT, but...
nvm idk how bits work
how's that even work :faint:
uh...
Two's complement is the notation for negative numbers that allows generalizing addition and subtraction
I kinda hate bitwise operations in Python, because I think it's very confusing what the result of them is when the int in question is arbitrary-sized.
Wait so how is ~ useful outside of indexing
All the bits are flipped, and then 1 is added. This converts to and from two's complement
like... what's the bitwise inverse of 0? an int composed of an infinite number of 1s?
Not much
yeah
๐ฉ
Just like 0 is composed of an infinite number of 0s
-1 apparently ๐ not that i understand why that is
because an infinite amount of ones is, in two's complement, -1 ๐
Because the most significant bit has to be 1
Idk, I find it simpler than in other languages to be fair
I don't have to stress about just how many bits exactly the integer is comprised of and treat is an infinite bit buffer
a real example is unsetting the second bit using a&=~(1<<1)
Ah yes, sigil soup
yummy.....
As clever as that is, I think I'll stick to ^=
Not if you mask it with the original
(I'll ignore the fact that it might be even worse sigil soup)
HEY KIDS
WANT TO SEE A SHARED MEMORY MUTEX?
/* Setup shared memory and new mutex */
memory_key = ftok(mutex, 0);
new_server.mutex_id = shmget(memory_key, sizeof(pthread_mutex_t), 0644 | IPC_CREAT);
new_server.mutex = shmat(new_server.mutex_id, NULL, 0);
pthread_mutexattr_init(&attribute);
pthread_mutexattr_setpshared(&attribute, PTHREAD_PROCESS_SHARED);
pthread_mutex_init(new_server.mutex, &attribute);
this will be on the exam.
Im skipping class
and who might you be
๐ฅด
honestly that is probably a good thing.
this is probably infinitely cleaner in Python. @_@
actually i wonder if you can setup shared memory mutexes in Python?
oh wow you can o_O
docs on ^=?
Oh, that's a tricky one. You need to define truth, and philosophy is still working on that.
boolean true
have you tried a real life if-block?
Not sure, but I did meet a tree at a decent speed. Not recommended
got all your parts?
Just missing some surface treatments, nothing major. First and second mountain bike crash today so my left side is feeling real good
I feel like that last part is a lie
heath hex
Are you okay?
Yeah for sure. Knee and ankle hurts when walking but I'll be good ๐
im just braindead after taking 80 items of virology trivia that i will remember...
what happened to u
Knee is raw though so that's the major pain point
LOL goodness u r okay
I feel like mentioning it, if you haven't been told this, but the goal of mountain biking is to avoid the trees. 
I am glad that you are okay.
the goal of mountain biking is biking in the mountains :)
๐ฅด๐ฅด๐ฅด
Co-worker took a spill the other week and snapped his arm.
I'm all in one piece, just scraped and bruised
why do you hurt people ?
Good 
do you support lgbtq ?
Yes.
ok
well I am neutral I do not support and hate or hurt them
It's not the speed that will hurt you, but rather coming rapidly to a stop
oof!
Lol
neutral usually means you have to choose a side ๐ฅฑ in my experience, neutrality has more problems but that is just me
You can see where the second crash is too not too long after that. Hard clay and dried leaves are apparently a tricky combo
Brad ninety four at ninety-four: "And here you can see the spike when I hit my first tree." swipes through their phone, fondness in their eyes
ha ha
.bm Read when Wholesomeness is Needed
im not joking tho but i wont force u ๐
why u fake laugh ๐ it's not even a joke
bringing topic up to say that is sus
hmm... 22:17 and I haven't started writing. Gonna put discord away and do what I need to do 
im just going to end the topic here lol
stop
stop doing
good luck with your writing!
jk goodluck too
Oh I just realized... I also use dark mode in scrivener. That's two full apps I use dark mode 
Weird that when writing code or stories... dark mode is the choice. But reading and working it's all light mode.
working in light mode is for me somewhat better during the day
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
Is this python or html?
So tabs? You want a tab that displays what you have now, with "Pets" being a different tab with different info to display?
Well I am a very long time from doing css work but you can achieve this in two ways.
- a little js magic to show/hide <div>s
- Pure css trickery: https://codepen.io/renatorib/pen/rlpfj
https://newtodesign.com/html-css-tabs/ This looks like a great set of examples that isn't w3schools 
((in and out of work so I might be delayed in responding))
.bm 912374730584121395 I need this for work... actually
sheesh. 150 lines just for this
jquery ๐คฎ
Eyy
Although I admit it does look pretty nice
PHP is not fun
Is there a reason for that or
JS is a language with much larger potential, and is nicer to work with (even though it's JS)
I strongly recommend you learn TS
It's a superset of JS with optional typing, which makes it bearable
Typescript
it transpiles into JS AFAIK... so that seems cool
Yeah, it's transformed to JS code before execution
But the enhanced workflow you get from using TS is incredible, fuck raw JS
idk how people manage to program in some of these languages and like it tbh
So basically, it's a better javascript
yes
Ok then, scratch java
JavaScript but tolerable
If you learn TS, you'll automatically learn JS
- Me, who can only preach what other people say
Because JS is a subset of TS
wish it was like that for Kotlin and Java ๐
And frankly the vice versa also mostly applies
Because it's like python with and without typehints
(sort of)
damn. the real Venti
thoughts on crypto?
Legal pump and dump
virtual beanie babies
beanie babies have use-value
ye
You don't ever need a third party crate
and the stdlib isn't useless
You haven't quite explained why you think its useless
alr so for everything you need to implement it yourself
it's like python where you just import random, time...
you have to implement random youreslf
uh, rust has an stdlib
just because one thing isn't in the stdlib, doesn't mean its useless
I shouldn't have said useless
mhm
useless is not the correct word
but
still
you have to implement them yourself
and in competetive programming it will be so difficult
and if your realistically using rust as a first language in a class, they're going to allow you access to third party crates
and using rust doesn't even make a single bit sense
cuz it would take you lotta time
how so?
I mean, if you cant use third party libs in comp programming, same goes for any langauge
and that person said they're gonna do that
in many schools, you cannot even install packages because the computers are restricted
ik, i said it would be nonsense to use rust there
but why
it has an stdlib
not having random doesn't make it useless
and if your really using rust, I'm sure they'll give you access to crates
assume they're not gonna do that
why?
just assuming
I mean, they're also assuming that schools dont give you access
with nothing really to support it
I've done programming in school, they gave us fine access
idc
i'm just saying if you can't use third-party crates rust would be useless
and you're saying it has stdlib
Why would it be useless
Not having random doesn't make it useless
and thats the only example you've given
random is just an example
what other examples?
i mean i haven't really used third-party, so it's pretty normal that i don't know
Rust does have a relatively small stdlib
But thats not really a bad thing
a lot of functionality is left up to third party libs, but that doesn't make it useless
@low chasm
I'm following this
And what error do you get
!paste mind using something like this? I can't zoom into the message
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
you seem to be on windows
do you have a C compiler installed
If so, which one
You might have to set the generator manually with the -G flag as well
where?
`CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
CMake Error: The source directory "C:/Users/moore/Pangolin/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.`
I get this
@low chasm
you need to be in the directory with the cmakelists.txt
how do I do that?
it's in Pangolin
ok did it
when I go back to build, this happens:
`C:\Users\moore\Pangolin>cd build
C:\Users\moore\Pangolin\build>cmake ..
CMake Error at CMakeLists.txt:15 (message):
Source build detected: please use a subdir. You may remove
'CMakeCache.txt' and 'CMakeFiles'.
-- Configuring incomplete, errors occurred!
See also "C:/Users/moore/Pangolin/CMakeFiles/CMakeOutput.log".
C:\Users\moore\Pangolin\build>`
@low chasm
Alright, I removed it but I get this:
CMake Error at CMakeLists.txt:3 (project):
The CMAKE_CXX_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "C:/Users/moore/Pangolin/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/moore/Pangolin/build/CMakeFiles/CMakeError.log".
@low chasm
Anyone know if there's an equivalent to something like https://javascript.info but for TypeScript?
As an intro to TypeScript with a knowledge of JavaScript, or from scratch?
For the former, the docs have a decent handbook-intro-thing, but for the latter, I don't know of any. You really don't need one though, since it's just JS with python-like enforced type hints.
Yeah I suppose
Yeah, it's pretty much like python VS python with typehints, so the handbook they provide with their docs should cover most if not all things you should know
Fair enough.
so.. installing nvidia manually is better hmmm also Xorg is broken
6 passed, 69 warnings in 722.61s (0:12:02) That is all
This is the output to my pytest, haha

there
Guys just found swift, its just strongly typed and oop encoruaging alternative of python that compiles to native code! correct me if i am wrong
lol from the 100 seconds video?
Yes! haha
"alternative to Python"? are you sure
I'm all triangles checkmate libs
No, thats why i asked to correct me if i am wrong
hm
@shadow jetty hello, sorry for the ping,
how can i rotate a Sprite?
i'm trying to make a doom like game with nurses_2,
i want to show hands holding weapon,
i don't know if there are any other ways besides sprite,
or are widgets stackable? thank you
alternative of python
How's it more an alternative of python than, like, any other language?
checkmate, libraries
public static void multipress(string id, int dur)
{
var exiting = new Ref<bool>(false);
Async.Start(() =>
{
for (int i = 0; i < dur; ++i)
waitOneFrame();
exiting.t = true;
});
while (!exiting.t)
{
press(id);
Async.Await();
}
}
This is my code.
I would like to add a feature as if key S is pressed and hold
The code could be paused while holding the key
And continue if the key is released.
for hands holding a weapon, don't use a sprite, just a graphic widget placed in front of the raycaster would do the trick, you can even animate it
sounds good, i'll do that, thanks
what peak performance looks like, apparently
MPIR
I just considered installing it to get some fast arithmetic but, mmm...
https://stackoverflow.com/a/49822450
the length of that installation guide kinda scared me off
woah this is cool
but i don't code in js
i want other languages ๐ฅฒ
hm
in rust how do i keep a loop variable around in scope even after the loop ends
like
for foo in bar {
}
println!("{}", foo);
i tried doing let mut foo; before the loop but it doesnt help
probably gets shadowed or something
You could do something ugly like
for el in bar {
foo = el;
}
println!("{}", foo);
LLVM will optimize it anyway, they chanted
yeah my actual use case is that i'm enumerating over something and potentially breaking, and i'd like to get the last index
i could just do c = 0 outside and c += 1 inside
You could also do
let it = bar.iter();
let mut i;
let mut foo;
loop{
if let Some((ind, el)) = it.next(){
i, foo = (ind, el);
}
else{
break;
}
}
ah, you know one reason it's not easily possible, by the way?
because bar can be empty, making el uninitialized
and you can't have that in Rust
hm
Almost same syntax, same purpose, similar libraries
idk about syntax but they definitely don't serve the same purpose
swift is primarily for iOS apps
I don't think Swift's syntax is at all similar
it's closer to something like C, JS or Java, really. Mostly JS
Thats an additional functionality, but it can have same purpose as python, general purpose language with ios support
i've never heard of anyone doing ML/DS or writing web backends in swift
imo its just python with a strict type inference
https://developer.apple.com/machine-learning/
https://github.com/apple/swift-nio
i dont really support apple but theres that
Create intelligent features and enable new experiences for your apps by leveraging powerful on-device machine learning.
this too https://vapor.codes/
swift can almost certainly do ML because, like... apple uses ML in their stuff, a lot.
but would anyone train models in Swift instead of any other language?
I would personally go with python all the way, but if i am making a compiled app ill go with swift since im so used to python's syntax
high-level languages are in general pretty popular for ML - mostly Python, but IIRC torch was originally for Lua before it was for Py
lua!?
yes
http://torch.ch/
Torch is a scientific computing framework for LuaJIT.
~~torch-chan ๐ณ ~~
i gave up on iOS dev cuz of the fees
Just to be clear I was never talking about swift because of apple instead its similarness to python and how it can be compiled, so a compiled language similar to python
ah yes my favourite programming languages, Android and iOS
what the hell did they even mean by this
The statements are similar
The variable system is similar with added better type inference
Both are indent dependant languages
The oop system is similar
Swift can be object oriented
Added curly braces and extra optional types is all i see is different in normal code
that's 2016 though, and Objective-C is what Swift was aiming to replace for iOS, so it might be reversed by now
I think they meant kotlin lmfao
I don't know what they meant by iOS
Notice thats 2016? objective c is down the drain and whats your point?
Both are indent dependant languages
is swift really?
Since obj C and swift which come's from obj c are both used
iirc, swift is indent dependent
I've only worked in it once little over an year ago
Imma line
?
no semicolon !!! == python!!
lol
!e
from base64 import b64decode
no_semicolon = b64decode("cHl0aG9u").decode("utf-8")
print(no_semicolon == "python")
@alpine edge :white_check_mark: Your eval job has completed with return code 0.
True
Ayo
!pep 8
well ppl were mean to me in gg/christ i gave it a fair try ยฏ\_(ใ)_/ยฏ
back to wandering
fn main() {
let w: &T0 = ...;
}
fn f1(x: &T0) -> Result<T1, E1> {}
fn f2(y: &T1) -> Result<T2, E2> {}
fn f3(z: &T2) -> Result<T3, E3> {}
what's the cleanest way to chain f1 f2 and f3
while also handling E1 E2 and E3
wdym chain
apply them one after the other on w
like f3(f2(f1(w))) basically
i think i have to use and_then some how
I don't think using and_then is clearer
the alternative is 3 layers of nesting if let Ok(x) = ... {}
oh
imagine not having a function composition operator
function composition wouldnt really help either since i have to unwrap the Result and pass a reference of that
copium
map?
Result is a type that represents either success ([Ok]) or failure ([Err]).
ah, not quite your case
map_or_else is what you want, I guess.
hmm
map_or_else sounds like a threat to the compiler
I think Rust has a good bunch of or_else methods
unwrap_or_else ๐
map_or_catch_these_hands
you better map that, or I'll get the gun
guess i gotta choose my poison
lex(&input).map_or_else(
|err| println!("lex error lol {}", err),
|tokens| {
parse(&tokens).map_or_else(
|err| println!("parse error lol {}", err),
|ast| {
println!("{:?}", ast)
}
);
},
);
if let Ok(tokens) = lex(&input) {
if let Ok(ast) = parse(&tokens) {
println!("{:?}", ast);
} else {
println!("parse error")
}
} else {
println!("lex error")
}
I feel like the latter could be done a lot better
but I don't exactly remember how
hmm, ideally you would have
try:
toks = lex(source)
ast = parse(toks)
except LexError:
print('lex error')
except ParseError:
print('parse error')
```but I think you would need `dyn` in rust to have that work
how to hack people with python
._.
._.
lmao
reminds me of a function I wrote for a method which needs to return an error or raise it depending on how it's being used
return or_raise(ExceptionClass("error message"))
or_raise either returns the error or raises it
I think it looks neat
it do
How does or_raise know if it should raise?
blame discord.py
Ah yes
instance attribute
ah fair
it's a converter
which needs to be optional...
but also not.
in the end it works so
tldr it is to get a message object
and it will get either a supplied message or work based on a reply
OR on a message cache
although I can't remember why it had to be optional....
ah, right. so the error message would be neat
command needs a message and "content"
if the user doesn't provide anything it would say "message must be provided" and I want that to say "content must be...."
....
I'm an idiot
there's the way to handle an error for a specific command
I should just have added that and made it say content instead of message
^ nope. dpy gave me a better way to do it and I didn't.
@open fern in relation to the dpy thing that just happened, ^
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm oooh rust
very rust
:epicpoint:
!rule 9
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
thanks
Ez bruh
Just spend about 3 years learning CS and networking
Then spend like another 3 in sysadmin / IT.
And boom, you'll have the skillz
With a z
Wadup
sooo easy
apparently this just works
match foo().and_then(|f| bar(f)) {
Ok(_) => (),
Err(FooError) => println!("1"),
Err(BarError) => println!("2"),
}
cool
aha
interesting
ah, upon further testing it doesn't in general, I was just doing sth weird.
let toks = if Ok(t) = toks() { t } else {println!("1"); return;}
let ast = if Ok(t) = parse(toks) { t } else {println!("2"); return;}
```seems a bit better then
looks scary, is this rust
oh, you're learning to make a language ?
close, a math expression parser
oh good
@coral void 
Hi, How was your day?
it was good before that convo
now im questioning reality
and the authenticity of my life...
my being....
my soul....
okay back to math baiiiiiiiiiii
Anything politics would make... ok bye
Suggest more topics here!
yea those questions are always dumb
you fight the greater number of smaller things.
You wouldn't fight a horse, why would you think you could fight something the size of a horse?
a bunch of small things you could easily fight, just kick the shit out of them when they get near you
it isn't hard.
put on some fuckin heavy boots and you win, what are they gonna do, nip your ankles?
you're forgetting that the surface area to volume ratio doesn't scale
the horse sized duck won't be as strong as horse
it probably won't be able to move that well
I feel like it'd be a lot easier to be overwhelmed by 100 duck sized horses
ducks aren't super small, either
what's a duck sized horse gonna do, waddle over to me
lmao
oh no, the only weakness, walking away at a leisurely pace
but baby zombies though
both of the answers are nightmare fuel
I just flipped the --line-buffered flag on a running grep process, with no debug symbols. objdump wasn't giving me what I wanted, so I learned how to use ghidra - it's pretty cool.
hey fam, I need some advice
One of my coworkers has started on project X. I'm skeptical that X can be done and when I asked for an explanation on X, I'm pretty sure his answer was complete bullshit. Do I say something to my boss? Or just shut up? The problem is that aside from my coworker, I'm one of a few people qualified to realize that it's bullshit.
IF coworker finds out someone said something, he'd 100% be able to ascertain it was me
Why are you skeptical? And why do you think the coworker hasnt done an analysis to determine feasibility
Iโm skeptical due to my domain specific knowledge, but grew way more skeptical when he started bullshitting in his explanation.
I would be hesitant to try and meddle with a peer's workload tbh, they are a peer right?
Iโm the senior, heโs the junior engineer
Oh okay, in that case i would not hesitate then
Is this a case of someone trying to impress a manager you think?
Or just naivetรฉ
Both. Heโs trying to prove himself
Hahaha
His work would also get folded into my codebase so I have a bit of a vested interest in making sure random bullshit doesnโt get in haha
Yea definitely wanna get ahead of this before they start sinking work hours into it
Just be gentle, i would guess that juniors dont know how to estimate work loads in my very own experience ...being a junior
maybe ask them what x is to solve and then figure out z solution for y problem
Thats extra work tho
There's so many problems with this project. X tries to solve problem Y with machine learning, but we already have a solution for problem X that doesn't use machine learning (and that, you know, works)
It's also code that would be used in MY project(s)
People are more receptive to alternatives rather than a complete shutdown, but that means you have to think up and provide an alternative which may not actually be worth the effort here
I have such mixed feelings, because while few I've definitely bullshitted my boss before, but never in a way that would compromise systems.
Would you say your boss is generally reasonable?
Yea i think your history here wouldn't matter to them if you explain why you think what you think
Reasonable bosses are so nice to work with and for
Okay. I'll just message him and see what he thinks/says
just curious, could you hint a bit as to what you think your co-worker is BS-ing with machine learning?
Sure. It's a bit into the weeds, but he claimed he was going to use a frequency covariance matrix to repair a certain artefact of a digital signal, but this artifact has no periodic component and thus wouldn't be present in a frequency covariance matrix. He also said that he didn't need test data, that he'd just perform primary component analysis and remove the smallest one, which is frankly horrifying since there's no way to identify what that component is without any test data to compare it against.
He also said that he didn't need test data
that's pretty much a red flag right there lol
Yup
but I don't follow his logic; does he have no valid argument as to how he can predict/repair a supposedly non-periodic signal with just covariance matrices?
if he had mentioned Neural networks, then perhaps he might have been somewhere on the right track...
He mentioned k-means clustering which doesn't need test data to form clusters, but then how do you determine if the data points in one cluster is artefact or not?
You can't
you can kinda wing it, nothing scientific unfortunately ๐คทโโ๏ธ
cosine similarity + embeddings is perhaps the best simplicity-accuracy tradeoff
Yeah, you could say "Oh if this value is <0.2 it's an artefact" but thta's an assumption and if you ever get data outside of that assumption there goes your analytics
very true
but then again, I don't really see it to be very unreasonable; if he has data to back up that number - and it works then I don't think you can say much against him
What did he waffle on about? ๐
Im pretty sure he just tried to inundate me with machine learning buzz words
Since we're both pretty new to machine learning I think he thought he could bullshit me
But I think I know enough to know when I'm being bullshat
just throw a bit of "unsupervised mixture of experts" in the mix eh ๐คฃ
I would still honestly lean on ML a bit though; the principal advantage of generalizability is very useful honestly.
I didn't know for sure at the time he was bullshitting, it was only after I researched it post conversation
but then I may be biased since I find sigproc methods quite....."outdated"
Well, we do use some machine learning for our signal processing, very recently introduced, but it has test data to compare against
thats a lot of "BS" in this conversation ๐
I didn't appreciate being BS'd
that's pretty smart. I'd honestly lean towards giving him some time for experimentation and surpassing the current baselines already-in-place - who knows, might prove himself ๐คทโโ๏ธ
Yeah, I mean I'm open to being convinced
but from the convo, yeah...he might not be that guy ๐
@agile summit wait wait wait is your github the same username as your discord?
Uhh is that bad?
no no its not no
My github username is the same as my IRC username
And my discord username is the same as my IRC name too
so is this you? pypa/pypi-support#1424
was looking at pytest-sugar updates since its causing distutils deprecated warnings on python 3.10
Yep
@velvet sun a straight flush is just a flush with consecutive value cards
and a royal flush is the highest of those. an ace high straight flush
So the distinction between the flushes is important
royal flushes are a subset of straight flushes
Straight flushes are a subset of flushes
well true but my point is more that it's the same type of hand
Well my point is that the distinction between flush and straight flush is the same as the distinction between straight flush and royal flush
There is a possibility of losing with a random straight flush, while there is none with a royal flush
Hence the highest hand distinction
i guess what i'm trying to get at is that we normally compare the same sort of hand by looking at the highest card. flushes and straight flushes aren't comparable in this way: a straight flush is always better than a flush even if you have an ace high flush against a seven high straight flush.
on the other hand, by that measure straight flushes and royal flushes are in the same category since you can just compare by the high card to see which hand wins.
||... i hope this makes any sense?||
you make no sense whatsoever 
it's not
Which one looks best to you? (1๏ธโฃ,2๏ธโฃ, or 3๏ธโฃ)
you uwu
no
what no
fried duckies
blender guru is an obvious one
if you're into mixing up 2d and 3d worthikids also has a good 2.83 guide
and there were some other, let me see
I think crossmind studios is the other good one
It is reeeeeeee yall need to learn some poker
he's right tho
he's not tho
a royal flush is just the highest possible straight flush
a straight flush is a flush with all the cards in sequence
right?
the royal flush is the highest possible hand, not just the highest possible straight flush
you literally cannot lose with a royal flush in hand
while you can with any other straight flush, the distinction is important
theres no royal straight for example, so its not as simple to just say a royal flush is just a straight flush
uhh, but it is though
it's just a straight flush that happens to have the highest possible cards
And a straight flush is just a flush that happens to have consecutive cards
You wouldn't say a royal flush is just a flush tho
So why abandon the distinction
"the flush is the highest possible hand in poker"
No, its a very specific flush thats the highest hand in poker
wait what?
The royal flush
yes, but why that quote
Im using the phrasing in the original argument
They said "the straight flush is the highest hand in poker"
ah. I didn't care about the argument, I just agreed the distinction between straight flush and royal flush is not as great between a straight flush and a flush
But its more restrictive than flush to straight flush
wdym by restrictive
Theres only 4 colours in a deck so only 4 possible royals
I dont wanna do the maths on straights
Just trust me, im an engineer
Lmao
quick estimate, let's say 4*8ish straight flushes
Why the 8 where do you get it from
You can have a straight flush from 2 to K
huh, I didn't know that
A KQJ109 is a straight not a royal
I think so?
yeah
click on +
yea its the same running a program creates a new terminal
press f5
yes click on python file
first file
opens a blank terminal
have you install the python ext?
i- lmao
enjoy it ๐
๐
me also face like that problem also i think it's happend with some problem with vs code
some bug yeah
yeah
@distant hazel is your profile picture a lime because limes are berries ๐

