#🪅-progaming

1 messages · Page 34 of 1

valid jetty
#

consider

use std::mem;

struct Foo {
    a: [u8; 4]
}

fn main() {
    let foo = Foo { a: [255, 255, 255, 17] };

    unsafe {
        let foo_as_int = mem::transmute::<Foo, i32>(foo);
        dbg!(foo_as_int);
    }
}
deep mulch
#

thats cool

#

what kind of usages for it

valid jetty
valid jetty
# deep mulch what kind of usages for it

it converts between different types by just “reinterpreting the bytes”, kind-of just like “disabling the type-checker” somewhat (if “disabling the type-checker” sounds bad, that’s because it is pretty bad),

frosty obsidian
#

so it's for people that want to do fucky things

valid jetty
#

sure

deep mulch
#

@frosty obsidian innertube

frosty obsidian
#

thats your job

deep mulch
#

hypothetically how much would i have ot pay you to work on innertube @frosty obsidian

frosty obsidian
#

a lot

valid jetty
#

2 headpats

#

(daily)

frosty obsidian
#

more than your job pays you probably

deep mulch
#

froggy

#

i will work double shifts

#

wing is 75 years old

valid jetty
#

yeah i am

#

wrong account

deep mulch
#

horror

hoary sluice
#

new year new me

frosty obsidian
#

this isn't the off topic channel

hoary sluice
#

this year im going to make this snake suffocate

placid cape
#

:D

valid jetty
#

im trying to write the gc to collect on a seperate thread using libthreads but its not working 😭

#

am i doing something wrong

fn gc_worker_thread(GCWorker *worker) {
    GCAllocator *gc = worker.gc;

    while true {
        pthread_mutex_lock(worker.mutex);

        while !worker.is_collecting && !worker.should_stop {
            pthread_cond_wait(worker.cond, worker.mutex);
        }

        if worker.should_stop {
            pthread_mutex_unlock(worker.mutex);
            break;
        }

        pthread_mutex_unlock(worker.mutex);

        gc.mark();
        gc.sweep();

        pthread_mutex_lock(worker.mutex);
        worker.is_collecting = false;
        pthread_mutex_unlock(worker.mutex);
    }

    return nil;
}
deep mulch
#

@valid jetty blobcatcozy

valid jetty
#

nope

#

nothing to blobcatcozy about until i have this gc working on a seperate thread

twilit sigil
valid jetty
#

IT WORKS

#

i forgot to sleep in the main thread

#

so it was just stopping execution before the gc thread could start up

hoary sluice
#

i wonder if i can write a whisper wrapper in rust before i fall asleep

#

oops zed crashed

#

??? error opening [PathWithPosition { path: "/home/eagely/workspace/voice/recognition", row: None, column: None }]: VulkanError(ERROR_INITIALIZATION_FAILED)

placid cape
#

so you're gonna use whisper

hoary sluice
#

always was gonna

#

what else

#

its awesome

#

and has cpp bindings which someone bound to rust

placid cape
#

cool

#

and youre gonna run it locally right?

hoary sluice
#

yes

#

my zed keeps crashing 😭

placid cape
#

whaat

#

that happened to me only few times while opening really big files

hoary sluice
#

ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs: Failed to detect any valid GPUs in the current config

#

ok ig i dont have a gpu anymore

#

ok i think i found the issue

#

if i dont talk here again it means my os crashed while updating kernel

placid cape
#

okay blobcatcozy

hoary sluice
#

oh wait nvm i have btrfs auto snapshots

#

i could just reboot into the past

jade stone
#

Why is there nanoid in my dot files

hasty vessel
deep mulch
#

@jade stone sadan

jade stone
#

@deep mulch Jumpscare

placid cape
valid jetty
jade stone
#

You have to index it with negative numbers

valid jetty
#

yep

placid cape
#

i love rust

#

i fucking love rust

#

never gonna touch python and the pip shit again

#

broken shit that doesnt work after few months

hoary sluice
#

omg same

ornate quiver
#

python rot

hoary sluice
#

it works

#

(the text is bs cause i was speaking unclearly and its using the tiny model)

placid cape
#

but pip didnt like it :))

hoary sluice
#

hm wait its actually good

#

the transcription is reasonable

#

for tiny model

placid cape
#

now i tried to use the cpp whisper with rust bindings and its amazing

hoary sluice
placid cape
#

i just did cargo run instead of solving 4498498498498498498 pip issues

hoary sluice
#

and with a bit of copilot magic i got a finished product in an hour

placid cape
#

nice, i have working speech to text for slovak language

#

so i have to work on the mobile app

hoary sluice
#

17 second audio

#

on the cpu

#

with tiny model

hoary sluice
placid cape
#

like to connect it to the network, stats etc

hoary sluice
hoary sluice
#

and starting to regret that now

#

id love to write it in yew but its already fixed

#

the title of the project is literally "voice assistant qt frontend"

placid cape
#

i'll probably use kotlin multiplatform or flutter

hoary sluice
#

and i need a working prototype before february

#

i spent a month trying to set up audio recording in qt

placid cape
#

i need something this week

hoary sluice
#

gave up, ffmpeg instead

placid cape
#

probably not the mobile app but at least the speech recognition

#

which was way easier than i expected lol

hoary sluice
#

yea ikr

placid cape
#

if i forget about the python shit

hoary sluice
placid cape
#

why not monorepo

hoary sluice
#

meh

#

idk

#

should i make it one

placid cape
#

i tried using vosk first which works also very good but doesnt have model for slovak

hoary sluice
#

i have different licenses on it lol

placid cape
#

im using apache 2.0 and in blom i have eupl 1.2

hoary sluice
#

gpl on backend mit on whisper

placid cape
hoary sluice
#

