#ot0-no-stealth-portals-please

3246 messages ยท Page 25 of 4

cursive agate
#

i dont get it

#

link me the vid rather than giving me a comment

hearty prawn
#

java is amazing

dusty aspen
#

yes

hearty prawn
#

\

#

anyways

#

here are my language tier list ig

#

Python
C++
Java
C

mortal hull
#

and those pieces of code are only equivalent if you know it's a bool

hearty prawn
#

i don't like since i suck at memory management and uh well no garbage colection :P

teal storm
#

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; }
}
cursive agate
#

waht am i seeing? Java vs C#?

teal storm
#

yes

cursive agate
#

damn i still know java by reading it

teal storm
#

lol

cursive agate
#

fucking grade 9 times where i got a 1.0 grade in cs

#

and now i am sad and stupid

viral hull
#

C# really does feel a lot like a polished Java.

thick widget
hearty prawn
#

hm

teal storm
#

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

mortal hull
#

usaco doesn't take C# tho

teal storm
mortal hull
#

๐Ÿ˜ฉ

teal storm
#

??

mortal hull
#

usa computing olympiad

teal storm
#

oh

viral hull
#

competitive programming

cursive agate
#

why

teal storm
#

comp prog sucks anyway

#

why wouldn't they take C# that makes no sense lol

mortal hull
#

ยฏ_(ใƒ„)_/ยฏ

#

because IOI doesn't

teal storm
#

where is list of languages usaco takes ?

mortal hull
#

C, Cpp, java, pascal, python

teal storm
#

bruh

viral hull
#

pascal!?

teal storm
#

how do you take pascal but not C# ๐Ÿคก

mortal hull
#

old ยฏ_(ใƒ„)_/ยฏ

viral hull
#

how dare you

cursive agate
#

ew

mortal hull
cursive agate
#

๐Ÿคฎ

mortal hull
#

oh yeah, i've started learning haskell and it's really cool

cursive agate
hearty prawn
#

i

viral hull
#

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.

hearty prawn
#

i'm going to learn memory management in c because why not

ocean walrus
#

Hi :D

mortal hull
cursive agate
mortal hull
#

i'm not sure what version they take, though

viral hull
hearty prawn
#

hm

#

i do not know where to start

cursive agate
fathom yew
#

damn this exists in microsoft store for free!!

cursive agate
#

and become sad in frustration

ocean walrus
mortal hull
#

apparently not pascal anymore

viral hull
hearty prawn
#

i might just read the c programmig language book in school

fathom yew
#

@cursive agate ๐Ÿ˜”

hollow holly
#

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)

cursive agate
viral hull
hearty prawn
#

ooh

cursive agate
viral hull
#

no, it is not

#

but the guy who wrote it also wrote a guide to network programming that is practically a bible for it

cursive agate
#

alright im adding it to my bookmark

teal storm
#

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;
    }
}
hearty prawn
#

time to memory manage c

ocean walrus
teal storm
#
uint
ulong
#

bruh

ocean walrus
#

Lmao

hearty prawn
#

i found it

teal storm
#

how did the highlight.js devs remember that C# has ulong but not uint

mortal hull
#

yeah but they fucked up python

teal storm
#

honestly it's mind-boggling

hearty prawn
ocean walrus
teal storm
#

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'
mortal hull
#

rofl

teal storm
#

the things that higlight.js remembers and forgets is honestly confounding

viral hull
ocean walrus
#

Ah

mortal hull
#

i used the "ANSI C programming" book

ocean walrus
#

Is it that much different from c99 or c11

cursive agate
#

latest c standard is c20 right?

ocean walrus
#

I use the c11 standard

viral hull
ocean walrus
#

Alright, so most code will work fine

ocean walrus
oak hemlock
#

a C standard from 32 years ago :faint:

ocean walrus
#

C29

viral hull
cursive agate
#

@IAmNotMilky#8284 + @Cypheriel#3463 = @Yum#4155

ocean walrus
#

Hm

hearty prawn
#

i have question

dusty aspen
#

it also breaks on completely valid ebnf

hearty prawn
#

iirc C is platofrm dependent right?

ocean walrus
#

I mean, they did have to highlight a shit ton of languages

cursive agate
hearty prawn
#

if i compile on mac, it only work on mac

dusty aspen
#

prismjs has been pretty nice for me

hearty prawn
#

RIGHT?

ocean walrus
#

Well

hearty prawn
#

how the fuck do i compile for windows?

cursive agate
hearty prawn
#

