« first day (2373 days earlier)      last day (1102 days later) » 

12:12 AM
... is it possible to... distribute... a mysql/mariadb server along with an otherwise usual executable? Like, how is the spawning of random process controlled by the OS? If I ask for permission, could I launch a sql server listening on a port?
 
12:26 AM
you don't even need permission if port is > 1000
but I don't think it's a good idea to do that xd
can I ask why you want that ?
 
12:40 AM
@FélixGagnon-Grenier ping
 
@Stargateur oh sure! basically by curiosity, I'm starting to use a mysql database instead of sqlite but that adds the requirement that there's a mysql server
so like, considering it's really just an application's need, I was wondering if that was a thing, that was done in applications on earth
basically, we could say the executable would spawn a server to answer its own requests, that it would now be doing at localhost:3306 or something
I mean, what could possibly go wrong?
 
what wrong with sqlite ?
 
altering the tables is all but unsupported
 
create a second file, new table, copy + map, replace file, done
 
yeah, of course, I could do that
 
then, also the trick to remove columns
 
I'm a genius
why to you need to alter table btw ?
 
Oh, you misunderstand. I am aware there are workarounds for each queries in sqlite.
But I rather use a dbms that supports it than write all kind of hacks to patch sqlite
@Stargateur creating some kind of database edition gui
 
you need a database to create a databate edition gui ? xd
and why create a database edition gui ? fun ? you like to suffer ? xd
 
@Stargateur I mean it's a database edition tool, you could have guessed it would involve a database ;-)
 
12:48 AM
@FélixGagnon-Grenier no
I don't get why you would need a database for that
 
man, what is it editing if there's no database?
 
sure a database to connect to but why enbeded ?
 
what do you mean? the data itself is not embedded
 
so you want a self contened database that also can edit itself ?
 
only like, the domain logic necessary to act upon the database that will be available at runtime
@Stargateur yeah?
 
12:51 AM
what use for ?
can you provide me example of this thing that already exist cause I don't follow
 
well, if you're interested, I like managing fantasy hockey teams
 
so, I like entering, listing, ordering, editing and otherwise consulting way too many stats
I am building a tool wo help me in that because what exists right now is not sufficient, I need the ultimate fantasy player worth analysis tool that's ever been written
so yeah, that's why :)
... and yeah if that does not scream Canadian I don't know what could
 
that look like pgadmin with extra step
 
oh yeah, it's in many ways similar to such an application, PHPMyAdmin is another popular one.
 
12:57 AM
DBeaver is nice too
 
 
1 hour later…
2:09 AM
How is MariaDB compared to Psql?
 
3:03 AM
@AntoninGAVREL mariadb is an alternative to mysql but it's the same thing, really. it's been designed to replace it without an application even noticing.
 
3:37 AM
I see
 
4:31 AM
Anyone have opinions on &format!("") vs format!("").as_str() (vs something else) when formatting a string to pass it to something expecting a &str?
 
 
2 hours later…
6:22 AM
@Shepmaster Has it been already said that a favicon for the playground would be very convenient ?
 
 
2 hours later…
8:04 AM
@DenysSéguret I like this tool for favicons realfavicongenerator.net
 
Why not. To be honnest a single red square or anything would do. The point is just to help find the playground tab
Why can't I ?
(in fact I know why. I just found it amusing you can't downvote yourself when you made a bad answer)
 
@DenysSéguret yes! The rust-lang.org website does have one. I'm not sure if that can be used? Seems like that would be the easiest option?
> https://www.rust-lang.org/static/images/favicon-16x16.png
> https://www.rust-lang.org/static/images/favicon-32x32.png
It's all in the <head>.
 
8:59 AM
@DenysSéguret Or you could use a browser that has a better UI and instead of shrinking the tabs down to the favicon size, they actually provide a nicer tab representation.. ;)
That being said, I love favicons, so I'm in favour of introducing one to the PG!
 
9:36 AM
Where we're going we won't need eyes favicons to see!
@E_net4thedownvoter for Chromium: Implement image/jxl decoding behind a flag.
 
 
1 hour later…
10:53 AM
nice
 
 
3 hours later…
1:56 PM
Is the playground very sick ? Overloaded ?
 
It's a bit rusty, but I don't think we should worry about that aspect :upside_down_smile:
 
ho ho ho saint nicholas laugh
 
Seems to be back
 
I am impressed by the amount of things php let me not think about in regard to managing databases, connections and connection pools. mostly the connections vs pool tbh. Should we pass the pool around, and ask for connections to let it manage these, or pass the connections?
like, the dependency here is not the pool, so passing it as parameter feels wrong, but passing the connection around to allow reuse feels like trying to do the pool's job in its stead
 
Where is stargateur when we need somebody to have an opinion about PHP ?
 
2:04 PM
it's the day over there, I guess he's sleeping or having an apéro
also @Stargateur PHP's ok, fite me
 
Maybe rename the room to Rust & PHP, no need to hide our feelings
(wake me when it's about java, I didn't have time to forget this one)
 
2:47 PM
Just Another Viable Alternative although a Painfully Hopeless Piece one might say, there's no room for them here, but the Right Undertake Should Take its prize.
 
3:16 PM
The downside in looking at questions is that I'm exposed to so many bad questions...
 
4:04 PM
PHP is mad suck
PHP = brain damage
 
