fxdave

joined 2 years ago
[–] fxdave@lemmy.ml 4 points 3 weeks ago

I'm a contractor and I use linux if that counts :D

[–] fxdave@lemmy.ml 2 points 3 weeks ago (2 children)

If they want to fight hard, they just add the ads into the stream.

[–] fxdave@lemmy.ml 4 points 3 weeks ago

In a perfect world we wouldn't have ads.

[–] fxdave@lemmy.ml 3 points 1 month ago

I liked this discussion. However, I think both of you have different axioms. It's a pro-socialism vs pro-capitalism debate.

In capitalism, we need innovation to create new value. Or you can pollute water to sell water bottles which will have value now. It's up to citizens to decide what to restrict that was publicly available or what to innovate.

In socialism, the innovation is only happening where it needs to happen carefully planned and funded by the government.

I'm rather socialist, so I'd defend it:

Having a software with inability to modify is injustice, It's the same as polluting a water to sell it. Even if we need to pollute the water to sell it, it doesn't justify pollution.

[–] fxdave@lemmy.ml 0 points 1 month ago

You can't make a law for everything evil that corporations do. Social democracy is flawed inherently. We need direct decision power of people in those firms. Never gonna happen though.

[–] fxdave@lemmy.ml 0 points 1 month ago

I recently installed Nix alongside with Arch. I feel the same. After years of using Arch I spent two days to get everything configured the same as in my Arch, and I haven't finished it yet.

[–] fxdave@lemmy.ml 35 points 1 month ago (8 children)

Don't buy a Mac. That's more limiting than a Windows. But yeah install linux.

[–] fxdave@lemmy.ml 3 points 2 months ago (1 children)

yeah I'm a fucking idiot because I thought wrongly the redis' language...

[–] fxdave@lemmy.ml -2 points 2 months ago* (last edited 2 months ago) (3 children)

I use rust only if we need performance, for small services. The industry does the same. People use node for backend but e.g. redis is in rust. It's a good tool if you use it for the right stuff.

EDIT: redis is not in rust, but e.g. aws writes many services in rust

[–] fxdave@lemmy.ml 2 points 2 months ago

Our views can be compatible. Endless os is quite limited right now, but if flathub would have xampp, for example, that would be easily the simplest way to run a webserver. However, every techy person prefers docker, me too. It's just not something that my mother can deal with. In general, linux is lacking these mother compatible apps where we have more advanced solution. Of course, I wouldn't recommend endless and others in the category if the goal is to run a webserver.

[–] fxdave@lemmy.ml 0 points 2 months ago (2 children)

None of them good for non techy people. I wouldn't recommend mint. Gnome is the most friendly DE with pleasing defaults. There are many immutable flatpak distros coming with gnome. e.g.: Endless os which is pre installed on some asus laptops instead of Ubuntu for reason.

[–] fxdave@lemmy.ml 1 points 2 months ago

yep, there are a lot better racist jokes. this was tasteless soft shit.

 

Hey, I'm not a fan of advertising libraries, but otherwise, nobody will know them. I think this package is really spot on and solves many issues with current web technologies.

I'd like to continue this project. If you found it interesting please give some feedback.

github.com/fxdave/cuple
intro: The Missing Type-Safety for Full-Stack

 
 

I have a plugin trait that includes some heavy types that would be almost impossible to wrap into a single API. It looks like this:

pub struct PluginContext<'a> {
    pub query: &'a mut String,
    pub gl_window: &'a GlutinWindowContext,
    flow: PluginFlowControl,
    pub egui_ctx: &'a Context,
    disable_cursor: bool,
    error: Option<String>,
}
pub trait Plugin {
    fn configure(&mut self, builder: ConfigBuilder) -> Result<ConfigBuilder, ConfigError> {
        Ok(builder)
    }
    fn search(&mut self, ui: &mut Ui, ctx: &mut PluginContext<'_>);
    fn before_search(&mut self, _ctx: &mut PluginContext<'_>) {}
}

Here is what I considered:

  1. Keeping all plugins in-repo. This is what I do now, however I'd like to make a plugin that would just pollute the repository. So I need another option that would keep the plugins' freedom as it is right now, but with the possibility to move the plugin out to a separate repository.
  2. I tried to look into dynamic loading, and since rust doesn't have a stable ABI, I'm okay with restricting the rust versions for the plugin ecosystem. However, I don't think it's possible to compile this complex API into a dynamic lib and load it safely.
  3. I'm also ok with recompiling the app every time I need a new plugin, but I would like to load these plugins automatically, so I don't want to change the code every time I need a new plugin. For example, I imagine loading all plugins from a folder. Unfortunately, I didn't find an easy solution for this neither. I think I will write a build macro that checks the ~/.config/myapp/plugins and include all of them into the repo.

Do you have any better ideas, suggestions? Thanks in advance.

(For context, this the app I'm writing about: https://github.com/fxdave/vonal-rust)

 

cross-posted from: https://lemmy.ml/post/7885746

I created a lib for designing cabinets. I'm not a woodworker, but I can design some for myself and I found this lib useful enough to share. So enjoy.

 

I created a lib for designing cabinets. I'm not a woodworker, but I can design some for myself and I found this lib useful enough to share. So enjoy.

0
submitted 1 year ago* (last edited 1 year ago) by fxdave@lemmy.ml to c/asklemmy@lemmy.ml
 

We decided to test whether the car can handle long ranges by going to Austria next week. It's a large country with numerous places, so I want to ask your help. Have you ever been to there?

EDIT: Thanks the suggestions for everyone, they were really useful!

view more: next ›