or linux

ocean walrus
hearty prawn
#

how

viral hull
#

The compiled output is platform dependent, but the input code can be cross-platform

ocean walrus
#

Er

teal storm
ocean walrus
#

Lmfao

#

Fair

dusty aspen
mortal hull
ocean walrus
#

I mean, couldn't you cross compile it

dusty aspen
#

Wait what's that

hearty prawn
#

the has to be my dad then

teal storm
hearty prawn
#

since he still uses a windows

ocean walrus
#

Some code is platform specific

teal storm
#

which is sometimes hard to do

oak hemlock
#

Now imagine doing C/C++ development on Windows without WSL or msys2

teal storm
#

lol

teal storm
#

honestly the YS compiler is probably only going to support linux, i can't deal with undocumented and/or unstable syscalls

hearty prawn
#

imagine using windows

oak hemlock
hearty prawn
#

unix ftw

teal storm
mortal hull
oak hemlock
#

without WSL, msys2, or mingw

hearty prawn
teal storm
#

what?

hearty prawn
#

wait you mean wsl?

teal storm
#

huh?????

hearty prawn
#

or something like gcc?

dusty aspen
#

She's talking about yeetskeet, her own language

hearty prawn
#

oh

teal storm
#

yea

hearty prawn
#

my own language is klurk made in java

viral hull
#

#include <bits/stdc++.h> imports the entire C++ standard library - it's like if import * existed in Python, @mortal hull

teal storm
#

k l u r k

hearty prawn
#

the name is amazing

dusty aspen
mortal hull
teal storm
#

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

hearty prawn
#

lemme get the syntax for klurk

fathom yew
ocean walrus
#

Why do hpp files exist

hearty prawn
#

hpp files confuse me

ocean walrus
#

Can't you use normal header files on cpp

hearty prawn
#

mhm

oak hemlock
#

for headers that won't work in C

viral hull
#

bits/stdc++.h is practically a gcc feature that exists just for competitive programming - it's basically never used in "the real world"

oak hemlock
#

that's almost like asking why cpp files eixst \๐Ÿ˜ฉ

hearty prawn
#

should i make klurk opensource???

#

i need someone to review code

ocean walrus
#

Oh yeah

mortal hull
#

poggers

static trout
#

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 ...

โ–ถ Play video
ocean walrus
#

Lmfao that just flew over my head

teal storm
# mortal hull :o, i hate `java.util.*` ๐Ÿ˜”

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}!");
oak hemlock
#

isn't that syntax somewhat.. new, though?

mortal hull
viral hull
#

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.

solid prawn
#

average c# copium

hearty prawn
#

!e

#vs average python enjoyer
print(input("What is your name :"))
dusty aspen
obtuse swallowBOT
#

@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
hearty prawn
#

you can give input but yeah

#

t

oak hemlock
#

I forget how to make a hello world in the older C# style

viral hull
hearty prawn
#

anyone here know java?

mortal hull
#

no one

hearty prawn
#

review my shitty code plsty

viral hull
#

heh

dusty aspen
hearty prawn
#

OH RIGHT MY LANGUAGE ISN'T DONE YET

#

i didn't really compile anything

hollow holly
#

Making languages are fun

hearty prawn
#

i was busy making the skeleton

hollow holly
#

Avery, howโ€™s YS going?

teal storm
# oak hemlock isn't that syntax somewhat.. new, though?

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}!");
    }
}
hearty prawn
#

pov : java

dusty aspen
teal storm
mortal hull
hearty prawn
#

oh right i remember the error now

oak hemlock
#

C# naming confuses me a bit tbh

#

everything is pascal case and camel case :faint:

mortal hull
teal storm
hollow holly
# dusty aspen ikr

inb4

SlashLang

tired of parentheses?

print / "Hello World" /

Parentheses begone!

hearty prawn
#

!paste

obtuse swallowBOT
#

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.

hearty prawn
#

more like shit parser

stone gyro
dusty aspen
hollow holly
#

Maybe, not sure as Iโ€™ve never used JS

#

actually I have, Iโ€™m just bad at it

stone gyro
#

understandable stance

#

every time I use it, I'm like "fuuuuck"

teal storm
hearty prawn
#

in my eyes it does what i need it to do

solid prawn
teal storm
#

it is a lexer not a parser

solid prawn
#

slashes are for regex

dusty aspen
#

Honestly bytecode is pretty clean

stone gyro
#

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()).

oak hemlock
teal storm
pliant canyon
#