im using cc0 for docs template

#

and mit for docs themselves

#

i dont see mit here

#

thats prob a big issue

#

a lot of ppl use mit

placid cape
#

hm thats true

hoary sluice
#

why eupl?

placid cape
#

i need to study it more

placid cape
hoary sluice
#

how do u have 285 followers

#

famous

placid cape
#

i have no idea tbh

#

few because of bun maybe?

hoary sluice
#

wtf u made the bot?

placid cape
#

yes and also setup-bun action

hoary sluice
#

why are u a mod in the bun server

#

whats so cool abt bun

placid cape
#

and im collaborator in oven-sh/bun

placid cape
#

not really in bun codebase, but with other things around bun

#

but i worked on node:os implementation

#

jarred gave me vps with 60 gb ram because zig compiler required a lot of memory

hoary sluice
#

i will never do anything related to javascript again

placid cape
#

i also dont want to touch ts and python anymore if i dont have to

hoary sluice
#

u still have java #1

valid jetty
#

lmao it turns out making the GC threaded is actually just pointless

#

it solves nothing

placid cape
#

it scrapes all repositories i contributed into

#

so i probably contributed to more mc clients? not sure

hoary sluice
#

should i make this a monorepo

#

i feel like its confusing at this point

placid cape
#

monorepos with multiple langs are bit confusing but i think it's way better than having multiple repos for the same project

valid jetty
# valid jetty it solves nothing

either

  • the gc runs at the same time as the allocator and doesnt block which causes a desync and the marking function will just keep marking more and more things as things keep being allocated
  • the allocator waits for collection to finish if it started which is literally just synchronous atp
hoary sluice
valid jetty
#

is there a way i can make this work

placid cape
#

yeah definitely make monorepo

valid jetty
placid cape
deep mulch
placid cape
#

it also has something like "toolchains" for some languages but i dont use it

deep mulch
placid cape
#

i just use it for the tasks and it works great

hoary sluice
#

what is that

valid jetty
#

omg blom

#

open source

#

finally

placid cape
#

i need to fix the analyzer but dont have time

hoary sluice
#

gn

placid cape
#

gnn

valid jetty
#

gn

placid cape
#

tree sitter

valid jetty
#

blehhhh idk how to make this concurrent gc work in the background

#

apparently i need to setup a generational gc where small short lived objects are collected using stop-the-world and then long lived objects are collected every once in a while concurrently

hoary sluice
#

wtf is that a threat to end the world

valid jetty
#

stop-the-world basically just means suspend the main thread while gc is happening lol

hoary sluice
#

isnt that horror

valid jetty
#

for short lived allocations no

#

for many long lived allocations yes

#

thats what im currently trying to solve

hoary sluice
#

ah ok

valid jetty
#

mostly the marking phase takes absolutely forever

placid cape
#

blom syntax on website 🔥

#

i hate textmate

valid jetty
#

theres a 16mb allocation threshold before it tries to collect

#

i decided to just keep it synchronous

#

it runs in 0.876 seconds with this version of the GC

#

ok well it actually fucking works

#

ive been trying to implement a hashmap into this for SO LONG

#

im so glad its way faster now

#

its actually usable for aoc (it went from taking 17 minutes with the old gc marking algorithm to taking 3.5 seconds for my slowest solution)

#

might need to implement something like this instead of a linked list for the buckets? https://en.wikipedia.org/wiki/Red–black_tree

In computer science, a red–black tree is a self-balancing binary search tree data structure noted for fast storage and retrieval of ordered information. The nodes in a red-black tree hold an extra "color" bit, often drawn as red and black, which help ensure that the tree is always approximately balanced.
When the tree is modified, the new tree i...

#

yeah ok

valid jetty
valid jetty
deep mulch
valid jetty
#

only took a week of suffering and 17 mental breakdowns

hoary sluice
#

gb

#

gm

hoary sluice
hoary sluice
dense sand
hoary sluice
#

@placid cape is ur family german

placid cape
hoary sluice
placid cape
#

yeah it's German

#

There's also someone on wikipedia https://en.m.wikipedia.org/wiki/Josef_Steinhübl

Josef Steinhübl (26 March 1902 – 18 April 1984) was a German politician and Catholic priest.
Steinhübl was born on 26 March 1902 in Deutsch-Proben. He lost his father at the age of three. He studied at Roman Catholic secondary school in Prievidza 1912–1918, and went on the study theology 1920–1921 at the University of Brno faculty in Olomouc and...

hoary sluice
#

have u talked with ur paretnts abt it

placid cape
#

not really but i think that it must definitely be someone

#

my father is from nitrianske pravno

hoary sluice
#

surely they know someone

placid cape
#

yeah probably

hoary sluice
#

im like 6% german

#

ur steinhübl might be from austro hungary

placid cape
#

idk /shrug

#

Do you have school today?

hoary sluice
#

yes

placid cape
#

i start tomorrow

#

Today they cancelled education in my school

#

it's like "tradition" xd

#

so I really have to study because I have physics exam tomorrow, essay from english and test from slovak aaa

hoary sluice
#

i have a presentation tomorrow abt a book i barely started reading

dense sand
#

What is this

#

Our teachers are going crazy again

valid jetty
#

good morning

valid jetty
#

garbage collector 🙏🎀🎀🎀🎀

hoary sluice
#

@placid cape do u use moonrepo

#

is it just ci/cd

valid jetty
#

monorepo is just git submodules

#

a folder isn’t cloned directly into your project but is instead a submodule which is linked to another repo and you sync it and stuff

placid cape
#

well depends

#

on GitHub it's all in one repository

#

when you have another git provider like Google has then it's done like that

hoary sluice
placid cape
#