stargateur got a new avatar
 
4:19 PM
@DenysSéguret You got me. :<
New avatar and display name. :>
 
He went through a metamorphosis
 
4:38 PM
stackoverflow.com/questions/67078804/… asking others to write code from scratch.
 
@EnnMichael nah it's pretty nice. we even have match expression (that are very much like rusts's one) now
enum have been merged
PHP7.1+ was already getting nice and PHP8 is even better
like, I can write type safe (I mean, relatively) and easy to reason about PHP without having to bend over backwards 10 times to work around sillyness, as were the case in earlier versions.
 
5:07 PM
@kmdreko prefer &format, shorter
@DenysSéguret you should use stack overflow dark theme, more pleasant to browse ;)
 
6:08 PM
Someone earlier was asking about go vs rust, has he made the switch ?
Im thinking about starting to learn go as there are much more job offers
I think Rust is a bit more elitist to work professionally
 
6:19 PM
@AntoninGAVREL elitist as in a lack of positions for people that do not have ten years of experience with Rust or something else?
 
yes
like I dont see much jobs for Rust, and if there is the threshold is quite high
like some bigs entities like Google and AWS hiring and requiring a LOT of experience
I think Rust definitely has a sweet spot for security (cryptocurrencies, kernel etc) so I am convinced of its future, but Im less convinced of my own future with Rust ;)
 
Even if you look for a Go job, you should maintain an OK level in Rust, enough to have it in your CV. I'm convinced many smart companies are looking for people with Rust knowledge both because it may come useful in the future and because those recruits are probably more capable. And keep in mind the most amazing things in near future aren't going to be in Go but in Rust
Go is going to turn like Java in most companies.
 
I was surprised at seeing small-sat companies such as Rocket Lab look for people with experience in Rust (and C++), so I think that's a good sign, thinking many years down to the line.
 
Look at my company: quite low tech, not a lot in Rust today, but almost everybody at every level thinks the future is in Rust and spends some time investigating it. I'm sure this happens in many companies around the world.
 
7:03 PM
@DenysSéguret I know but I need to find a job by September this year (need to pay for the apartment loans ^^), so a bit in a hurry. Problem is that I invested time the past year to build my own mobile app with a technology which is as sexy as Rust (flutter, you should take a look), but where the job market is also very cold
not to mention that many people from developing countries are picking up Flutter and they may be much cheaper for Remote jobs :/
@Jason that's indeed a good sign
so basically I have quite a lot of time to train for the right technology, I was also thinking about getting AWS Solution Architect professional certificate (got the associate one), but this is more specialized as a Cloud engineer whereas Im more backend-focused with ability to do full stack
 
7:25 PM
@AntoninGAVREL If I may, if it's for september this year, possibly you should put some effort into polishing a skill you already have that could sustain the appartment while you start learning other things. Learning a whole language up to a workable level in all of 5 months is...
I mean, I don't want to say impossible, because there are very smart people on earth, but let's say unusual.
or rather, sufficiently of a long shot that it might warrant looking for alternative solutions.
 
7:46 PM
@FélixGagnon-Grenier Having match expressions is nice?
Putting match
In a language
Where it has nothing to do
Is nice?
nice
I'm logging out before this conversation gets ugly
 
... hum. could you elaborate on "Where it has nothing to do"?
like, what could you possibly mean?
 
@FélixGagnon-Grenier yes I agree, thats why I dont lose my time with React
 
evenmoarwat.gif
oh you mean you have no prior experience with it? yeah ok. But I was thinking of the "learning go to score a job in 5 months" general idea.
 
What do you think about this github.com/tc39/proposal-pattern-matching @FélixGagnon-Grenier? I like matching as well.
 
@Jason oh that's pretty cool :P
oh I wish it'd have oneboxed
lol it's all good, I'm okay with such discussions, but you do you :)

If you could still expand on what you mean, I genuinely don't understand how match expressions, a rather language-agnostic concept, do not have their place in any specific language?
<Fetch url={API_URL}>{
  props => case (props) {
    when {loading} -> <Loading />
    when {error} -> <Error error={error} />
    when {data} -> <Page data={data} />
  }
}
</Fetch>
@Jason this is reaaaaaallly nice ^
 
8:03 PM
Yeah @FélixGagnon-Grenier, I'm really hoping it'll advance to the next stage :-)
 
8:53 PM
@FélixGagnon-Grenier There's no ADTs
You can match on an integer.
Big brain
 
googles ADT
 
Left hand side: matching on integers
Right hand side: language complexity
PHP devs: "sounds pretty sweet"
ADT = Rust enum
 
it's actually an abstract data type, which is much more than enum :)
 
Algebraic data type
 
ok, as you say. how is that related to having match expressions or not?
 
8:55 PM
The entire POINT of match expressions is that they allow you to work with ADT's
 
I like match because of how it allows me to use some specific combinations of program flow and ternary logic.
 
This is why they were invented
In functional languages
Having syntax sugar for if is fucking stupid.
If you have an if chain complex enough to warrant that, just write a fucking function
 
Calm down?
 
OR alternatively you can bloat your already bloated shit language even more and introduce match expressions
OK, I'm sorry
Sorry about the language
This is one of the things that annoy me the most about where mainstream languages are going
The pattern matching hype
It's so unwarranted
 

« first day (2373 days earlier)      last day (1102 days later) »