and it doesnt take much time u can just tab thru

stone gyro
hearty prawn
#

and everything works

#

print -

hollow holly
sick olive
stone gyro
#

but it looks like they don't support custom quotes instead of ```, I misremembered that

stone gyro
teal storm
hearty prawn
#

should i continue working on my kernel

hollow holly
#

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

teal storm
hearty prawn
stone gyro
#

sizeof(current_char) / sizeof(char)
isn't that 1, or is this handling UTF-8?

hearty prawn
#
 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);
        }
teal storm
hollow holly
hearty prawn
#

only has support for print syntax rn but it's only a skeleton

hollow holly
#

it is a char array

stone gyro
#

ah, lmao

hollow holly
#

thanks for reminding me to rename it

dusty aspen
#

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

ocean walrus
#

Hm

teal storm
#

toLexCompile.toString().equals(printSyntax.toString())
despair

stone gyro
#

wait, isn't that just the length (in elements) of current_char, then, which must be constant in C?

hollow holly
viral hull
teal storm
#

java moment

solid prawn
#

more like js moment

ocean walrus
#

C code can be translated to rust

teal storm
#

what you're calling a "parser" is really a lexer tho

ocean walrus
#

Rust is also a systems language

teal storm
dusty aspen
hearty prawn
hollow holly
ocean walrus
#

I phrased that wrong - you can write code that does the same thing in rust that it does in C

teal storm
hollow holly
#

Tysm

teal storm
#

porting != translating

ocean walrus
stone gyro
dusty aspen
hollow holly
#

strlen is located where?

ocean walrus
hearty prawn
viral hull
#

string.h

hearty prawn
hollow holly
#

Not there I think, gonna search it up

teal storm
#

why are you
why are you using libc strncmp to compare characters in rust ??????

ocean walrus
#

Why not

teal storm
#

why tho

ocean walrus
#

Reptile is just built different

teal storm
#

oh i missed the context

viral hull
stone gyro
#

well, it's C, so clearly it's faster this way, right? ๐Ÿฅด

ocean walrus
#

Lol

hollow holly
hearty prawn
#

oooh fuck i found my OS files

teal storm
#

in ys you simply use the = command to compare character ๐Ÿ˜Ž

hearty prawn
#

yes

ocean walrus
#

!= for checking if two things are equal

hearty prawn
#

give download

stone gyro
#
match c {
    // Check C first because C is faster
    'C' => ...
    'A' => ...
    'B' => ...
    ...
}
ocean walrus
#

Lmfao

neat sparrow
#

How dafuq is C faster lol

ocean walrus
#

C is the new A

neat sparrow
#

OHHHHHHH THAT'S THE JOKE

ocean walrus
hearty prawn
#

i've made a few lemme show

stone gyro
#

C's got so many weird numerical types.

ocean walrus
#

Types are weird to type out

hearty prawn
#

fax

dusty aspen
#

I don't understand the naming of types like uint8_t.

hearty prawn
#

i'm just going to make a new kernel in C

ocean walrus
#

Naming convention

hearty prawn
#

my old code is fucking shit

dusty aspen
ocean walrus
#

The uint part is just saying that it's an unsigned int

stone gyro
viral hull
dusty aspen
#

I get the uint8 part, but the _t confuzzled me

ocean walrus
#

Like rusts u8

#

_t is naming convention by the stdlib for types iirc

viral hull
#

the _t is just old school C for "type"

teal storm
# hearty prawn i want ys

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)

mortal hull
teal storm
#

oh i didn't mention, for both github repos i think you have to switch to the dev branch to get the working version

ocean walrus
#

Oldest school

teal storm
#

you won't find what you need in the master branch

solid prawn
stone gyro
#

I'm mostly annoyed by the simultaneous existence of (unsigned) char/int/long/long long and (u)int8_t, int16_t,...

teal storm
hearty prawn
#

what the fuck?

#

alright bet

teal storm
#

@hearty prawn ??

#

(sorry for the ghost ping ๐Ÿ˜ญ )

stone gyro
# teal storm 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

hearty prawn
#

why is your language code just a rust file printing helo world

viral hull
ocean walrus
#

Speedy ints

supple pivot
#

pong

teal storm
stone gyro
#

these too, I guess

hearty prawn
stone gyro
#

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

teal storm
hearty prawn
#

i was about to say

stone gyro
#

I wonder how Zig implements types like i3.

teal storm
teal storm
stone gyro
teal storm
viral hull
teal storm
teal storm
hearty prawn
#