but you can also achieve this by using git subtree which I used for tree-sitter-blom because it has to be in another repository

placid cape
hoary sluice
placid cape
hoary sluice
#

or do it manually

placid cape
#

when using submodules you can't edit them in the monorepo I think

hoary sluice
#

i want one big repo for everything i thinc

#

but i have a few commits with names specific to the project

placid cape
#

then don't use submodules nor subtree

#

because there's no good way to achieve what Rosie means on github

hoary sluice
#

maybe i should just push everything in a commit "sync project into monorepo"

cerulean plover
#

how have i not known about git subtree

placid cape
#

👍

jade stone
cerulean plover
#

I literally just learned what it is

placid cape
cerulean plover
#

git submodule but fake blobcatcozy

placid cape
#

I think you can't edit the submodule in the repo you have it

#

you must directly change the submodule in its own repo

#

but idk

#

"Use subtree when you just want to copy code from an external repo once, or maybe with occasional pulls. Use submodule when you want to make your relationship to the external repo really explicit, or if you intend to make changes to the submodule code from within the context of your repo and push to the external repo."

#

okay nvm

hoary sluice
#

im gonna use neither

placid cape
#

submodule - link, subtree - copy

#

I love monorepos because then you don't have to make organisation/bunch of repos

hoary sluice
placid cape
#

if you're using something like sourcehut where you can group git repos into project then you don't have to do that if your projects don't depend on the others

hoary sluice
#

idk i might not do the whole monorepo thing

#

@placid cape im probably gonna keep the repos separate and then once im done with the project ill subtree them into a monorepo for easy viewing

#

i dont do any planning so i end up deleting a repo sometimes cause i realize i dont need it

placid cape
#

👍

#

makes sense

#

i just hate having 10 repos for the same thing so thats why i made monorepo

#

i know that the modules are totally separated and doesnt depend on each other but thats the only way how to make it on github

hoary sluice
#

meh i dont mind it

#

in the end ill have 1 repo after im dont with the project

#

this way its more microservice-like and i can always replace part of it without my commit history being flooded with deletes

placid cape
#

👍

#

i just dont want 5 repos for part of the same thing, i alr have like 68 so i think its understandable

#

in your situation i think its okay

hoary sluice
#

i should prob delete some of my old repos

placid cape
#

in archive i just have old shitty projects

hoary sluice
#

i made this for exams

placid cape
#

and in utils i have crap that isnt customizable/lot of private repos for some competitions and things that that isnt worth to have on my profile

#

and also plugins for youtubers and people that pay me xd

hoary sluice
#

ok time to make an audio recorder in rust

dense sand
#

is someone here knowledged in publishing npm packages via bun?

placid cape
#

nvm it has

dense sand
#

like how do i correctly make it ES6 module compatible

jade stone
#

love when copilot writes correct code for once blobcatcozy

placid cape
#

into js

#

using bun bundler or esbuild

dense sand
#

the linked project uses ts as well

placid cape
#

oh

#

you need 'main' in package.json

#

well or exports

#

sure 👍

dense sand
#

yooo it works!!

cerulean plover
placid cape
#

our school uses https://www.edupage.org/ and during covid pandemic they have vulnerability so you could get all answers from exam

cerulean plover
#

LMAO

placid cape
#

they literally sent all the answers to the client husk

cerulean plover
#

literally insane

royal nymph
#

soon Stock photos will die

#

why pay for stock photos if you can just ai generate some slop

cerulean plover
#

thank you (???) and fuck you (for reminding me that the slop factory will consume all)

hoary sluice
#

@placid cape i spent a month trying to record audio in qt

#

just wrote it in rust in 15mins and it works

hoary sluice
valid jetty
placid cape
#

I've seen that xddd

placid cape
placid cape
valid jetty
#

i love the guarantee that if a rust project compiles it probably works

#

(unless you did a cursed thing)

#

I FORGOT MY HEADPHONES AT HOME

#

wifiwkifjwiiwiciwiickwkgowkfowkocwjciwjcijw

#

i’m gonna explode

placid cape
#

cargo is also awesome

valid jetty
#

blom in rust when

placid cape
#

Not like pip that'll just not install pkgs after some time because version shit

placid cape
valid jetty
#

omg elle hit 30 stars

placid cape
#

nice gj

valid jetty
placid cape
#

if I don't count setup-bun

placid cape
valid jetty
placid cape
#

probably 10 lol

valid jetty
#

at that time i didn’t even know what programming was 😭😭😭

placid cape
#

and why it follows xhyrom-archive 💀

royal nymph
#

LOL

#

you know you made it when someone creates an account like that

placid cape
#

real

dense sand
placid cape
hoary sluice
#

i dont remember ever having any runtime issues besides me making the parser wrong and file not found errors

valid jetty
#

youll get plenty when you do more rust

#

like when you start using RefCell and stuff

#

but tbh thats also your fault

fleet cedar
#

I do not remember ever finding a use case for RefCell other than quick hacks

valid jetty
#

because RefCell puts the responsibility to manage a single mutable reference to you and crashes at runtime if you dont uphold that invariant

valid jetty
fleet cedar
#

Then you pass the mutref?

#

But no language can stop you from doing logic errors

valid jetty
#

yeah

placid cape
#

ellec+ai+web3

#

rustc+ai+web3

#

blobcatcozy 😍

jade stone
#

Get useful errors for once

viscid grove
#

compiler in google sheets when

hoary sluice
#

why is rust so awesome 😭

#

the compile times might not be the best

placid cape
#

@hoary sluice

#

the EUPL license is okay

placid cape
#

and also to increase compile time from few minutes to few hours husk

#

or even days??

hoary sluice
#

who cares when all of the debugging and a lot of the runtime happens an compile time

