#voice-chat-text-1
1 messages ยท Page 30 of 1
They're different animals entirely
as in just Python code API
it's a model that can be loaded with transformers package
emu/ostrich different or like, totatlly totally different
Emu ostrich
aight
Llamas are bigger typically
from REAMDE.md:
import transformers
import torch
model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
pipeline = transformers.pipeline(
"text-generation",
model="meta-llama/Meta-Llama-3-8B-Instruct",
model_kwargs={"torch_dtype": torch.bfloat16},
device="cuda",
)
Daww, looks like he's warm coat
iirc pipeline is a callable thing that represents whatever AI stuff the model is doing
looks like he spits chewin' tobacco instead of saliva
@mortal stone Can you mute if you're doing that?
It's coming right through your mic
Thank you
it is stuck loading but it's not blocked
(I'm trying to open their docs)
Both
this means you can just interact in any way with the model and integrated it directly into the app you're writing
Hemlock are you into conlangs?
I don't know how to apply pipeline from that code sample (I only have experience with stable diffusion's pipeline)
you can just call help on the value I'd expect
help(pipeline) or help(pipeline.__call__)
Not familiar with the term
What is?
Oh like intentionally created languages like Esperanto?
Yes
It was built to be an international trade language
But it never quite took off
last time I've read anything Esperanto-related was because of Forgejo
Heard about Tsevhu? Koilang
I haven't, no
It's a pretty esoteric one, Koilang is the script, and is written by drawing koifish
position of the ripples, the orientation / direction of the koi, etc.
I think I'm going to try and write a translator that goes from English -> drawings of koi with the same meaning
can you animate the koi swimming ? @misty sinew
๐คทโโ๏ธ let's get to the point of drawing the koi first haha
but making it swim would also temporarily change the grammatical aspects of it, e.g. the placement of the tail
yeah its so cool
Back later
theres a fella who uses pygame , he can make the background look like paper and the animation look like water colors or charcoal , the koi stuff would blend nice with it @misty sinew
oh yeah that sounds super cool! I might try and add backgrounds and stuff via. just stable-difussion at first, but I'd definitely want to migrate to something non-ai based
im not artsy , but i can see some applications to all this
I mean the application is limited as the language / writing system is like, super esoteric and has practically no users at all
but it'd definitely be fun, also a nice venture into natural language processing and such
well , learning a new way of thinking prompts creativity
Op de Bredabaan in Brasschaat, aan kasteel Torenhof, staat sinds gisteren een filmset. De geruchtenmolen draait op volle toeren, want Tim Burton zou daar aan het filmen zijn. Aan de overkant van de fi
Roadtrips
โค๏ธ
#archery #hornbow #horsebackarchery #traditionalarchery #arrow #horse
talking is over rated , add it to the list ...
mmm , archery on horseback , Mongols did lots of that ....
did you examine , kinamatic gaits of horses , hey hey its a strut @thin lintel
Dr Pol , likes horseys
does that mean , trotter ?
no
The Icelandic horse (Icelandic: รญslenski hesturinn [หistlษnscษช หhษstสrษชn]), or Icelandic, is a breed of horse developed in Iceland. Although the horses are smaller (at times pony-sized) compared to other breeds, most registries for the Icelandic refer to it as a horse. The breed is long-lived and hardy, owing to the ruggedness of its home countr...
very good
I have a first year genetics book on horses somewhere , maybe i shold actually read it one day
The Icelandic is a "five-gaited" breed, known for its sure-footedness and ability to cross rough terrain. As well as the typical gaits of walk, trot, and canter/gallop, the breed is noted for its ability to perform two additional gaits. Although most horse experts consider the canter and gallop to be separate gaits, on the basis of a small variation in the footfall pattern,[13] Icelandic breed registries consider the canter and gallop one gait, hence the term "five-gaited".
The first additional gait is a four-beat lateral ambling gait known as the tรถlt.
2 baby bunnys ,running back and forth in back yard , wow
live telecast
now
if i figure the IP nonsense , maybe one day - it does a have a server thing , dont know how to use it
shiny horsey
izzz kitty praying ?
pray for kitty nibbles - if cute index high enough ?
he is playing with a toy
need some boxes to play hide and seek in , kittys seems to love it so
i have those
very importnt
I have a question, do you guys know a Necro?
@wraith portal and @sterile orchid
he had a squidward profile picture
he just deleted his account and I am trying to reconect
No he taught me all I know about python and I want to keep in touch
Alright thank you I hope you guys have a great rest of your day
good model? 1.58% RMSE
Help patent professionals understand AI results through a familiar query language
Create an AI capable of solving reasoning tasks it has never seen before
Alright thank you guys for trying to help me and teaching me this, I hope you guys have a great rest of your day
@wraith portal @sterile orchid
๐
dw about it, it's a little too stalker-ish
cya
why do i keep seeing this error when trying to run my python server No suitable Python runtime found
Pass --list (-0) to see all detected environments on your machine
or set environment variable PYLAUNCHER_ALLOW_INSTALL to use winget
or open the Microsoft Store to the requested version.
@misty sinew ๐
@worn canopy @stuck bluff Hello
hello
@mild flume Oh btw this is from inside of my pc
Such beautiful cable management
Love it
Wait what're the dual heat sinks above the GPU?
Are those both on the CPU?
theres no cat hair in your computer , what gives @buoyant dagger
catzz on the job , doing what catzzz do
Thermalright Peerless Assassin 120 SE
Im not up to date on , computer innards , improved heatsinks , bla bla
@buoyant dagger
Thanks. I actually paid a professional to build it for me ๐
if your going to run a computer 24 hrs , did you consider power consumption profiles @buoyant dagger
there used to doing it ( building ) and do it faster
looks like a little jet engine ~~~~~~~~~~whoooosh
That's cool. I'd never seen a dual fan setup like that. It's interesting, because you're blowing additional hot air onto the second heatsink
It's not about the speed. I just prefer having someone build it for me. I'm not planning to build a new pc for the next few years so for me it's worth
But I guess that doesn't matter too much, it's supposed to just blow away the radiant heat
wooof !!!!
Honestly I don't know exactly how it works. They recommended this one and said it's more than enough for my cpu. And based on the stress tests we did yesterday, it's doing a pretty good job
wondering about a old mackintosh computer heatsink - upside down pyramid onto cpu , no fans - wonder if it actually works
Oh yeah I don't doubt it works great
Just hadn't seen that design
collection of fan sounds from - assortted stuff on table
the newest ubuntu image doesnt work on my old raspi3B+ , had to use old archived image - so ... its good to archive , have external data storage
Midnight OIl - beds are burning
tatoos have meaning , whatzz up with 47 ?
farmers shoot gophers , because horses break their legs in holes
hi
can you help me
What's up?
pip dosen't work
Do py -m pip install pygame
dafuq? Do py -0
its the PATH thingy during python install
ok wait i'll enable it
No no no
You don't need to do the path
How did you install Python?
If you got it from anywhere other than https://www.python.org/ then you need to instead get it from here
And actually, instead of pygame, you'll want to use the community edition
After you install Python from their website, you'll then want to do py -m pip install pygame-ce
I had same issue , PIP didnt work , I didnt use the default PATH setting on install , I try to use most suggested install setups to avoid this ... lesson learned
Add to PATH is unchecked by default
yes the , pygame-ce , is the prefered most updated pygame , from what I read
ok thank you bro
If it still pitches a fit don't hesitate to ask for more help! Oh, you'll need to close and reopen your cmd after you do the install
Otherwise it won't necessarily know that you installed the new one
ok
With the reflection in the glass, it's like the ghost of IT professionals past
when the cats away the mice will play @mild flume
tall grass in back yard , hides baby bunnys ....
Damn it. I accidentally dropped a pen that was uncapped onto my pants and now I have a little pen mark
This is just my day today
could be worse... i once broke my zip at work
Hey ๐
@halcyon spruce Yo
Did you hear that the US ran an anti-vaccination campaign in Southeast Asia during the pandemic?
which country?
Primarily the Philippines
Hard to believe really, and pretty shameful.
Not that hard to believe, unfortunately
@ornate cobalt dtrace
cargo-flamegraph + dtrace specifically
what
dtrace is officially supported by Windows
inside WSL you should also be able to use perf
--privileged if you're doing it inside Docker
dtrace isn't easier on Linux
you can also make your own tools
integrate and provide timing as part of the language you're making
just like how rustc/cargo do it
@mild flume yes, cells instead of lines are gross, agreed
ask mustafa about that jupyter testing flow again
You don't like Jupyter notebook?
it's a throwaway solution, it's not supposed to take long to write them
the hard part is how to structure it in a good display-wise manner if you're presenting it to others, not in code implementation
if you spend much time to useful code, probably better to put it in a reusable module early on
I didn't say long to write them. I said long to run them.
ah
yeah, then happens
It'll take days to run for certain instances.
but I wouldn't rely on Jupyter for those cases
That's what notebook is for though. When you literally just have a single file and want to quickly run it and and see the plots together.
yes
Plus, notebooks are great for demonstration and adding latex to your results.
I never said using notebook as a package.
I add it for all of my packages for demonstration. It allows me to add additional blocks of text to explain stuff, add images, etc.
"the realisation that there do exist people who don't think this way is terrifying"
How the hell would you make a package as a notebook?
You need directories, proper management of modules, how would your users even install and import modules?
I've personally never seen someone use a single notebook to make an entire package.
you can run ipynbs from python itself and/or via CLI
with enough notebook manipulation you can then pull data out of it
there are people on this server who have seen Jupyter notebooks ran as part of automated testing
Bruh. Like parse specific cells out?
@elfin breach Sometimes performance really doesn't matter
...
A cool thing about JITs is they can collect statistics at runtime and use them to decide which parts of the code to compile/optimise.
Depending on what it is
Like no yaml, no tester modules, nothing?
Not every program or thing you create NEEDS to be peak peak performance
You're doing a basic CRUD app? Probably doesn't matter
the fact that jupyter appears at any point during automation is already bad enough, even if there is more reasonable stuff around it
ROT is if it bottlenecks and can be optimized significantly.
Sure, but you find those optimizations when it comes up
I only use notebooks are demonstration of code. Like import your package, run some stuff, add some explanation, finished.
I should move Jupyter to another server, now that I have a more performant one
Sometimes over optimization before it's done ends up wasting time and can also sometimes cause you to miss the forest for the trees, as it were. You focus too much on optimization on one part that never needed it, but end up either bottlenecking something else or missing that something else needed more tending loving care
This is great
Ahh, the biggest mistake an engineer can make is optimizing sth that shouldn't exist in the first place.
Optimization is to improve efficiency, not for pedagocial purposes.
If your project never finishes, then there's no point to all the additional optimization
Find it after it's created
Do benchmarks after
You can learn sure, but don't mistake over-optimizing sth that doesn't need optimization or shouldn't even exist.
Keep basic stuff in mind, sure
But nitpicking right off the bat will only make you take significantly more time
@fair heart 1, 2, 5
SHIT
@ornate cobalt
for measuring the performance of my stream combinator library I used this which is as dumb as just having a global flag which you turn on and off
https://github.com/parrrate/ruchei/blob/main/internal/ruchei-sample/src/lib.rs
^ just as an example of how performance tools can be very simple and you can make your own
Great minds
how small is small project
it's a lagwagon problem
the more people/projects depend on it, the earlier you should worry about optimisation
imo
Ehhhh
yeah kinda what he said as well
FastAPI is better now days
Depends on the organization scale I guess? Like IBM's "small" package qiskit is over 100k lines of code and spans over multiple packages. My "medium" sized package is around 10K lines of code and serves as a single package.
Correct
@misty sinew Or even necessarily use that function as much as you might think
Back in a bit
@vocal knot Cut until you can't cut anymore without losing core functionality.
No need to optimize sth that shouldn't exist.
Wrong root
Ohh my bad.
chroot
He'll see it.
Well played
this project is at around 5KLoC now; and it's already getting into the "not small" package territory
Das Root
Ummm, are you the only one working on it?
@fair heart Ubuntu Server?
I mean, 5k is still small even for one person AF.
if it's not SLoC then 5k is small imo as well
:)
even 5k sloc isn't like, huge, i guess. But I'm a C dev so I can't even imagine what can be done with 5k sloc of python hahaha
I personally have this scale:
<5K - Tiny module
5-15K - Small module (package)
15K-50K - Medium-sized module (package)
50K< - Enterprise package
Yeah it's a small module package imo.
this I'd consider small:
https://github.com/oxalica/async-ffi/blob/master/src/lib.rs
How many Locs?
Ohh, no that's a tiny module, I have those too.
!pypi qoin
depends a lot on the language also
These are basically glorified modules. Just a simple script that you make into a package with testers and stuff.
Yeah, my scale is based on Python for instance.
High-level languages.
Rust is high-level too
Is it more explicit (lower level) than python?
average granularity is more in case of Rust
I see.
depends
I'm not familiar with RUST so can't really extrapolate to RUST for my scale.
@elfin breach Functioning and usable program is more important
CRUD apps in most cases don't need to be super super super fast
So it having some slower places, eh
"Use moderate effort where moderate effort suffices".
You guys are being way to specific lol, this question is answerable at a much higher level. if you can get X performance increase, is that worth the compromise of Y that it would take? e.g. does 5 ms faster runtime have a greater impact on the value of your tool, profitability or whatever, than adding that new rss feed or whatever
But if the developer's time is better used elsewhere, then meh
Optimization is analyzed on a case by case basis.
yeah, but the question originated as "when do i know how much i need to optimize"
You can't just say optimize or not just by a high level overview.
it's also going into "not small" territory because it's actually no longer a single package;
it's four
Written in assembly
Roller Coaster Tycoon vibes
It depends on the domain, scale of the software, and resource constraints.
exactly, which is why the only answer available for a question of that abstraction level, is what i said
@elfin breach https://xkcd.com/1205/
no better answer can be given without more information about the specific problem
@elfin breach Does it affect the end user, does the end user actually care about that 3 seconds, etc
When no proper details are presented, then the consultation is worthless.
@elfin breach See what Hemlock has said.
Will the optimization affect or improve the bottom line of the company
not quite, being told to do a cost-benefit analysis of outcome vs opportunity cost of gaining the outcome is still valuable advice
"since I've skipped hearing most of the conversation, I'll just say Django for simple stuff is bad DX"
If the user doesn't see any feedback in 3 or more seconds then he starts to think there is a server problem, so yeah.
By this I mean, is the cost of paying the developers to optimize it going to be outweighed by the profit from the additional speed
If so, then worth
If not, then not
Sure, then in that case, it's worth it. You've had users complain, they feel that they'll get more profit or benefit from the speed increase, go for it. But that cost benefit analysis needs to be done on case by case
this project I consider to be too big, and worth splitting in more parts already
Hehehe
You eating cookies?
as for Python projects, I have one that's "only" 3000 lines
if you look at the amount of state it has to deal with it's giant, and it has been evolving for >4 years
Amount of state?
yo wsg
it's not stateless and not isolated
it has to be this way
sup hem
I don't know what amount of state means. Not questioning it hehe.
otherwise it'd be, like, 100K lines if you tried to abstract it away
i'm very sad i missed lagwagon day @mild flume
Fixes > Features > Optimizations (at least to me)
But I'm a hobbyist, so I don't know what is proper
Gasp
complexity of mutable data
Surviving. You?
Hang on, I'm respawning in a few seconds.
had enough of mints and windows bs so decided to just wipe everything and get opensuse
been great
Could you give me an example please?
although linuxs encryption system was really annoying for some reason
Is this open-source by the way? I'd love to have a peek.
Back later
as a simpler example, than what I have there, poll bot using reactions on messages to track results;
you need to deal with, at least, following stateful things:
- reactions on message
- pending add_reaction/remove_reaction events
- pending removal of extra reactions
and all that assumes you aren't even bothering to store anything in the database
Ohh, so the number of variables and processes you need to account for for your primitive to function properly?
and external state
I see.
1000 users per day isn't enough to move off Flask in some cases even
Flask is bad but it does scale, thanks to WSGI
1000 users at once is where it melts down
@elfin breach https://github.com/donnemartin/system-design-primer
just go read this
Farming users, 'merica.
Imagine 1000 guys just making fake accounts perpetually until they fry the competitor servers HEHEHE.
can someone help me find someone capable of helping me with a project
you realize how much that happens?
i know what i need done but i dont know what section i can find someone
what do you mean by "capable"
literally ddos
Really? Was kidding. I was even expecting someone grilling me and saying that's nothing.
Flask is bad for concurrency because of it being WSGI-only
i mean concurrency doesnt matter if your coding skills suck
write go cuncurrency aint gonna do better than java
unless you actually know what your doing
good programming skills can't make Flask concurrent
I will.
bad skills + Quart is better than good skills + Flask if you need to handle many requests at once
Flask just doesn't work architecturally at that point
ive had stupid websites hit millions of hits in a single day, ive even had friends have vps with ~2 million (ive seen proof) requests, so 0.1% of those most likely botted requests even trying to make fake accounts wont be weird
now at a larger scale you'd have way more than that
look at how 4chan used to destroy websites with their ddos
yeah but flask is a weird thing for concurrency aswell
https://roadmap.sh/software-architect also have this
servers may be virtual which also means a non-1-to-1 correlation with computers
mate doesnt matter how much you want to optimize
someone is gonna beat you to it
its a never ending loop
so stop waisting so much time on such a useless thing
that whole 5 words 25 letters thing proved that anyways
@elfin breach is this 2 minute figure from a real existing project?
(some real projects do suffers from this, so might be)
if your page takes >1minute to load, it's terrible UX and totally worth optimising
if you can't make it faster, make it a background process
then send an email to the user that the thing is done (or show it in the UI)
immediate solution might even make total compute usage higher
5 minutes to load a page is often worse than 1 seconds to load the page and 6 minutes to wait for the result to show up
warn the user that it takes a long time, and only then start fixing it
if it takes 5 minutes to generate a response, reducing it by 2 minutes is not the main concern
wait so this is still in beta?
Haven't started the code, so not even alpha.
so just an idea
Yep.
get to writing and drawing out the code first LOL
cant optimize if you have nothing
That's what we said.
I'm gonna put Imaginary Optimization Engineer in my resume hehehe.
i might do that
@elfin breach - Don't optimize (or over-optimize) sth that should not exist in the first place.
- Define explicit bottlenecks. Come up with solutions. Evaluate cost vs benefit. Make a decision.
its like having non existent convex optimization
LMAO
cant bottleneck if you have nothing to bottleneck
when page load takes 5 minutes, it's catastrophic misengineering not just a bottleneck
it's not "slow", it's a failure
for (let b = 0; b < bottlenecks; b++) {
// handle bottlenecks here
}
many browsers will even tell the server "no, it's too long"
just remove the setTimeout
so within systems engineering you cant start off without anything
you have to work on 1 thing after another
There's a reason we Time out though.
the universe according to non bibical scientist believe so
kasstelle, may I ask what's TLauncher?
oh minecraft with more resources
also its bootlegged because i cant access my old emails
i wanted to see if 128gb of ram did anything for the game
optimize as much as possible
thats life
lol work on the important things first
Damn, send a 32 gb RAM to your brother here.
then work on the smaller things
i feel like we can use a tape recorder at this point
turns out i use 64gb casually
ill send you 8
Thank yoou.
8 tape recorders :) jk jk i know its ram
basically he is a scrum lead
PLEASEE.
so i can do more ai work
I ordered another 64GB of RAM because why not
Nicee.
its really slow
Everyone's getting RAM but me HEHEHE
Gotcha.
Have you considered a RTX 3090?
my only Nvidia GPU is 1050 Ti
I have a 3060, works pretty good.
i will someday get an rtx 3090 as long as i can use multiple for ai research someday
I remember you said only two out of three have GPUs. What's the other?
RX 590 for the PC
Ohh, if you're clustering them then ignore my suggestion.
Nice!
all about clustering
You should talk to Osyra. He's also really busy with his LLM Vanity.
lmao i told you about cluster cluster always cluster
He's always eager to talk shop with other LLM developers.
true he uses gpt
I remember seeing a motherboard which was marketed as capable of quad SLI;
guess how many GPU slots it had
He uses Nous-Hermes 13B I think.
become the scrum master
three
ah thats not bad lol
Like make it from scratch scratch?
^^^
Nice. How low did you go?
Don't you need much much more?
I got my SCRUM board from this show. It's perfect.
now with the information it has now probably 50tb lol
GPT 3.5?
Interesting. I recall it being much larger in their arxiv publication.
just wikipedia stackexange data and they paid for redit and twitters data now
that data costs 50k just to use lol
for 1 year
oh yeah i have the arxiv data set
I mean if you make yours open-source you should be able to use those too, no?
@raven orbit in GitHub it's just projects (I don't think GitHub has stuff named just Workspaces)
hes teaching him how to scrum ๐ฎ
I think if you make it open-source you can use all publicly available data.
((might've misheard))
scrum masters are amazing to have on a team
i hope so but its a really really long grind
I have a vague recall of workspaces, but you're probably right.
sprints are fun
I'd be down to help you with from time to time.
GitHub has codespaces and some new copilot workspaces
makes writing code and code production fun
๐ฎ
that sounds like a plan anyways brb
i need to go to a job interview
Riiight, I completely forgot to play around with copilot's settings.
Did they make copilot X available?
Lemme check...
I don't use copilot and neither do I really use GitHub Codespaces/the other Codespaces
May I ask why you don't use GitHub?
I use GitHub itself
Copilot's really nice for the grunt work.
Ohh, same.
just not the paid infrastructure it has
Yeah same. Copilot is free though, isn't it?
I don't pay for it.
I think it's free for students?
I remember there was another one besides GitHub.
Gitpod
I found this.
https://itsfoss.com/github-alternatives/
God I hate networking.
* all IPv4 interfaces
Hisssss
127.0.0.0/8 is loopback
127.0.0.1 is convention for what localhost is
127.0.0.53 is convention for local DNS server, iirc
sorry was mixed up with codespaces
for IPv6:
0.0.0.0 -> ::
127.0.0.1 -> ::1
you're right, was thinking of projects
I'm not entirely sure they themselves understand what is what
static IPv4 prices got lower where I live
IPv6 isn't as tightly packed as IPv4
afaik it's designed to be more sparse not only by just having more addresses but also by parts of the address actually meaning something not just random numbers whichever are available
I never did a networking course but I have to deal with networking regularly
I should shill TIPC more
We don't really have GPA in the UK
Erm, your degree classification yeah
Transferring university isn't common really in the UK either
There is some kind of standard course credit system though, can't remember what it's called ๐ค
The European Credit Transfer and Accumulation System (ECTS) is a standard means for comparing academic credits, i.e., the "volume of learning based on the defined learning outcomes and their associated workload" for higher education across the European Union and other collaborating European countries. For successfully completed studies, ECTS cre...
@tulip grail as a random networking question: are you aware of TIPC?
no
so that leaves the total number of people I know, who are aware of TIPC, at zero (excluding myself)
like it seems to be quite a powerful tech built into Linux
yet I don't see it used anywhere
@tulip grail the amount of references online to that mission in late March was a bit too much
i am back
ahhh are you messing with hex files
changing speed?
oh it looks really realistic
i might have to get an rtx for my personal pc
the real life pictures and scanning of textures holy
i cant even imagine how much time that took
do they still have the terminal map
?
and the cabin in the woods @proper ridge
@ornate cobalt another library that might be useful for measuring time:
https://docs.rs/tracing-timing
Inter-event timing metrics on top of tracing.
it's a bit hard to get working properly sometimes but still useful
and writing your own tracing subscribers for measurement isn't that hard
Cow<str>
it's either &str or String
if you need cheap clone, there is also Arc<str>
or just String if you don't worry about that
you can make a custom type that is Arc<str> and a range
also
why not have &str for buffer, again?
hmm
wher is buffer coming from?
(as in why change buffer)
hmm
the way I'd do it:
buffer as &'a str
literals as Cow<'a, str> (if you escape anything, it's a String, otherwise &'a str)
buffer is just source code in this case
reason why you can't have &str into a mutable String:
reallocation
String is a contiguous sequence of bytes
for simplicity you can just use String everywhere
null terminated as well.
not in Rust
Rust has CString for C-like strings
i was trying to learn it but than just stopped
and, by the way, even in C++ you aren't guaranteed to have 0 at the end
arnt CStrings just Null Terminated by deafult
when i code in C++ i dont use any strings so this is never an error lol
i've used them like
twice
rust is scary
what are you trying to do
i am
yeesh. ive never worked with lexats before
hmm.
you could try taking the bytes in that buffer and creating a seperate mutable buffer for those bytes
i dont know what
rust has for liek
strcpy
.clone()
this sounds like
what i was trying to think of
dont take my advice tho lol im sure alisa is much more experianced than me
struct StringLiteral<'a> {
original: &'a str,
parsed: Cow<'a, str>,
}
// as an example
#[non_exhaustive]
struct ParsingState<'a> {
source: &'a str,
string_literals: Vec<StringLiteral<'a>>,
}
just pray the people coding in your language are not reading your lexers code ๐
just like this #voice-chat-text-0 message
lol
my code is
horrible lmfao
im just glad people that use my programs dont care about the source
it doesent even matter how poorly optimized your code is
the compiler will just optimize it for you
Source of the Rust file src/ivec.rs.
lex and yacc?
there was also some example of a string holding basically anything inside
a string should technically be able to hold any value.
as long as its
not wide
than you might have some errors
@ornate cobalt are you planning on implimenting wide strings?
its a string where each character occupies 2 Bytes rather than 1.
like
#[non_exhaustive]
enum Magic<'a> {
Borrowed(&'a str),
Static(&'static str),
String(String),
Arc(Arc<str>),
Box(Box<str>),
BoxDyn(Box<dyn 'a + AsRef<str>>),
ArcDyn(Arc<dyn 'a + AsRef<str>>),
StringSlice(String, usize, usize), // other variation of slices omitted for sanity
}
like chinese symbols contain more data than a regular letter. So to solve this the wstring was invented. where every 1 character is 2 Bytes.
rust's String and str only allow UTF-8
oh
for arbitrary bytes there is Vec<u8>/[u8]
but what if he wants his lang to support anything else
can you code it in lex and assembly next
oh so now we have to hop better on vectors
or small talk
for what the OS thinks of an acceptable string type, there is OsString/OsStr
i dont think hes making an assembler quite yet lol
the instructions are smaller but the actualy program will be longer
math register?
you move it to that register
hello guys im trynna include machine learning in ly resume parser project is there anyone that could tell me how to even start
the push assembly operation moves the data onto the stack according to its current stack frame
so like
push rax would be pushing the data stored in the 64-bit register rax to the stack according to its current stack frame rsp
am assembly sweat
it reallocates when it goes over the capacity
you can use heap allocation : )
yeah i dont either lmfao
hmmm
write you own heap allocator in rust !
or just Arc<str>/String everywhere
i despise vectors
fuck learning android studio id rather backend
like if the thing potentially needs to outlive the source file and be shared, Arc<str> is the way
^^^^^^
prolabaly
for a period
i dont even know what that means ๐ญ
another option for the buffer:
make it immutable after you're done lexing and move it into an Arc<str>
and store stuff as indices until you're done
give it a try
is load even a valid x86 - 64instruction
thats smart
@ornate cobalt if you really want to engineer it with as few allocations as possible
it allows your brain to focus on what you are doing
makes you conscious
im not a rust coder
^^^^
it looks nice and clean
does rust have a winapi wrapper yet
yes
iโm a C++, C, asm dweeb
Microsoft are very active at integrating Rust in Windows
c++ holy shrimp you are a genius in my eyes
finally
C++ is GREAT
it looks very dumb of course
but
"Rust is very simple...
... if you already know C, C++, Python and Haskell"
@misty sinew https://www.youtube.com/watch?v=1S1fISh-pag
Students at the computer science universities used to sing this song back in the 1990:s. Well, at least I did. Now I sing this song one more time and remember those days. Let it be and always write in C.
itโs relatively similar to C
most of Rust is just C+Haskell
write in c
as the deadline fast approaches write in c
okay i will look at the stream
idk about the self.advanced
hmmmmm
FALSE
C ABI still remains as the main thing for calling functions from other languages and/or static/dynamic libraries
rust is too hard bro
within the same amount of time I was able to learn more Rust than Haskell
rust looks fun
i think that there syntax for adding a return type on a function is dumb
idk about this code though
fn function() ->
return type syntax is same as in Python
like a basic compiler shouldnt be over 200 lines but that might be a rust thing idk
def example() -> int:
return 123
๐คท
i donโt know python either lol
now remember how TypeScript does that
lol
the first language iโve ever learned was C
function example(): number {
return 123;
}
than C++
@misty sinew i feel like you could read python easier than rust
than a tiny bit of python
templates
but its all the same concept
: for return types is cursed, even though consistent
ok iโm writing in Malboldge for the rest of my life
wtf is that
have fun maintaining that
speaking of concepts
I still haven't worked with C++20
some esoteric language that looks horrid
it looks like this
haisjebeii)/93!:88$:28/&);39.&;&/9.โ7/72!489hejwhd
work needs C++17 or, at times, C++14 and lower
oh jeeze so
hello world?
auto is op is cxx20
no, thatโs just what the language looks like
basically slamming head on keyboard hoping it works
yes
LMAO
(=<`#9]~6ZY327Uv4-QsqpMn&+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:`H%c#DD2^WV>gY;dts76qKJImZkj
this is what Malbolge's Hello World looks like
that looks like when you write cryptography in ftk imager
yep
i would never
easier to read than rust tbh
languages is so chaotic it's impossible for humans to write it by hand
that code is generated
I would take assembly over rust
comment checking 
rust is good for hackers so i feel like at some point id be forced to learn it
hats off to whoever put "structured" in there
beaunfuck is beautiful
it is structured
โฆโฆ..>โฆ.>โฆ>โฆ>.>.>.>.>.,<,>.>.<.<.>,
very much so
program cheating at rock-paper-scissors (it just responds with winning r/p/s to input r/p/s)
https://copy.sh/brainfuck/?c=LApbCj4rKysrKysrWzwtLS0tLS0tLS0tLS0tLS0tPi1dPApbCi0tClsKPisrKysrKytbPCsrKysrKysrKysrKysrKys-LV08KwouCj4tPApbLV0KXQo-CisKWwo-KysrKysrK1s8KysrKysrKysrKysrKysrKz4tXTwtCi4KWy1dCl0KPAo-LTwKWy1dCl0KPgorClsKPisrKysrKytbPCsrKysrKysrKysrKysrKys-LV08KysKLgpbLV0KXQo8CiwKXQo$
A Brainfuck editor & optimizing interpreter, written in JavaScript. It's pretty fast.
@delicate wren put in n and it returns m lol
lol im going to learn how to make a kotlin compiler
for android stuidio
ill be back
undocumented features
yep
bfundocumentedinternals
ooh it can encrypt strings
xntrldkkkhjdsndnhk
that translates back to you smell like toe oil
pqrs
I have no idea what that program does anymore
it preforms
,[>+++++++[<---------------->-]<[--[>+++++++[<++++++++++++++++>-]<+.>-<[-]]>+[>+
++++++[<++++++++++++++++>-]<-.[-]]-<[-]]>+[>+++++++[<++++++++++++++++>-]<++.[-]]
<,]
a subtraction operation
false
wait
it does
some
weird subtraction algorithm
if you enter 2 you get 1
it goes back
1 letter
or one bit in this case
so like
if you enter
b
it returns a
Brainfuck ignores all characters except the eight commands
+-<>[],.so no special syntax for comments is needed
probably
-1
if q then -1
if o then +4
prs
oqr
opr
spr
it offsets it
if p => s
else c - 1
it probably has a list of all the characters
and if the input = r
we offset it by whatever would make the solution
and than print the value at that byte
idk brainfuck is weird
enter the number 4 on it
do it
you get 3
it offsets by 1 byte
- 1 bit
i forgot
its bits
ASCII
first subtracts ord('p') from input
chat we are smart
we should make brainfuck a proper language
we need to make an input output lib for it
, for I
. for O
[-] sets the currently pointed-to byte to zero
XOR XOR XOR XOR XOR XOR XOR XOR XOR XOR XOR
@ornate cobalt is there like proper syntax
like can i code in it yet
make it print my name pls
incredibly quick IO operations
nice
make it print my name 35,619x please
why does it measure in days lol
we need a time wrapper for bf
ok im ahead out
shoot me a dm if you need help with assembly, C, or C++
idk if it's because of CPU usage or something else but sound seems to break from time to time
time to compare to what vlang promises
V Lang says this
or used to
before they decided it's probably better to be honest and not overhype
(this is 2019 blog referencing their site)
from the time when they had docs for generics and no compiler support for them
apparently yes, they were not separated enough from everything else
(but I haven't seen myself)
they banned the author of the blog from everywhere they could
their community moderators generally don't understand the difference between trolling and criticism (whether valid or invalid)
Xe Iaso's personal website.
I don't know how much of this is true
but the fact that I see people in the community labelling valid-ish criticism as, quote, "propaganda" makes me never want to be part of that community
@ornate cobalt Zig can
it will inline
as for V -- no idea
macros would be inlined, I'd expect
just how Zig does, iirc
new member: python sucks
community/moderators: yeah we know/and?/okay
new member: rust sucks
community/moderators: what can we improve?
new member: vlang sucks
community/moderators (in 2019~2020 as alleged by many people): BAN THEM
it probably has many features it promised earlier
and it definitely doesn't have some
still a promising language
still with a "new language please don't judge" attitude
@ornate cobalt "if you stare long enough, you'll notice there's something off"
https://volt-app.com/
Native desktop client for Slack, Skype, Gmail, Facebook, and more
iirc it's related to vlang
@ornate cobalt title of the page
(I don't think this is 300KB)
I've unpacked it
the executable is more than 300KB
so it's not assets
oh volt
its been like that for years LMAO
i guess time doesnt change all that much
python is great
take that back
๐ฎ
i will roast others for using GO
ah
lol
Python's async is very capable
it's very easy to use other languages inside Python
standard library is giant while being mostly useful
thats also very true julia was made off of python
Lua bindings are good
also one of interpreted languages is basically built into the full version of Python
java updated syntax is basically python lol
"you can also use sql of sqlite3 as a scripting language if you're brave enough"