i need a project idea or i will die in school

#

i have PE next oh no

stone gyro
#

Hmm, looks like Zig will actually guarantee the bit-width of integers in packed structs, which is interesting

cursive agate
#

ConfusedREptile is liking zig

#

nice

#

@mbaruh#0278 <3

teal storm
viral hull
#

it's not clear to me that that's a good thing... that's more compact, but much slower.

teal storm
#

i am with you though

#

bitfield by default, i don't like

viral hull
#

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.

hearty prawn
#

this is why C makes me confusex as fuck

stone gyro
#
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 lemon_glass

sick olive
#

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

neat sparrow
#

yeah that looks like it was taken from the internet lol

#

actually nvm

#

just use inkscape

sick olive
#

oh ok

#

thanks

cursive agate
#

i deleted. i just realized the thumbnail is against the rules lol

fathom yew
#

yeah lol

eternal trail
#

yeah, please be careful

fathom yew
eternal trail
#

although I dont blame you, the thumbnail doesn't match the contents

cursive agate
#

yeah it is just clickbait for horny peopel

#

but tbh the content is funny hahaha

neat sparrow
#

my face when someone dies in one piece

cursive agate
eternal trail
#

ew, imagine crying because of anime

#

cries in Attack of Titan

cursive agate
# eternal trail *cries in Attack of Titan*

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...

โ–ถ Play video
eternal trail
#

damn

copper nimbus
#

my headphones are 30 cm away from me rn

hearty prawn
#

cries

serene dagger
cursive agate
#

i

#

realized to move and try emacs starting today

sick olive
#

i think iโ€™ve got ghost pinged

royal jetty
#

wouldn't be new

sick olive
#

Anyone know R lirikHMM is there a more elegant way than cat(somevar, '\n', sep='') to print purely a variable followed by a newline?

wooden lintel
#

Iโ€™m hungry

cursive agate
#

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

sick olive
#

They remove it?

cursive agate
#

i thought it was white listed

#

wasn't

#

imma modmail

sick olive
#

ehh, it's ok, I can find the server if needed

#

R is kinda tripping with me since it has operators like %/% ducky_cheese

cursive agate
#

why you learning R? im curious

fathom yew
#

anyways, I was here to declare that I am discontinuing Python

#

because it's slow

cursive agate
#

uh hmm okiee

#

idk how slow is slow you mean

fathom yew
cursive agate
#

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

fathom yew
#

what "heavy" tasks?

cursive agate
#

when involving large chunks of data

#

just as an example

faint condor
cursive agate
#

yeah

fathom yew
#

hmm machine learning?

faint condor
#

i mean you could use it for machine learning

#

i see alot of people using python

#

for ml

cursive agate
#

You have PyTorch

fathom yew
#

no no, I mean is it slow for ML?

faint condor
cursive agate
#

i mean python by itself is slow. But most ML libraries are just Python wrappers of C/C++ libraries

faint condor
#

its slow for things like game development and heavy graphics simulations

static trout
#

Failed to download: Got response 503 when trying to download a file.
(when downloading rust-analyzer server - auto by rust analyzer)
halp

faint condor
#

but godot is a huge example of python being good at game dev too

cursive agate
#

not for triple A titles but still good enough to make some games

clear root
#

well, that's not python, since embedding python is an adventure on it's own

faint condor
#

ye

clear root
#

but ye, simple games are just fine in python

sick olive
#

guess who got raided ha ha

#

REvil, the whole shabang was there

#

interpol
fbi
everyone : D

#

europul

cursive agate
#

hmm what

faint condor
#

hmm

#

seems like service unaviable error

#

its server side

#

try downloading something else

sick olive
#

hey hey which one

#

idk which Ubuntu to pick

#

not a linux human but i can use Ubuntu

still pike
clear root
#

all of those versions are outdated

sick olive
#

oh

#

i'm just trying to host my bot ๐Ÿ˜”

clear root
#

ah, if this is a server, then you want 20.04 server

sick olive
#

oh sure

cursive agate
oak hemlock
#

at least it's LTS

oak hemlock
sick olive
#

why is the name given as vscode cofee?

oak hemlock
#

huh?

solid prawn
#

vscode is a coffee machine

oak hemlock
#

makes sense

faint condor
#

is there a server for C#

viral hull
#

!guilds

obtuse swallowBOT
#

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.

viral hull
#

I think there's a C# one in there

faint condor
#

thanks mate