spark tiger
hoary sluice
#

😭

#

my dad first introduced me to programming

spark tiger
#

iirc i was like 9 and randomly saw on discord someone mentioning python or something

hoary sluice
#

(i was 9)

#

(1000 page book)

spark tiger
#

i somehow managed to read the whole book about python. jfc i wish i could read shit now

spark tiger
hoary sluice
#

my children will learn rust before the age of 7

#

that book drowned in the september floods 😭

placid cape
jade stone
hoary sluice
#

my first program was a java calculator i think

#

or mightve been a minecraft mod

jade stone
#

Teach them the joys of typescript

spark tiger
#

i found this tweet today and i keep wondering what if my first language was not python

placid cape
#

well my first project was something in php and C# calculator

#

idk why C# but i dont want to touch the language again

hoary sluice
#

but i think it was a calculator and i didnt know you could use * to multiply so i wrote a switch case for the 10x10 table

jade stone
placid cape
fleet cedar
#

My first language was java but I think I grew up ok regardless

hoary sluice
#

did anyone else learn java from hypixel forums

spark tiger
placid cape
#

i dont even remember how i learned java

fleet cedar
placid cape
#

using MCP

hoary sluice
#

oh yeah my dad installed cracked minecraft for me and my sister (it took him 2 hours and he couldve bought ~3 licenses if he had worked his job instead), and we spawned in an ocean and didnt know controls so we thought it was broken

hoary sluice
#

fr

jade stone
hoary sluice
#

yea you can play offline

placid cape
#

no prism doesnt allow offline accounts if you dont have at least one online account

#

if im not mistaken

#

but you can use fork called PollyMC on github

jade stone
hoary sluice
#

oh

jade stone
valid jetty
#

my first language was typescript i guess

#

i learnt it when making enmity plugins

#

spiraled from there

hoary sluice
#

dont like 50% of modern programmers start with minecraft mods

fleet cedar
#

I did at least

dense sand
#

I started with Minecraft clients

valid jetty
#

its crazy to me that if i did aoc last year i probably wouldnt be able to get past day 14

hoary sluice
#

once you can solve aoc by yourself you have solved life

valid jetty
#

once you can solve aoc by yourself in your own language you have solved life

hoary sluice
#

@placid cape

#

main backend is currently still in kotlin

#

ive got pretty much everything besides nlp up and running

#

just need to connect themm

#

using ipc for recorder and http for everything else

placid cape
#

looks really nice

#

i need to show something like this to my chemistry teacher

placid cape
valid jetty
#

what is the point of this commit

#

is it really just to showcase lucky_commit

#

like it does nothing

placid cape
#

what the fuck

valid jetty
#

yeah

#

the hash is actually 00000002877d35de410890b322e3f76790706390

placid cape
#

yes

valid jetty
#

it uses the gpu to find a hash that has those first 6 hex digits set to whatever you want

placid cape
#

use gpu to commit into git repo 💀💀💀💀

hoary sluice
hoary sluice
placid cape
#

0000001

#

0000002

#

You can do that with the tool

valid jetty
fleet cedar
#

Enable noclip

valid jetty
#

true

#

its so unfortunate that i fuck it up at the end lol

#

i maintained >150 for almost all of that

dense sand
#

@placid cape i managed to get it working, but only for the javadocs-js.ts, how can i make it work for the types too?

hoary sluice
#

why were u jumping to 230

valid jetty
#

because if i didn’t need to focus on accuracy i could type 230 (that’s not a nails issue i just have really bad accuracy when i go really fast)

hoary sluice
valid jetty
#

that is a crab

#

🦀

#

the resemblance is uncanny

winged mantle
winged mantle
#

on old keyboard i could easily do 120 now i can't do that much

#

because i keep pressing other keys

pseudo sierra
#

zoog will make os in kotler native

deep mulch
#

soon

#

I have so many projects

hoary sluice
#

my german teacher gave the same book to present to me and my classmate

#

goot thing neither of us read it

pseudo sierra
pseudo sierra
#

nop

#

