#ot0-no-stealth-portals-please
3246 messages ยท Page 25 of 4
java is amazing
yes
and those pieces of code are only equivalent if you know it's a bool
i don't like since i suck at memory management and uh well no garbage colection :P
average whatever this is fan
public class Thing {
private int x;
private int y;
public int getX() {
return this.x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return this.y;
}
public void setY(int y) {
this.y = y;
}
}
```vs average C# enjoyer
```cs
public class Thing
{
public int X { get; set; }
public int Y { get; set; }
}
waht am i seeing? Java vs C#?
yes
damn i still know java by reading it
lol
C# really does feel a lot like a polished Java.
yes the reason im planning to get into it
hm
i think C# has a similar relationship to Java as Rust does to C++
in that C# is just better than Java in a lot of ways and also in that modern Java just copies whatever modern C# did a few years prior
ofc Java and C# are more closely related than C++ and Rust but
usaco doesn't take C# tho
what is usaco
๐ฉ
??
usa computing olympiad
oh
competitive programming
why
where is list of languages usaco takes ?
C, Cpp, java, pascal, python
bruh
pascal!?
how do you take pascal but not C# ๐คก
old ยฏ_(ใ)_/ยฏ
how dare you
ew
older
๐คฎ
oh yeah, i've started learning haskell and it's really cool
how do you take God but not me? ๐ฅบ
i
Modern C++ is a pretty good language for competitive programming, actually - out of that list of languages, C++ is the best all-round option, I think.
i'm going to learn memory management in c because why not
Hi :D
yeah and the subset of the lang you need for cp is quite small. don't need to deal with the prickly parts
yes. sad. i really dont have motivation lately to learn anything except microbes and viruses and their innards
i'm not sure what version they take, though
That's a good call, honestly.
yeh learn C. dont stop
damn this exists in microsoft store for free!!
and become sad in frustration
Effective C is good
apparently not pascal anymore
As long as it's C++11 or higher, you'd be in good shape - and at this point, it would be hard for them to find a compiler that doesn't support C++11
i might just read the c programmig language book in school
@cursive agate ๐
If I had to guess though,
the first one is the slowest because it needs to look up __eq__ for variable then call it
second one is faster because is doesnโt have a dunder, and just compares memory but still takes more calls than the third one
Third one is the fastest because it is just if PyObject_IsTrue(variable) (I think)
well those games are shit in general but whatever fun is for you
it's a work in progress, but https://beej.us/guide/bgc/
ooh
:lemon_hyperangry:
hmm is this yours?
Ooh
no, it is not
but the guy who wrote it also wrote a guide to network programming that is practically a bible for it
alright im adding it to my bookmark
java programmers seething rn
public class Pair<T> {
private T[2] inner;
public Pair(T x, T y)
{
inner[0] = x;
inner[1] = y;
}
public T X
{
get => inner[0];
set => inner[0] = value;
}
public T Y
{
get => inner[1];
set => inner[1] = value;
}
}
time to memory manage c
What c standard is it for
give
Lmao
i found it
how did the highlight.js devs remember that C# has ulong but not uint
yeah but they fucked up python
honestly it's mind-boggling
They fucked up quite a bit
another thing is e.g. they remembered that ' are valid in haskell identifiers:
yeet'skeet'
but they didn't remember that haskell has character literals ????
'a'
rofl
the things that higlight.js remembers and forgets is honestly confounding
ANSI C, it seems. So, C89
Ah
i used the "ANSI C programming" book
Is it that much different from c99 or c11
latest c standard is c20 right?
I use the c11 standard
no, not very.
Alright, so most code will work fine
I think so, yeah
a C standard from 32 years ago :faint:
C29
almost everything, yeah.
@IAmNotMilky#8284 + @Cypheriel#3463 = @Yum#4155
Hm
honestly yeah
i have question
it also breaks on completely valid ebnf
iirc C is platofrm dependent right?
I mean, they did have to highlight a shit ton of languages
now time to write your own syntax highlighter
if i compile on mac, it only work on mac
prismjs has been pretty nice for me
RIGHT?
how the fuck do i compile for windows?
if you compile it for me, it runs only on me
or linux
Cross compile
how
The compiled output is platform dependent, but the input code can be cross-platform
Er
how do you forget that a language has character literals??????? how do you remember that ulong exists but forget uint ????? and more importantly how the fuck has it not been fixed by some dude in nebraska making a PR like 3 years ago??????????
Just make some user on windows/linux do it, ig. Since the C code remains the same.
i'm thinking of switching tbh. BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); is kinda getting on my nerves
ah
I mean, couldn't you cross compile it
Wait what's that
the has to be my dad then
C code only remains the same if you write code that is platform and compiler agnostic
since he still uses a windows
Some code is platform specific
Yeah that's true.
which is sometimes hard to do
Now imagine doing C/C++ development on Windows without WSL or msys2
lol
Mingw exists
windows bad
honestly the YS compiler is probably only going to support linux, i can't deal with undocumented and/or unstable syscalls
imagine using windows
https://cses.fi/book/book.pdf - and in particular, #include <bits/stdc++.h>
that's what it was called... add that to the exceptions
unix ftw
it won't support macOS either
without WSL, msys2, or mingw
bUT IT DOES
what?
wait you mean wsl?
huh?????
or something like gcc?
She's talking about yeetskeet, her own language
oh
yea
my own language is klurk made in java
#include <bits/stdc++.h> imports the entire C++ standard library - it's like if import * existed in Python, @mortal hull
k l u r k
the name is amazing
the fact that that exists makes me want to cry
:o, i hate java.util.* ๐
i don't think you can even do that in rust
i don't think there is recursive *
you could do use std::*; but i think that's about as far as you'd get
Lmfao
lemme get the syntax for klurk
yeah fuck it! no keyboard/mouse controls!!
Why do hpp files exist
hpp files confuse me
Can't you use normal header files on cpp
mhm
for headers that won't work in C
bits/stdc++.h is practically a gcc feature that exists just for competitive programming - it's basically never used in "the real world"
that's almost like asking why cpp files eixst \๐ฉ
Oh yeah
poggers
https://www.youtube.com/watch?v=OQ7uq04fEjs
i barely have any brain to spare
Kerosene Creek is a natural hot spring near Rotorua, on the North Island of New Zealand. And there have been official warnings for years: don't put your head under water. It turns out that "brain-eating amoebas", naegleria fowleri, are a real, if rare, thing.
Thank you to Associate Professor Siouxsie Wiles! Here are some of the references used ...
Lmfao that just flew over my head
average whatever this is fan
import java.util.Scanner;
public class HelloUser {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
System.out.print("What is your name? ");
String name = stdin.nextLine();
System.out.println("Hello, " + name + "!");
}
}
```vs average C# enjoyer
```cs
using static System.Console;
Write("What is your name? ");
var name = ReadLine();
WriteLine($"Hello, {name}!");
isn't that syntax somewhat.. new, though?
average using C# for usaco fan
the reason we have .cpp files in addition to .c is so that people know to use a C++ compiler to compile the code. The reason we have .hpp files in addition to .h is so that people know to only include the file in a C++ program.
average c# copium
boilerplate 
!e
#vs average python enjoyer
print(input("What is your name :"))
that code is readable though, it's pretty clear what it does if you know anything about Java
@hearty prawn :x: Your eval job has completed with return code 1.
001 | What is your name :Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | EOFError: EOF when reading a line
I forget how to make a hello world in the older C# style
the C# and Python versions are pretty clear even if you don't know anything about C# or Java
anyone here know java?
no one
review my shitty code plsty
heh
That's true. Although the C# one is a bit more confusing.
Making languages are fun
i was busy making the skeleton
Avery, howโs YS going?
if you're referring to the TLS, then yeah it was part of C# 9.0 which was released in february this year. even with the boilerplate though, C# is much cleaner:
// using static still exists in earlier C# versions but
// i want to make this version more "authentic"
using System;
class Program
{
static void Main()
{
Console.Write("What is your name? ");
var name = Console.ReadLine();
Console.WriteLine($"Hello, {name}!");
}
}
pov : java
ikr
i haven't done much work on it in a week or two
and java doesn't even have typedef ๐ฌ i still have time before the first comp ๐
oh right i remember the error now
imagine HashMap<Integer, ArrayList<Integer>> ๐ฉ
yea but it's fugly, way too big, and why do i have to import a scanner to get input ugh
inb4
SlashLang
tired of parentheses?
print / "Hello World" /
Parentheses begone!
!paste
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.
can't you do something like that with JS's custom template strings?
You might want to stick a .java?noredirect on that url
this is not a parser unfortunately
ssh
in my eyes it does what i need it to do
js uses backticks for template strings
it is a lexer not a parser
slashes are for regex
Honestly bytecode is pretty clean
There's no Node.insertAfter. The docs for insertBefore mention that, and say that if you need to insert something after a certain element, you need to do .insertBefore(thing, target.nextSibling()).
I think Microsoft's example uses namespace, as well...
using System;
namespace Application
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
}
}
That took a concerning amount of time to write :faint:
you're thinking of JS' regex literals
yes
yes it does
and it doesnt take much time u can just tab thru
actually I'm thinking of tagged template literals
Whenever I use it, I decide to procrastinate on learning JS and I just do something random in Python cause I'm bored
Kinda; console.log`hello` logs [ 'hello' ]
but it looks like they don't support custom quotes instead of ```, I misremembered that
yup, like that
i forgot those existed, nasty
should i continue working on my kernel
I wrote this line of code in my C program today:
elif (strncmp(current_char, ")", sizeof(current_char) / sizeof(char))) {
still wayyy too used to Python lol
I forgot that it was else if not elif
a lexer
oh no the lexer does that part
sizeof(current_char) / sizeof(char)
isn't that 1, or is this handling UTF-8?
public static void lexerCompiler(List toLexCompile) {
lexerInit();
for (int i = 0; i != toLexCompile.size() ; i++) {
correctTokens.add(Boolean.parseBoolean((String) toLexCompile.get(i)));
}
if(toLexCompile.toString().equals(printSyntax.toString())) {
System.out.println("wow u did it");
//System.out.println(getPrint(toLexCompile));
}
else {
//System.out.println(printSyntax);
System.out.println("Err");
System.out.println(toLexCompile);
}
?
oh current_char isn't named properly lol
only has support for print syntax rn but it's only a skeleton
it is a char array
ah, lmao
thanks for reminding me to rename it
Honestly trying to translate C to Rust is so confusing for me, not because I don't understand what's happening, but rather that I just don't get how specific things translate
Hm
toLexCompile.toString().equals(printSyntax.toString())
wait, isn't that just the length (in elements) of current_char, then, which must be constant in C?
I honestly wouldn't try to translate C to Rust, as it is its own separate thing
For me I just do it like another language
that code seems wrong - current_char is apparently a char* if you're passing it to strncmp, which means the 3rd argument always evaluates to 4 on a 32-bit platform, or 8 on a 64-bit platform
java moment
java moment
Eh, depends
more like js moment
C code can be translated to rust
what you're calling a "parser" is really a lexer tho
Rust is also a systems language

I mean it's not exactly rewriting the code for no reason, I'm just reading a book that uses C and want to write some of the stuff in Rust.
it's like a lexer but i call it a parser to feel cool
hmm, how would i accurately get the length of the char pointer?
I phrased that wrong - you can write code that does the same thing in rust that it does in C
Ohhh
but it's not a parser
Tysm
porting != translating
Craftinginterpreters ๐
ah yes, Rust
libc::strncmp(current_char.as_mut_ptr(), ')', current_char.len()) ๐ฅด
yes of course what else
strlen is located where?
Yeah that's my bad
sssh
string.h
huh
too hard for me idek what the fuck is going on
Not there I think, gonna search it up
why are you
why are you using libc strncmp to compare characters in rust ??????
Why not
why tho
Reptile is just built different
oh i missed the context
string.h
well, it's C, so clearly it's faster this way, right? ๐ฅด
Lol
Thanks!
oooh fuck i found my OS files
in ys you simply use the = command to compare character ๐
yes
!= for checking if two things are equal
i want ys
give download
match c {
// Check C first because C is faster
'C' => ...
'A' => ...
'B' => ...
...
}
Lmfao
How dafuq is C faster lol
lmfao
C is the new A
OHHHHHHH THAT'S THE JOKE
That is indeed the joike
i've made a few lemme show
C's got so many weird numerical types.
Types are weird to type out
fax
I don't understand the naming of types like uint8_t.
i'm just going to make a new kernel in C
_t says that it's a type
Naming convention
my old code is fucking shit
...that makes a lot of sense now
The uint part is just saying that it's an unsigned int
๐ฉ
this is some oldschool-Java shit
unsigned integer, 8 bits wide.
I get the uint8 part, but the _t confuzzled me
the _t is just old school C for "type"
there are bugs in the complib and the compiler itself is incomplete but if you want to look at what exists so far the compiler is https://github.com/nekodjin/ys, it takes in YS as input and produces readable nasm code as output. from there, nasm -felf64 output_file to assemble it, and ld -o program_name -L path/to/complib/directory -lys output_file.o (the complib can be found at https://github.com/nekodjin/libys, it contains both the nasm source code in src/x86_64/linux, as well as an assembled and bundled libys.a file in lib/x86_64/linux which is what you want to link against)
older school
oh i didn't mention, for both github repos i think you have to switch to the dev branch to get the working version
Oldest school
you won't find what you need in the master branch
oh
I'm mostly annoyed by the simultaneous existence of (unsigned) char/int/long/long long and (u)int8_t, int16_t,...
yes
??
why
why wouldn't I be annoyed by that? that's extra names that C only has because the sizes for the former kind, AFAIK, aren't guaranteed
why is your language code just a rust file printing helo world
what about int_least32_t and int_fast32_t?
Speedy ints
pong
yeah because C is meant to be portable, and when the standard was written (and even today in some fields), it's not guaranteed that they are byte-aligned, or even what bytes they're aligned to
these too, I guess
hellow brother
it's not guaranteed that they are byte-aligned, or even what bytes they're aligned to
yikes, that's even worse than I thought
oh i didn't mention, for both github repos i think you have to switch to the dev branch to get the working version
you won't find what you need in the master branch
i was about to say
I wonder how Zig implements types like i3.
????????????????????????????????? there are computers that don't have byte-aligned machine words, and they were quite prevalent when C was developed, so obviously C accommodated that..?
as the smallest byte-aligned size it can
I'm aware that the world was a horrible place where people had to walk to the computing center and back every day, uphill both ways, when C was developed, but that doesn't stop me from complaining about it still being like this today.
with an asterisk in cases where there are many of them in contiguous memory
You should basically never use short or long or long long if you care about portability. The old school short and long and long long types are there for performance in cases where you don't care about portability. If you care about portability, you should be using one of the stdint types.
of course it is still like this today, because A) there are some things you can reasonably break backwards compatibility for but changing the fundamental definition of integers is probably not one of them B) there are still tons of devices that don't have byte-aligned words that use C because C is the de-facto lingua franca of computers
for example, if you had a 2-long array of u3, it would store it in a single byte, since it can fit both of them in a single byte
Hmm, looks like Zig will actually guarantee the bit-width of integers in packed structs, which is interesting
also example, since bool is sized as u1, a [16]bool takes 2 bytes - in other words, arrays of bool in zig are automatically bitfields
it's not clear to me that that's a good thing... that's more compact, but much slower.
actually not significantly slower to care about on x86[_64], since bt instruction exist
i am with you though
bitfield by default, i don't like
more code in C should use int_fast32_t and int_fast64_t than does. Pretty much all code that uses a long long really ought to be using an int_fast64_t for portability's sake...
well, yes - but the point is, a long long might be 16 bits, or 32 bits, or 64 bits, or 128 bits... there's no way to know.
if you want a fast type that can hold a 64-bit integer, long long isn't guaranteed to give you that, but int_fast64_t is (or the code won't compile)
yes - assuming the only 2 options for __WORDSIZE are 32 and 64, anyway.
it'll be something different in the future if we ever have 128 bit processors.
right - and that's fine, because every platform that glibc supports today is either 32 bit or 64 bit.
if it supported a 128 bit platform, that code would probably not be correct.
but anyway, using the int_*t types means that all of the non-portable, platform-dependent stuff is stuck in the standard library, rather than in your application code.
this is why C makes me confusex as fuck
double gsl_log1p (const double x)
{
volatile double y, z;
y = 1 + x;
z = y - 1;
return log(y) - (z-x)/y ; /* cancels errors with IEEE arithmetic */
}
high-precision functions are magic 
any idea what software people use to makes images liek these (this is not from the internet btw custom made)
oh hey jack!
@sullen elm you not a lantern anymore?
sad
yeah that looks like it was taken from the internet lol
actually nvm
just use inkscape
i deleted. i just realized the thumbnail is against the rules lol
yeah lol
yeah, please be careful
although I dont blame you, the thumbnail doesn't match the contents
my face when i cant relate
https://www.youtube.com/watch?v=a6Fl1Xl1ogg now cry more
ProjectใemUใใจใฏใๆพค้ๅผไนใซใใใตใฆใณใใใฉใใฏใชใใคใใซใใญใธใงใฏใใ
ไปๅใฏใ่ช่บซใ้ณๆฅฝใๆ
ๅฝใใTVใขใใกใ้ฒๆใฎๅทจไบบใใตใฆใณใใใฉใใฏใ็ตๆฒใซใใใใผใซใชในใใปใใฅใผใธใทใฃใณใ่ฟใใฌใณใผใใฃใณใฐใใใใฆในใฟใธใชใงๆฎๅฝฑใใๆ ๅใๅ
ฌ้ใ
ProjectใemUใis the soundtrack revival project by Hiroyuki Sawano.
In this time, he has arranged a suite of music for the soundtrack of the TV animation โAttack on Titanโ which is the work he composed.
Watch the video re...
damn
bro I can hear the song keeping my headphones off of my ears wtf discord
my headphones are 30 cm away from me rn
yeah i much prefer when someone dies in many pieces
i think iโve got ghost pinged
wouldn't be new
Anyone know R
is there a more elegant way than cat(somevar, '\n', sep='') to print purely a variable followed by a newline?
Iโm hungry
nope
well u can ask the R discord server. want me to give u invite link? my R is rusty. last time i used it was in highschool
sad
They remove it?
ehh, it's ok, I can find the server if needed
R is kinda tripping with me since it has operators like %/% 
why you learning R? im curious
ML
anyways, I was here to declare that I am discontinuing Python
because it's slow
what was "uh hmm" for?
but sure python is slow but only slow for some heavy tasks. but it is also enough for some other tasks. it is not bad.
even though im a julia fanboi
what "heavy" tasks?
data science
yeah
hmm machine learning?
i mean you could use it for machine learning
i see alot of people using python
for ml
You have PyTorch
no no, I mean is it slow for ML?
i dont think so
i mean python by itself is slow. But most ML libraries are just Python wrappers of C/C++ libraries
its slow for things like game development and heavy graphics simulations
Failed to download: Got response 503 when trying to download a file.
(when downloading rust-analyzer server - auto by rust analyzer)
halp
but godot is a huge example of python being good at game dev too
not for triple A titles but still good enough to make some games
well, that's not python, since embedding python is an adventure on it's own
ye
but ye, simple games are just fine in python
guess who got raided ha ha
REvil, the whole shabang was there
interpol
fbi
everyone : D
europul
hmm what
any idea?
hmm
seems like service unaviable error
its server side
try downloading something else
Desktop 18.04 probably
all of those versions are outdated
ah, if this is a server, then you want 20.04 server
oh sure
choose 14.04.4 for sadness
at least it's LTS
What is this for?
why is the name given as vscode cofee?
huh?
vscode is a coffee machine
makes sense
MicroPython tho
is there a server for C#
!guilds
Communities
The communities page on our website contains a number of communities we have partnered with as well as a curated list of other communities relating to programming and technology.
I think there's a C# one in there
thanks mate
a vps
people
ah then just pick the latest ARM
i need a bit of help
vscode is acting a bit funky
/home/thelegendbeacon/.zshrc:23: command not found: pyenv
what (in vscode terminal only, NOT in WT)
in WT it works just fine
2nd problem - rust analyzer either errors out while trying to download a server, or it straight up goes forever
make sure pyenv is in PATH
windows terminal?
yes
are u on WSL?
yes
do you have the wsl extension for vscode?
yes
is it activated?
iirc you can check in the bottom left corner
can you run pyenv in the vscode terminal though?
no
command not found?
yes
is zsh set to your default login shell?
yes
also this all worked perfectly some time ago
i did not open vscode for about a month (due to exams)
oh try typing which -a pyenv in windows terminal. is pyenv installed on the windows side?
the pyenv in windows dont work in linux.
pyenv () {
local command
command="${1:-}"
if [ "$#" -gt 0 ]
then
shift
fi
case "$command" in
(rehash | shell) eval "$(pyenv "sh-$command" "$@")" ;;
(*) command pyenv "$command" "$@" ;;
esac
}
/home/thelegendbeacon/.pyenv/bin/pyenv
dont think so
there is pyenv for win
why did you do that..
dont remember doing it
just follow the README in pyenv
what is the best programming language if I have no problems with difficulty?
subjective tbh
wdym
C or assembly
sure
no
in your zshrc
export PYENV_ROOT=$HOME/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
remove your pyenv function
still if so add that in zshrc.
wait
did you cat the pyenv ? so u forgot ^
lol
already there
hmm
bruh it works nicely enough in windows terminal
imma try installing pyenv. this should be easy
so it should be working
I think the first 3 should be in ~/.zprofile
works on mine but sure
ik it works, but it's pointless setting the variables every single time
it either downloads forever or
it errors out with code 503
oh yeah sure
don't
don't mess with the system python
do all your work using pyenv or something
oh sure
D: CentOS?
stinky
i picked this
is Phsyics and Chemistry needed for CS?i am in science stream with cs as Optional. highschool. i want to Focus on CS . and Phsyics and Chemistry are not really my thing.
Not necessarily
Check what?
oh. cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
This is what it looks like for me
well
should be fine using apt, though
i was asking my friend and he said do yum etc
dont really like any of my subjects except cs and Who really likes to Study. but i hate physics chemistry. maths i think is still doable. and will be able to do it. i should have gone into arts with Maths as one of my subject and Cs as Optional so i can focus on those. i dont know why i chose science
um... yum uses .rpms...
cya later just had to rant
https://github.com/rust-analyzer/rust-analyzer/releases/download/2021-11-08/rust-analyzer-x86_64-unknown-linux-gnu.gz
is this error 503 for you too?
You really probably shouldn't be using anything other than apt
No, it downloads for me
wtf
Following the redirect:
curl -i 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/115039706/d43f0651-0e3d-4ce9-a120-a299b3da3c48?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211111%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211111T090229Z&X-Amz-Expires=300&X-Amz-Signature=3b6782bf2a777f1e9b8366b57aa27fb1b345f301b54e007056b5422983142315&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=115039706&response-content-disposition=attachment%3B%20filename%3Drust-analyzer-x86_64-unknown-linux-gnu.gz&response-content-type=application%2Foctet-stream'
HTTP/1.1 200 OK
wat
when i curl
it works too
but if i enter it into a web browser
it shows Error 503 Backend.max_conn reached
works in a browser for me
oh, I think I understand
Try restarting your computer
then try again
why is that?
okay lemme restart and tell
huh, its a different error now
Failed to download: request to https://api.github.com/repos/rust-analyzer/rust-analyzer/releases/tags/2021-11-08 failed, reason: getaddrinfo EAI_AGAIN api.github.com
what the
i am confused
wsl so ubuntu 20.04
You restarted your whole computer, right
yes
Morning ๐
then idk what to suggest
some random posts suggest maybe it's caused by oh-my-zsh somehow
taking my words back
um its an extension
What's an exension
i clicked retry
and back to error 503
rust-analyzer
of what?
im copy pasting log messages
what's rust-analyzer an extension of
its a rust language server alternative
mostly because its way better than the official one
so it's an extension of...
rust...?
What's that got to do with WSL, VSCode, and 503
because rust-analyzer is an extension on the marketplace
for...
something like this see
VSCode, surely...
it provides rust autocompletion and stuff for vscode
okay but what does this have to do with WSL then
because the extension is running inside the vscode server in WSL
im using the WSL integration with vscode
i think they're using vscode for windows with wsl extension
yes
you install the extension and then you either enable it through command palette or the bottom left button, which they have
what's the exension
remote: wsl
Remote - WSL, got it
then u can run code . in wsl and it will run it inside wsl
I did, and I fixed it
hm, I think it just worked for me
installing rust-analyzer in the WSL remote, I mean
maybe I'm crazy
is the error in some other aspect?
what error
did it download the rust analyzer server
if you didnt see the popup create a .rs file
Yes
hm
I saw the pop up, and it showed a little status bar
let me change my dns
I can relate to that
I had to google how to prevent suggestions from showing up when I'm typing comments
I remember it not being too intuitive
Yeah, that too
and everything's just in JSON so I'd have to look up settings or try and cheat with suggestions
And everything seems to have been named with obscure names
oh well
Yeah, I wish you luck, lol
or u can use the ui
and search
didn't show project specific settings
it sent me straight to the JSON
workspace settings?
idk
Yeah, you probably accidentally pressed a JSON-version settings in the command palette
Yes, I went to it
it gave me this terminal thing
and I went to the Rust settings
idk what to call it, it was a bar above the editor where you type what you're looking for
yeah
maybe the extension sent u to the json instead of the settings ui
it was language settings for Rust
Try pressing Ctrl+,
I already closed VSCode lol
yes
idc enough
Lmao
i dont have the rust extension anymore
but I did the GUI method of Ctrl+,
I thought the keybind was something like ctrl + shift + P
but I guess I was wrong
Yeah
well u can write >settings and it will do the same
that's basically what I did
I was trying to change the language server for Rust
idk, I thought it'd have been easier
hm
My guess is your Ubuntu DNS servers are wack
if it works on Windows, it should work on WSL unless there's a difference in settings
it didnt work on windows either but ok
man does rust analyzer ignore #![no_std]
lol rip
lo l
@royal jetty
idk if this can help with your understanding about how RegEx kind of works \๐ฉ
this kind of confuses
maybe I just take a look at some articles about it
.rp 1 Python regex
Here is the result:
.rp Python regex
Here are the top 5 results:
My favourite channel
let me guess, it's not this?
help, someone is idolizing my Discord profile :faint:
It's this
wat happened
why r they idolizing u
cypheriel?
Cypheriel and PyCerealObject
lmao ok
lol
@oak hemlock where did you get a pfp like that? It was non black and white a while ago
I was testing GitHub Copilot
this is what happened lol
messing with OpenCV stuff
cool
sus
@oak hemlock nice remix
what was I listening to
i am now idolizing your spotify
I already forgot
cerealtify
lmfao
I'm too irresistible
oh yes
wanna know what it is??
sure
Yep. And new too. epic launcher etc
it's an aMAZING IDEA
i was initially going to make a package manager
like brew but with a TUI and stuff
but i; dp that thaglst
wait u just realized
i thought i had been hinting hard enough smh
hi boyfriend
i will do this with u someday https://www.youtube.com/watch?v=gFbYJncXlm0
wtf
miami
oh yes. Miami, Cuba
any idea why this doesnt work?
qemu has many like
things to trigger it
ok but didnt i just install all of em
kthx
aliases
non-pyenv user spotted
woah
Why do you have a fuckaudio alias
Most of these are really weird lol
And a cy alias
uh so
excuse me
basically sometimes my mdp likes to forget that it has speakers
what is that alias
nothing...
@oak hemlock
lmao
oh no
:(
oh well
omg
oh no theyhere
oh he was just out of PP
pp lol
@jagged obsidian how dare u
thank god we stocked Ethers
What no I did not bully him
pp 
power points.
i saw it with my own eyes 
that's what it stands for, right?
(it was snowy)
sorry, my dog is blind
deja vu
atleast he doesn't bite
wtah server is that
the lunar server decided to commit sudoku
Nice
i really dont like aliases that much unless they do the same thing. but sure
e.g. bat -> cat
well it is your pc so suit yourself
ahah
i like aliases a lot
just dont do that in a production computer with many people using it
like i have gc for git clone, sure it only savbes a few seconds but god do those add up
otherwise u die
ahah
I didn't think you could alias commands with spaces
you can
very เถ indeed
So I wrote my own utilities in Python
#! /usr/bin/python3
import os
import sys
os.system(f'git clone {sys.argv[1]}')
That was pretty stupid tbh
เถ wait what this is an emoji?
lmfao
the identifiers cannot have spaces
No its impostor from amog us
yes ik that
but there is a solution
What
you can write a function
But why
Because I didn't know I could alias commands with spaces
i mean sure but i dont play among us anymore
function foo() {
if [[ "$1" == 'bar' ]]; then
echo 'Hello, world!'
fi
}
I think this should work, not sure
Oooor, I could write another utility in Python for that
it does
Okay I'm just kidding
LAPTOP-HLJCHUAA% function foo() {
if [[ "$1" == 'bar' ]]; then
echo 'Hello, world!'
fi
}
LAPTOP-HLJCHUAA% foo bar
Hello, world!
LAPTOP-HLJCHUAA
lol
nice name!!
Windows identifiers ๐
tell me why your hostname is like that
CBA changing it, I hardly use WSL
am switching to linux mint
Windows names computers like this
poor you :c
Mint likes to break packages
oh i see. i just name mine like this
especially during dups
Oh come on
and the only thing it does any differently is use Cinnamon as the DE
which nobody uses outside of Mint
i wonder what island you are in @jagged obsidian if that is fine for you to tell us or dm
no but your visit in ot wouldn't feel complete without petty hate of some distro
If you like the way Mint looks, I might suggest Ubuntu MATE
I think you'd like it
Island?
yes i do but i forgot
sad
Nvm i live in luzon
making my own package manager be like
is it in rust
hmmm nah im from Mindanao but sure.
I hope this is CLI, not TUI
it's in C
yeah CLI
Good
how about add the option Look at me crush
lmfao
\๐ค
because i know i'm going to fuck up
that's not going to turn out well
That is called coding-in-a-programming-language-without-garbage-collectors
10yo me but nobody ever thought there was anything wrong with that i just got bullied lol
when we go into elementary school, we're required to know where we live
all you have to do is free malloced stuff
something like that, I think
are there no strings in c?
we need to know like where we live, parent phone numbers, etc
char arrays
or you can have some funny condition and nobody fucking figures it out lmao
Doesn't C have a string type somewhere
Nah
I think if you do
#include <string.h>
or something
it is not really string but sure
i got them
string.h operates on char arrays
^
but doesn't it also have String type?
no, it only has char-array-helper-functions
er
perhaps I'm thinking of C++
C++ has std::string ye
whenever you're thinking of a nice thing, that's probably C++ ๐
lol
i was thinking about you ๐ฅบ
btw @oak hemlock why do you hate every distro but ubuntu
well it is World Single's Day
What the fuck there's a day for that
someone help me
ยฏ_(ใ)_/ยฏ
I don't hate anything other than Ubuntu, I just despise distributions that have no reason to exist other than to complicate things
No I think that's just my birthday
||Manjaro||
idk, some distributions strike me as only existing to make money and try to capture the newbie market
Does this say Manjaro behind it \๐ฉ
void doTask(int taskNum) {
if(taskNum == 1) {
printf("Search");
}
else if(taskNum == 2) {
printf("Look at installed packages");
}
else if(taskNum == 3) {
printf("Uninstall all packages");
}
else if(taskNum == 4) {
printf("Uninstall a certain package");
}
else {
printf("tf");
}
}
nah Manjaro too long