sick olive
static trout
#

people

oak hemlock
#

ah then just pick the latest ARM

static trout
#

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

static trout
#

it is

#

it works perfectly in windows terminal

cursive agate
#

windows terminal?

static trout
#

yes

cursive agate
#

are u on WSL?

static trout
#

yes

cursive agate
#

hm

#

i dunno then ยฏ_(ใƒ„)_/ยฏ

rustic parcel
#

do you have the wsl extension for vscode?

static trout
#

yes

rustic parcel
#

is it activated?

static trout
#

of course

#

pretty sure it is

rustic parcel
#

iirc you can check in the bottom left corner

static trout
#

most definitely is

#

there's no problem with pyenv in windows terminal

rustic parcel
#

can you run pyenv in the vscode terminal though?

static trout
#

no

rustic parcel
#

command not found?

static trout
#

yes

rustic parcel
#

is zsh set to your default login shell?

static trout
#

yes

#

also this all worked perfectly some time ago

#

i did not open vscode for about a month (due to exams)

rustic parcel
#

oh try typing which -a pyenv in windows terminal. is pyenv installed on the windows side?

cursive agate
static trout
#
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

cursive agate
#

there is pyenv for win

cursive agate
static trout
#

dont remember doing it

cursive agate
#

just follow the README in pyenv

static trout
#

thats what i did

#

dont remember doing that

fathom yew
#

what is the best programming language if I have no problems with difficulty?

fathom yew
#

wdym

static trout
#

is it a nuke?

#

should i nuke my wsl?

fathom yew
#

sure

cursive agate
#

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

static trout
#

ok

#

as i said

#

the pyenv function isnt even in zshrc

cursive agate
cursive agate
#

lol

cursive agate
static trout
#

bruh it works nicely enough in windows terminal

cursive agate
#

imma try installing pyenv. this should be easy

static trout
oak hemlock
cursive agate
static trout
#

anyways onto the 2nd problem

#

rust-analyzer

oak hemlock
static trout
#

it either downloads forever or

static trout
oak hemlock
#

server error \๐Ÿค”

#

what is that, Service Unavailable? or what

static trout
#

where does it download from anyway

#

it did ask me to put a token in

#

so i did

sick olive
#

i'm in

#

how do i update python ?

fallen tangle
#

don't

#

don't mess with the system python

#

do all your work using pyenv or something

sick olive
#

oh sure

oak hemlock
sick olive
#

๐Ÿ˜”

#

yes i think

oak hemlock
#

stinky

sick olive
#

i picked this

oak hemlock
#

er

#

and it's... CentOS?

queen venture
#

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.

sick olive
#

how do i check ?

oak hemlock
#

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

sick olive
oak hemlock
#

lol

#

then why do you have yum \๐Ÿ˜ฉ

sick olive
#

well

oak hemlock
#

should be fine using apt, though

sick olive
#

i was asking my friend and he said do yum etc

queen venture
#

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

oak hemlock
queen venture
#

cya later just had to rant

oak hemlock
#

Fedora, SUSE, and Red Hat are what use .rpm

#

Debian and Ubuntu use dpkg and .deb

oak hemlock
#

You really probably shouldn't be using anything other than apt

static trout
#

wtf

oak hemlock
#

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
static trout
#

wat

#

when i curl
it works too

#

but if i enter it into a web browser

#

it shows Error 503 Backend.max_conn reached

oak hemlock
#

works in a browser for me

#

oh, I think I understand

#

Try restarting your computer

#

then try again

tepid echo
#

why is that?

static trout
#

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

oak hemlock
#

what the

static trout
#

i am confused

oak hemlock
#

What is this?

#

like... desktop? server? what OS?

static trout
#

wsl so ubuntu 20.04

oak hemlock
#

You restarted your whole computer, right

static trout
#

yes

broken wasp
#

Morning ๐Ÿ˜„

oak hemlock
#

then idk what to suggest

#

some random posts suggest maybe it's caused by oh-my-zsh somehow

fathom yew
static trout
oak hemlock
static trout
#

i clicked retry
and back to error 503

static trout
oak hemlock
#

of what?

static trout
oak hemlock
#

what's rust-analyzer an extension of

static trout
#

its a rust language server alternative

#

mostly because its way better than the official one

oak hemlock
#

so it's an extension of...

#

rust...?

#

What's that got to do with WSL, VSCode, and 503

static trout
oak hemlock
#

for...

static trout
#

something like this see

oak hemlock
#

VSCode, surely...