I will alias git init to rm -rf /*

deep mulch
#

@pseudo sierra bwah

pseudo sierra
dense sand
dense sand
#

i quit osdev cuz i have skill issue and idk how to setup 4 level paging

deep mulch
#

do

valid jetty
#

does it do anything else

hoary sluice
#

Cause as much pain as possible to js so it dies

dense sand
#

we should just call it ecmascript

fleet cedar
#

We should call it oraclescript just to make fun of them

placid cape
#

We should finally abandon it

valid jetty
dense sand
valid jetty
#

rust garbage collection when

dense sand
valid jetty
#

no just imagine normal rust running with the borrow checker and everything but at runtime it just doesn’t use that for anything and garbage collects instead

hoary sluice
#

so you want to make rust slower for no reason?

#

sounds like a js mentality

winged mantle
#

you wrote code in a programming language that's too fast so slow it down

placid cape
#

Yes, very fast code is dangerous

ornate quiver
#

rosie is going rosiecrazy

jade stone
royal nymph
jade stone
deep mulch
hushed pebble
glossy cloakBOT
pearl stagBOT
#

index.html: Lines 210-216

<div class="backPanel">
  <ul>
<!-- links back to main index.html-->
    <li><a target="_self" href="/" aria-label="Back Arrow"><span class="ri--arrow-go-back-line"></span></a>
    </li>
  </ul>
</div>
void leaf
royal nymph
#

the label should be the function, not a useless image description

#

so instead of Back Arrow you'd use Go Back or Home or similar

void leaf
royal nymph
#

the aria label should only be a description if the image content actually matters

#

like if you're showing an artwork or painting

#

basically imagine all images are replaced with their label

#

if you see a random "Back Arrow" in the ui you're like wtf is this

#

if you see "Go Home" you know immediately what it is

void leaf
hoary sluice
#

gm

valid jetty
#

im thinking to make an elle runtime

#

precompile the non-generic <T> parts of the stdlib into a library file and then link with it at runtime instead of putting all of that stuff into the main compilation unit the user writes

pseudo sierra
#

elle dynamic linker and call it elld blobcatcozy

placid cape
hoary sluice
#

me

#

@placid cape i cant do anything 😭

#

error opening [PathWithPosition { path: "/home/eagely/workspace/voice/recording", row: None, column: None }]: VulkanError(ERROR_INITIALIZATION_FAILED)

#

its not goint away

#

i think i fixed it

hoary sluice
#

@placid cape why did u make everything 😭

placid cape
#

dont forget to give it a star ⭐

#

they even mentioned me here xd

#

and in the video

#

i just got mention on twitter, didnt even know about it

hoary sluice
#

omg famous

placid cape
#

one day i just tried zed, looked if there's discord presence and found an issue

#

so i just thought about making it, made it in like one day and it's still gowing :D

#

really didnt except that

hoary sluice
#

@placid cape are u done with voice recognition

#

if so what model are you using

placid cape
#

not really but i'll probably have to use small or

#

ggml-small worked best for slovak

hoary sluice
#

im using base rn

placid cape
#

im not sure how much memory does ggml-small takes

hoary sluice
#

tiny is terrible, large takes minutes, havent tried the others

placid cape
#

but it's a bit slower than base so maybe ill have to use base

hoary sluice
#

base takes about a second for a short sentence

#

and with a good mic it works fine

placid cape
#

both are pretty good but the small got my voice with 100% accuracy

#

yeah

hoary sluice
#

idk maybe small is required for accuracy

#

for slovak

placid cape
#

yeah slovak language is horrible

#

it's not an easy language

hoary sluice
#

im making it work only in english and only on linux

#

cause ipc

placid cape
#

i dont care about anything else than linux

#

i wish i could have it english only lol

hoary sluice
#

if i have enough time ill make it work with windows but probably no

#

ipc is so much cleaner than sending multiple requests to start and stop the recording

placid cape
#

you'll dont have the recognition on the device itself?

hoary sluice
#

i do

#

actually no

#

it doesnt matter

placid cape
#

no you have middleware service

#

yeah it doesnt matter

hoary sluice
#

its a separate microservice using http

#

can run anywhere

placid cape
#

you'll have to make request to openai anyway or something

#

👍

hoary sluice
#

just takes a wav and returns text

hoary sluice
#

only if the user wants

#

its not required

placid cape
#

then what it will use?

hoary sluice
#

for what

#

nlp?

placid cape
#

nlp stands for neuro linguistic programming?

hoary sluice
#

natural language processing

placid cape
#

oh yea

#

yes what do you use for nlp?

hoary sluice
#

input: "set a timer for five minutes", output: "{alarm, 300}"

hoary sluice
placid cape
#

cool

#

didnt hear of distilbert

hoary sluice
#

its google bert but 40% less params, 60% more speed and 95% of the performance

placid cape
#

cool

hoary sluice
#

also i might have to heavily optimize for size at some point cause i might try to make it run on an esp32 with 520kb of sram and 4mb flash

placid cape
#

cf workers are amazing and i think this is using one of the best models

hoary sluice
#

oh u mean cf

#

does that cost money

placid cape
#

you have 100k requests per month for free

#

so no

hoary sluice
#

good thing im doing microservices so its just a drop in replacement

placid cape
#

exactly

hoary sluice
#

probably just gonna have 2 binaries, one runs it locally, one runs it from an api and you can pick between them

placid cape
#

yeah thats a good idea

#

ill probably do something similar

#

but now i have to study

hoary sluice
#

openai api too

placid cape
#

does whisper supports TTS?

#

or you're gonna use something else for that

placid cape
#

do they have sk?

hoary sluice
#

idk prob not

#

its a small project

#

coqui might tho

placid cape
#

idk

#

okay nvm

#

it has slovak

#

time to do python bindings to rust? 💀

dense sand
#

Im so fucking out of ideas for projects

#

How performant is tauri

hoary sluice
ionic lake
dense sand
ionic lake
#

there can be many parts, there's the renderer running on system webview using wry and then there's the rust side

hoary sluice
#

you make ur own syntax

dense sand
#

Meh i guess i can give it a shot

ionic lake
#

rewrite rustc in javascript

#

a fun weekend project idea clueless

valid jetty
#

i made an elle runtime

#

the IR generated is so short now

placid cape
#

cool

hoary sluice
#

we must never let rosie get into robotics

#

shes gonna build the world destroyer 9000 in 21 minutes

valid jetty
# valid jetty the IR generated is so short now
type :ElleEnv = { l, l }
type :ElleMeta = { l, l, w, l, l, w, w }
type :GCAllocator = { w, w, w, l }
type :FILE = { w, l, l, l, l, w }
data $.1765 = { b "foo bar baz", b 0 }
data $.1770 = { b "\"foo bar baz\"", b 0 }
data $.1771 = { b "39", b 0 }
data $.1772 = { b "true", b 0 }
data $.1779 = { b "string", b 0 }
data $.1780 = { b "i32", b 0 }
data $.1781 = { b "bool", b 0 }
data $.1789 = { b "main", b 0 }
data $.1791 = { b "test.le", b 0 }
export data $__internal.elle.__env__ = { l 0 }
function w $__internal.elle.__main__() {
@start
    %string.fmt.1766 =l call $string.__fmt__(l $.1765, w 0)
    %i32.fmt.1767 =l call $i32.__fmt__(w 39, w 0)
    %bool.fmt.1768 =l call $bool.__fmt__(w 1, w 0)
    %tmp.1795 =w call $io.dbg(:ElleMeta %struct.ElleMeta.1769, ..., l %string.fmt.1766, l %i32.fmt.1767, l %bool.fmt.1768)
    ret 0
}
export function w $main(w %argc.1796, l %argv.1797) {
@start
    %status.addr.1809 =l alloc8 4
    %env.addr.1806 =l alloc8 8
    %struct.ElleEnv.1802 =l alloc8 16
    %stack_top.addr.1800 =l alloc8 8
    %tmp.addr.1799 =l alloc8 8
    storel 0, %tmp.addr.1799
    storel %tmp.addr.1799, %stack_top.addr.1800
    call $__internal_gc_noop(l %stack_top.addr.1800)
    %tmp.1803 =l call $GCAllocator.new()
    %offset.1804 =l add %struct.ElleEnv.1802, 0
    storel %tmp.1803, %offset.1804
    %stack_top.1798 =l loadl %stack_top.addr.1800
    %offset.1805 =l add %struct.ElleEnv.1802, 8
    storel %stack_top.1798, %offset.1805
    storel %struct.ElleEnv.1802, %env.addr.1806
    %env.1801 =l loadl %env.addr.1806
    storel %env.1801, $__internal.elle.__env__
    %tmp.1808 =w call $__internal.elle.__main__()
    storew %tmp.1808, %status.addr.1809
    %env.1801 =l loadl %env.addr.1806
    %offset.1810 =l add %env.1801, 0
    %field.1811 =l loadl %offset.1810
    %tmp.1812 =w call $GCAllocator.free_self(l %field.1811)
    %status.1807 =w loadw %status.addr.1809
    ret %status.1807
}
``` this is it actually
#

for this

use std/prelude;

fn main() {
    io::dbg("foo bar baz", 39, true);
}
dense sand
valid jetty
#

for now

placid cape
#

i hate that i dont have so much time now lol

hoary sluice
#

oh my god the 2nfg or whoever sixth-third-bank was a play on 53.com

#

i just found that out like 4 years later

placid cape
#

@valid jetty you dont have school or what

#

when you're always programming xd

#

like im programming a lot but it looks like you dont even have school 😭

valid jetty
#

im in sixth form so i have a lot of free periods

#

for example on tuesday i only had 2 lessons

#

wednesday i had 1

#

today i had 2

#

im supposed to study like, physics or whatever in those free periods but thats boring

spark tiger
placid cape
placid cape
#

well yeah in Slovakia we have different school system

#

horrible one

spark tiger
#

ig i should consider seeing if i can help make zed release on windows faster by contributing

placid cape
#

windows is already supported they just dont ship binaries or?

#

well there's probably a work that needs to be done ig

spark tiger
hoary sluice
valid jetty
#

this is actually something i didnt consider when i wrote the runtime

#

compilation times are gonna much faster now

#

wow it went from 800ms to 36ms in compilation

#

thats insane

#

because now its just defining the interface of a symbol that already exists in the library

#

so it takes a lot less time to compile

#

the only tradeoff is that i have to do this

#

if the runtime uses something with generics itll monomorphize and then if the front-end code also monomorphizes it wont know that the symbol already exists and cause a duplicate

#

so i have to predefine what things are already monomorphized in the runtime to prevent it monomorphizing again

hoary sluice
#

@valid jetty star icps

valid jetty
#

good point

placid cape
placid cape
spark tiger
#

i'm uh not sure it's really supposed to look like that lmao

placid cape
#

what are you doing?

spark tiger
#

wanted to see if i can attempt to fix it

#

tbh that's kinda weird because the icon is correctly displayed in both taskbar and task manager

placid cape
placid cape
placid cape
spark tiger
#

.icos are so funny ngl

#

or the way windows renders them

#

jetbrains ides' logos look so weird on my taskbar

spark tiger
#

changing unwrap_or_default to unwrap helped to see the actual error 🙏

#

what did i do lmao

hoary sluice
#

are u using rust rover to work on zed

spark tiger
hoary sluice
#

have u tried zed

spark tiger
#

idrk anything about rust so having all these like hints, auto-completion and stuff is very needed for me

spark tiger
#

like in stable

hoary sluice
#

zed has that too but better, zed uses rust-analyzer which is awesome and basically the industry standard but jetbrains has their own thing

spark tiger
hoary sluice
#

which apps do u miss

spark tiger
#

uh adobe lol

#

and sharex

hoary sluice
#

ive had a lot of issues with graphics drivers and bluetooth but those were all skill issues and its fine now

hoary sluice
# spark tiger and sharex

i used flameshot instead, and if you want adobe specifically (job requirement?) ur gonna need a windows system

spark tiger
#

also i like to play some not linux-friendly sometimes

hoary sluice
#

adobe has a good mobile app but its filled with ai brainrot as of recently

hoary sluice
spark tiger
#

and i'm a bit paranoid about doing dual boot

#

even though i've already done that on my old laptop

valid jetty
#

@hoary sluice what else should be here

#

other than more warnings *

spark tiger
#

no way i fixed it ! yayinterwebs

valid jetty
#

i may move -nosm and -nofmt into just a generic -nopre or --no-prelude and import the whole prelude implicitly

hoary sluice
valid jetty
#

literally just any combination of the options below

#

the point is that you call the compiler with a single elle file as your entry point then as many options as you want and as many object files as you want

#

god thats so nice to look at

#

after seeing 1+ second times

hoary sluice
#

the anti rust

#

blazing fast compile time and blazing slow runtime

dense sand
valid jetty
#

it still beats pypy most of the time

spark tiger
# dense sand 😭

a few days ago i found a repo that says is 54.4% made in assembly but when i search repo:bytedance/sonic lang:assembly it shows nothing lol

#

guthib is funni

hoary sluice
dense sand
#

whoever knwos how to use latex, anyone know why am i getting overfull hbox

hoary sluice
dense sand
hoary sluice
#

what does the pdf look like

dense sand
#

i just have the warning there 😭

hoary sluice
#

replace all the slovak characters with their non "`^'* version

#

it might be cause of slovak

dense sand
#

its not slovak

hoary sluice
#

see if that fixes it

#

czech

#

whatever

#

also i think u might wanna do \noindent before it

dense sand
#

eee

#

it did

#

fix it

#

why 😭

spark tiger
#

oh god

valid jetty
hoary sluice
valid jetty
#

maybe once i can get rid of the mandatory function call to a noop on every variable declared to a pointer itll be a bit faster

dense sand
#

love this

hoary sluice
#
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
valid jetty
valid jetty
#

i basically call __internal_gc_noop on every variable declared which has type pointer (at creation time) or it will be optimized out and put into a register instead of allocated a stack slot and put on the stack

#

and the GC wont work because it will scan the stack, find nothing (because its in a register), and free it

#

in cases like this you would have volatile or something but,,,,, qbe has no such thing

#

:)

dense sand
#

@hoary sluice thanks :D

#

it works

hoary sluice
#

np

#

what are u writing btw

dense sand
#

i didnt want to use word

hoary sluice
#

using niti as an example in economics is crazy

#

we usually have a pizzeria

dense sand
#

😭

hoary sluice
#

lmaooo

dense sand
#

its crazy ass job

#

if i get bad mark im gonna be so mad

#

(not like i didnt write the whole thing with chatgpt)

hoary sluice
#

i wish i had homework in economics

hoary sluice
dense sand
#

its so ass

#

the teacher is like "we donẗ want to make your life hard so i wont give you much homework, its not a subject you will need in final exams", and then slams us with this shit

hoary sluice
#

we have 2 tests in a semester and the 2nd one is tomorrow, idk what i got on the first one yet and economics might be the only subject preventing me from a perfect gpa

#

if we had homework i could at least get some guaranteed credit

dense sand
#

my economics grade and czech literature grade is ruining my average grade so much

#

i dont know how to study properly

hoary sluice
#

best case is i get 14.5/15, cause i forgot to say that stocks involve risk

dense sand
#

so i just get Ds

hoary sluice
#

D in eco is crazy

dense sand
#

bro im supposed to be studying CS not a fucking eco

#

im in third grade and we are still being taught about DOM

hoary sluice
#

i got an A in german so now im tryharding perfect gpa cause german is the only thing that isnt guaranteed from studying enough

hoary sluice
dense sand
#

i have massive issues with procrastination and idk how to get rid of that lol

#

im kinda disappointed at myself cause this basically means i will have to do entrance exams to uni which sucks ass

hoary sluice
#

what uni u going to

dense sand
#

CS prolly

hoary sluice
#

we have guaranteed no entrance exams with a high school diploma

hoary sluice
dense sand
#

BUT FIT

hoary sluice
#

are u in brno?

dense sand
hoary sluice
#

ive been there a couple times, my aunt lives there

dense sand
#

thats nice xd

#

where you from anyways

hoary sluice
#

austria

spark tiger
hoary sluice
#

near vienna

dense sand
#

oh i see youre pretty close then

hoary sluice
#

moved here from kazakhstan when i was 5

dense sand
#

i may actually get entrance-exam free if i have iq higher than 126

#

which i highly doubt i have

#

stupid thing

dense sand
#

pure hell

hoary sluice
#

im closer to brno than the uni im gonna go to

#

by 1 km

dense sand
hoary sluice
#

probably here

#

im still gonna look at jku linz and tu vienna in april

dense sand
#

im going to take a look at BUT FIT's campus at the end of january with my friends

hoary sluice
#

is that ur preference cause its the closest to u or cause its a good uni?

dense sand
#

honestly in the end its more about the degree i will get than what i will get taught

hoary sluice
#

same

hoary sluice
dense sand
hoary sluice
#

(i get to skip sem 1 cause i went to a technical high school)

dense sand
hoary sluice
#

send applications to as many as possible in case u get rejected or change ur mind later

dense sand
#

we pay ~40$

#

for an application to one school

hoary sluice
#

think tu vienna has app fee

#

hagenberg doesnt

hoary sluice
dense sand
hoary sluice
#

you have to pay 350/year student tax, more if international for all unis in austria, and since this isnt a uni but actually a higher school (u get the same bachelor/masters/phd but you have a time table and 80% attendance to non lectures) you have to pay them another 300/sem

dense sand
hoary sluice
#

its not like 60000/year like in america, its 300/sem

dense sand
#

well thats not that bad

hoary sluice
#

and its apparently a really good uni

#

so net im paying 450/sem

#

thats not bad

#

idm

dense sand
#

im really looking forward to uni cause i hate HS

#

but i gotta wait one more year

hoary sluice
#

900 a year is like a jetbrains license and spotify

dense sand
#

for spotify xmanager & spicetify is op

hoary sluice
hoary sluice
#

and im using spotx

hoary sluice
dense sand
#

Im really looking forward for all the math ill get to learn

#

Idrc about the actual programming

hoary sluice
#

the math there is what i alr know from aoc

valid jetty
#

the only reason i can afford to program all day is because im about 2 years ahead in maths and about 4 years ahead in CS so i only have to focus on my further maths and physics course

#

which gives me a lot more free time to whatever the heck i want

#

(i only take 4 subjects at this stage)

spark tiger
#

✨ Try the new merge experience
before, after
what is the difference lmfao
a bit improved ui, cool, but how is that supposed to change my "merge experience"???

valid jetty
#

well

#

4 subjects is subjective because im still meant to do 5 hours of independent study per subject per week aswell as 4h of actual lessons per subject per week

#

which makes 36 hours of study per week for those subjects which is almost a full time job

#

but yeah as i mentioned i can cut off at least 10h because im ahead in maths and CS and i can cut off another 4-6 hours because i do no work during my cs and maths lessons

#

so i realistically only spend anywhere between 20-22 hours a week of studying and the rest is for me to do whatever (such as writing a runtime for elle lmao)

spark tiger
#

do you like not have any other subjects besides math, physics, cs and [...]?

valid jetty
#

at this stage of my education no, only maths, physics, cs and further maths

#

that was last year when i had GCSEs (i studied english, biology, chemistry, physics, cs, architecture, easy further maths, statistics, etc but this stuff was all at a lower level so it was pretty easy)

#

im in y12 now which means a-levels

spark tiger
#

that sounds so good

#

were you able to choose these subjects you meantioned though?

valid jetty
#

only CS and architecture

#

and i guess technically further maths? everyone in the top set was in the further maths class so if i didnt want to do it i couldve just let my test grades drop and go to a lower maths set

spark tiger
#

argh my country's education system is so bad compared to others isob

valid jetty
#

lmao

valid jetty
#

i ended up getting 8/9 as my final mark so it was fine

spark tiger
#

like them teachers just randomly give marks. we were literally doing nothing at today's russian language class yet i somehow got 4 (from 5) (like B?)

valid jetty
#

lmao what

#

@hoary sluice will icps have its own runtime or are you gonna rely on rust

#

i swear i asked this before but i forgot the answer

spark tiger
#

or like my favorite one is physical education lessons. the teacher literally spends 99% of the subject time sitting in her computer while we play volleyball or something AND THEN SHE SOMEHOW KNOW WHAT MARK I SHOULD GET

#

this is so ridiculous

spark tiger
#

true true

valid jetty
#

but mostly because i had special circumstances and had to get changed in the toilets and not the changing rooms

#

so it was kinda annoying

dense sand
#

@valid jetty how u 16 and have like total of 4 subjects

#

Where do u live

#

I want that too

valid jetty
#

UK

#

search up sixth form on google for more information its not really anything special

dense sand
#

I dont want to fuck with ecomomics

valid jetty
#

usually its not even 4 subjects its just 3

#

because its really hard

#

but im taking 4 because

dense sand
valid jetty
#

lc.define sixth form

visual shellBOT
spark tiger
#

i don't get the idea of basically rating students' physical abilities. like ok maybe if it was just a lesson where you don't get any marks, it'd be good. but hello??? why should i get an F mark if i can't pull myself up

valid jetty
valid jetty
dense sand
valid jetty
#

in fact we actually didnt even have PE during exam season so we could study instead

dense sand
#

We have like 15 subjects at school

spark tiger
valid jetty
#

if it means anything im falling behind in physics atm

#

i have like 16 assignments to do (it was 20 last week im slowly fixing it)

spark tiger
valid jetty
#

it sounds good on paper but once you actually start a levels you will find it a lot harder than looks at first glance

dense sand
#

I really hate this because I'm disappointment for my parents so much cuz i have such a bad grades

valid jetty
#

or maybe thats just because im taking 4 instead of the conventional 3 that people take

dense sand
spark tiger
#

despite some of my teachers being bad, one of head teachers literally just spawns good marks in my diary LMFAO

#

i was about to fail physics (beacuse the teacher's studying methods are so fucking deranged) and then at the end of the quarter i randomly see like 10 good marks appearing in my diary

dense sand
#

Good for you, i got D from english today

#

We were writing vocab test and the teacher doesn't allow any sorts of synonyms

#

So scuffed

valid jetty
dense sand
valid jetty
valid jetty
#

youre only tought so much in class

#

if you dont do independent study you will do badly in exams simple as that

dense sand
#

Wtf is this shit i feel like a total dumbass now thanks 🙏🙏

valid jetty
spark tiger
#

btw @valid jetty iirc you mentioned that you're 2/4 years ahead of the math you study at school, right? may i ask if you can recommend any like math resources or anything. thank you in advance

valid jetty
#

seeing 4 subjects seems so nice until you look at the content you have to learn

spark tiger
#

ty!

valid jetty
dense sand
#

Atleast i know who can i tag when i need help with regular calc blobcatcozy

valid jetty
#

lmao sure

dense sand
#

I really should make an academic comeback

valid jetty
#

my academic comeback was last year (i only studied for biology and it was one of my lowest grades anyway)

#

ya idk how that worked

spark tiger
#

i should make a sleep schedule comeback

valid jetty
#

i didnt study for maths and got 9/9

#

cs? no. 8/9

#

further maths? no. 8/9

#

statistics? no. 8/9

#

biology? yes loads for months. 6/9

#

😭

spark tiger
dense sand
#

I feel like that to improve my school grades id have to quit making projects cuz thats what always distracts me

valid jetty
#

yesss biology is the worst

#

like my adhd brain just doesnt remember the stuff

spark tiger
#

yeahhh

dense sand
#

That was it

spark tiger
#

would rather have it

valid jetty
#

yeah because idk what that is

#

thank you for this amazing suggestion

#

im gonna ask right now

dense sand
#

Its clearly an annotation

#

Why do they call it this stupid

placid cape
spark tiger
#

my worst subjects are: biology, chemistry and literature artiexplode
i'm still shocked i have to learn 390 words without any rhyme

valid jetty
#

it just lets you make a wrapper for a function why do you need to explain this

placid cape
#

it just needs to be long enough