static trout
#

it provides rust autocompletion and stuff for vscode

oak hemlock
#

okay but what does this have to do with WSL then

static trout
#

because the extension is running inside the vscode server in WSL

oak hemlock
#

so you installed VSCode in WSL...?

#

what am I not understanding

static trout
#

im using the WSL integration with vscode

rustic parcel
#

i think they're using vscode for windows with wsl extension

static trout
#

yes

oak hemlock
#

._.

#

What's this WSL extension

rustic parcel
#

to make you be able to do dev in vscode but for wsl

#

wsl environment

oak hemlock
#

but what is it

#

How do you enable it

rustic parcel
#

you install the extension and then you either enable it through command palette or the bottom left button, which they have

oak hemlock
#

what's the exension

pliant canyon
#

remote: wsl

oak hemlock
#

Remote - WSL, got it

pliant canyon
#

then u can run code . in wsl and it will run it inside wsl

rustic parcel
#

yep

#

it's basically wsl vscode server like the remote ssh extension

oak hemlock
#
% code .
zsh: command not found: code
#

._.

pliant canyon
#

restart shell

#

did u remove windows paths

oak hemlock
#

I did, and I fixed it

pliant canyon
#

yes

#

as it would

oak hemlock
#

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?

pliant canyon
#

what error

oak hemlock
#

idk, ask @static trout

#

I'm just trying to replicate what they got

static trout
#

did it download the rust analyzer server

#

if you didnt see the popup create a .rs file

oak hemlock
static trout
#

hm

oak hemlock
#

I saw the pop up, and it showed a little status bar

static trout
#

let me change my dns

oak hemlock
#

loaded to completion

#

God, VSCode settings confuse the heck out of me

sick olive
#

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

oak hemlock
#

I hate all of it

#

so many different places for all of these settings

sick olive
#

Yeah, that too

oak hemlock
#

and everything's just in JSON so I'd have to look up settings or try and cheat with suggestions

sick olive
#

And everything seems to have been named with obscure names

oak hemlock
#

oh well

sick olive
#

Yeah, I wish you luck, lol

oak hemlock
#

at least I won't be using VSCode

#

just gonna... give up and not care

pliant canyon
#

and search

oak hemlock
#

it sent me straight to the JSON

pliant canyon
#

workspace settings?

oak hemlock
#

idk

pliant canyon
#

huh why

#

theres a tab for workspace settings

sick olive
#

Yeah, you probably accidentally pressed a JSON-version settings in the command palette

oak hemlock
#

it gave me this terminal thing

pliant canyon
#

yes

#

no

oak hemlock
#

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

pliant canyon
#

command pallete

#

the one where u >command?

oak hemlock
#

yeah

pliant canyon
#

maybe the extension sent u to the json instead of the settings ui

oak hemlock
#

it was language settings for Rust

sick olive
#

Try pressing Ctrl+,

oak hemlock
#

I already closed VSCode lol

pliant canyon
oak hemlock
#

idc enough

sick olive
pliant canyon
#

i dont have the rust extension anymore

oak hemlock
#

but I did the GUI method of Ctrl+,

#

I thought the keybind was something like ctrl + shift + P

#

but I guess I was wrong

sick olive
#

Yeah

pliant canyon
#

well u can write >settings and it will do the same

oak hemlock
#

I was trying to change the language server for Rust

#

idk, I thought it'd have been easier

pliant canyon
#

hm

static trout
#

also btw a vpn worked

#

so i think it was a problem with my isp

oak hemlock
#

if it works on Windows, it should work on WSL unless there's a difference in settings

static trout
#

man does rust analyzer ignore #![no_std]

oak hemlock
thick widget
#

a really fun game

#

still older than most dreamstans

pliant canyon
#

lo l

oak hemlock
#

@royal jetty

#

idk if this can help with your understanding about how RegEx kind of works \๐Ÿ˜ฉ

royal jetty
#

maybe I just take a look at some articles about it

#

.rp 1 Python regex

median swallowBOT
royal jetty
#

.rp Python regex

median swallowBOT
#

Here are the top 5 results:

Regular Expressions: Regexes in Python (Part 1)
Regular Expressions: Regexes in Python (Part 2)
Namespaces and Scope in Python
A Practical Introduction to Web Scraping in Python
burnt tinsel
#

My favourite channel

royal jetty
#

let me guess, it's not this?

oak hemlock
#

help, someone is idolizing my Discord profile :faint:

burnt tinsel
static trout
#

why r they idolizing u

oak hemlock
#

some guy asking how to make a name like mine

#

and how they liked my bio

static trout
oak hemlock
#

Cypheriel and PyCerealObject

static trout
#

lmao ok

oak hemlock
#

lol

sick olive
#

you're popular among us

#

people wonna be pycereal and sir hspโš”๏ธ

royal jetty
#

@oak hemlock where did you get a pfp like that? It was non black and white a while ago

oak hemlock
#

this is what happened lol

#

messing with OpenCV stuff

royal jetty
#

cool

serene dagger
pale mesa
#

@oak hemlock nice remix

oak hemlock
#

what was I listening to

pale mesa
oak hemlock
#

I already forgot

pale mesa
oak hemlock
#

oh

#

indeed

pale mesa
#

cerealtify

hearty prawn
#

hello

#

what's everyone working on

oak hemlock
#

I get it. you have a crush on me too \๐Ÿ˜ฉ

hearty prawn
#

lmfao

oak hemlock
#

I'm too irresistible

hearty prawn
#

lmfao

#

@oak hemlock i finnally ot a porject idea

oak hemlock
#

oh yes

hearty prawn
#

wanna know what it is??

oak hemlock
#

sure

hearty prawn
#

a game organization thing

#

one launcher all games

#

amazing idea i know

sick olive
#

Yep. And new too. epic launcher etc

oak hemlock
#

huh

#

so like

#

whatever Razer has

hearty prawn
#

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

pale mesa
oak hemlock
#

O_O

#

yes

pale mesa
#

i thought i had been hinting hard enough smh

oak hemlock
#

oops

#

we're dating now

pale mesa
#

hi boyfriend

oak hemlock
#

answered

#

hi

oak hemlock
#

oh god

#

you're doing this just to haunt me

quasi cape
#

wtf

pale mesa
#

what no

#

i am just expressing my purest love ๐Ÿ™

oak hemlock
#

oops

#

I accept fsfs

#

heading to Cuba rn

quasi cape
#

miami

oak hemlock
#

oh yes. Miami, Cuba

static trout
#

any idea why this doesnt work?

hearty prawn
#

things to trigger it

static trout
#

ok but didnt i just install all of em

hearty prawn
#

uh

#

idts

jagged obsidian
#

you should install qemu-system-x86 package

#

Not just qemu

static trout
#

kthx

hearty prawn
#

aliases

oak hemlock
static trout
jagged obsidian
oak hemlock
#

Most of these are really weird lol

jagged obsidian
#

And a cy alias

hearty prawn
oak hemlock
#

excuse me

hearty prawn
#

basically sometimes my mdp likes to forget that it has speakers

oak hemlock
#

what is that alias

hearty prawn
#

mbp*

#

it's to restart audio drivers

hearty prawn
jagged obsidian
#

huh ok

#

and who is cy

hearty prawn
#

@oak hemlock

static trout
#

lmao

oak hemlock
#

@pale mesa someone is bullying me

#

dispose of them ty

hearty prawn
#

oh no

oak hemlock
#

I've called my guard dog ๐Ÿ˜ผ

#

hm. he's totally and completely deceased

hearty prawn
#

:(

oak hemlock
#

oh well

pale mesa
hearty prawn
oak hemlock
#

omg

hearty prawn
#

oh no theyhere

oak hemlock
#

oh he was just out of PP

jagged obsidian
#

pp lol

pale mesa
#

@jagged obsidian how dare u

oak hemlock
#

thank god we stocked Ethers

jagged obsidian
serene dagger
#

pp lemon_hyperpleased

oak hemlock
#

power points.

pale mesa
oak hemlock
#

that's what it stands for, right?

oak hemlock
#

sorry, my dog is blind

#

deja vu

jagged obsidian
#

atleast he doesn't bite

hearty prawn
jagged obsidian
#

wtah server is that

hearty prawn
#

the lunar server decided to commit sudoku

jagged obsidian
#

Nice

cursive agate
#

e.g. bat -> cat

hearty prawn
#

IM ACTUALLY A GOD at pearl pvp

#

kbpvpftw

cursive agate
#

well it is your pc so suit yourself

hearty prawn
#

i like aliases a lot

cursive agate
#

just dont do that in a production computer with many people using it

hearty prawn
#

like i have gc for git clone, sure it only savbes a few seconds but god do those add up

cursive agate
#

otherwise u die

hearty prawn
#

ahah

jagged obsidian
#

I didn't think you could alias commands with spaces

hearty prawn
#

you can

static trout
#

very เถž indeed

hearty prawn
#

.cat

#

catify

jagged obsidian
#

That was pretty stupid tbh

cursive agate
#

เถž wait what this is an emoji?

hearty prawn
#

lmfao

oak hemlock
jagged obsidian
jagged obsidian
oak hemlock
#

but there is a solution

jagged obsidian
#

What

oak hemlock
#

you can write a function

jagged obsidian
cursive agate
oak hemlock
#
function foo() {
    if [[ "$1" == 'bar' ]]; then
        echo 'Hello, world!'
    fi
}
#

I think this should work, not sure

jagged obsidian
#

Oooor, I could write another utility in Python for that

jagged obsidian
oak hemlock
#
LAPTOP-HLJCHUAA% function foo() {
    if [[ "$1" == 'bar' ]]; then
        echo 'Hello, world!'
    fi

}
LAPTOP-HLJCHUAA% foo bar
Hello, world!
jagged obsidian
#

LAPTOP-HLJCHUAA

oak hemlock
#

lol

jagged obsidian
#

nice name!!

oak hemlock
#

Windows identifiers ๐Ÿ˜”

cursive agate
oak hemlock
#

CBA changing it, I hardly use WSL

jagged obsidian
#

am switching to linux mint

oak hemlock
oak hemlock
jagged obsidian
#

oh god why

#

do ou have another reason to hate on anotehr distro!???

oak hemlock
#

Mint likes to break packages

cursive agate
oak hemlock
#

especially during dups

jagged obsidian
#

Oh come on

oak hemlock
#

lol

#

it mixes Ubuntu and Debian packages

#

Tell me how you think that is a sane idea

jagged obsidian
#

Uh idk

#

It isn't

oak hemlock
#

and the only thing it does any differently is use Cinnamon as the DE

#

which nobody uses outside of Mint

cursive agate
#

i wonder what island you are in @jagged obsidian if that is fine for you to tell us or dm

serene dagger
oak hemlock
#

If you like the way Mint looks, I might suggest Ubuntu MATE

#

I think you'd like it

cursive agate
#

well youre filipino so

#

living in an archipelago

#

ยฏ_(ใƒ„)_/ยฏ

jagged obsidian
#

yes i do but i forgot

cursive agate
#

sad

hearty prawn
jagged obsidian
#

Nvm i live in luzon

oak hemlock
#

oh yes

#

"I forgot where I live"

hearty prawn
#

making my own package manager be like

jagged obsidian
cursive agate
oak hemlock
hearty prawn
hearty prawn
jagged obsidian
cursive agate
hearty prawn
#

lmfao

oak hemlock
#

When I think of C

#

I flinch at the thought of memory leaks

hearty prawn
#

i know

#

that's why i'm trying to not to use variables

oak hemlock
#

\๐Ÿค”

hearty prawn
#

because i know i'm going to fuck up

oak hemlock
#

that's not going to turn out well

jagged obsidian
serene dagger
oak hemlock
#

when we go into elementary school, we're required to know where we live

jagged obsidian
oak hemlock
#

something like that, I think

hearty prawn
#

are there no strings in c?

oak hemlock
#

we need to know like where we live, parent phone numbers, etc

jagged obsidian
serene dagger
#

or you can have some funny condition and nobody fucking figures it out lmao

oak hemlock
#

Doesn't C have a string type somewhere

jagged obsidian
#

Nah

oak hemlock
#

I think if you do

#include <string.h>

or something

cursive agate
hearty prawn
#

i got them

jagged obsidian
cursive agate
#

^

oak hemlock
jagged obsidian
oak hemlock
#

er

jagged obsidian
#

like strcmp and other stuff

#

but i'm not really sure about that

oak hemlock
#

perhaps I'm thinking of C++

jagged obsidian
#

C++ has std::string ye

stone gyro
#

whenever you're thinking of a nice thing, that's probably C++ ๐Ÿ™‚

oak hemlock
#

lol

serene dagger
jagged obsidian
#

btw @oak hemlock why do you hate every distro but ubuntu

cursive agate
#

well it is World Single's Day

jagged obsidian
#

What the fuck there's a day for that

hearty prawn
#

someone help me

cursive agate
oak hemlock
jagged obsidian
oak hemlock
#

idk, some distributions strike me as only existing to make money and try to capture the newbie market

oak hemlock
hearty prawn
#
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");
    }
}
oak hemlock
#

nah Manjaro too long