• 3 Posts
  • 38 Comments
Joined 10 months ago
cake
Cake day: January 25th, 2024

help-circle

  • Yeah I think it’s the money issue. The companies have more money making self driving cars. Specially since the incremental advancements make them more money on every new car sell.

    While trains don’t have incremental advancements with sells associated with them. They have less training and incentives. But technology wise it is definitely easier to control speed 1D, while mostly looking at the front (maybe back) compared to the degree of control/sensors cars need.







  • That depends on what video player you use. Of we have control of that, then sure it works. I use mpv to play things, so for radio streams or live videos I can go back/forward as long as it’s cached.

    But if it’s the web service, even though the browser video player has something cached, the player is still controlled by the website. And considering most of the people use chrome/chromium derivatives or YouTube app, it wouldn’t be hard for them to make it so that the player itself will collaborate with whatever they want to do.

    If YouTube was a separate organization it wouldn’t have been the problem it is because of how Google has been taking over all the different parts they need for advertising.






  • Thank you for your detailed response.

    I am ok using macros. But even proc macro only get the tokens and using in on the whole mod is unstable unless you use use it on mod sth{...} instead of code being on in a different file (sth.rs).

    The plug-in system is dynamic in a sense that my plans for it are loading them through shared libraries (.dll, .so) compiled separately by users. But I also have internally provided core plugins that come with the program. But rust ABI system is not that stable, so in worst case I might have to ask users to just add plugin code to some directory and re-compile program instead of loading from shared libraries. That’s why I’m trying to make it as simple as possible. Asking users to modify the rust code somewhere else yo register the plugin might be met with resistance.

    I was thinking that using build script to parse the source code and generating those codes could work, but that seemed hacky. So I was trying to see if there are better solutions, as it felt like a problem people might have come across themselves.


  • Thank you. I just put the call with !, I don’t necessarily want a macro solution. Any solution is acceptable, my requirement is that I can just keep adding more mods with functions in src/functions/ and not have to register each function.

    Inventory seems like the solution I am looking for. Although in my case, instead of collecting different values of the same type, I want to collect different types that all have same trait. But maybe I can make a temporary struct with Box<dyn _> member to collect it if trying to collect it directly doesn’t work. I do not plan to support WASM. I am planning to make C/C++ and Python API for the libraries though, so if it has problems with them, then I might have a problem.




  • thevoidzero@lemmy.worldtomemes@lemmy.worldI know several people like this
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    edit-2
    2 months ago

    That’s not how tax brackets should work. But sadly for last year’s state tax I came across it. [Example numbers] Previously I had 24,200 annual salary but zero tax as it was below 25,000. Even though personal deductions are 10,000, below 25 was considered too low to tax. This year, due to a mistake from employers I was paid for two weeks retroactively, now I have 25,300. Instead of taxing 300 above 25,000 the tax was for 15,300 after deduction. So I had to pay taxes which decreased the money below 25,000 which should not happen if income below 25,000 pays no tax.

    And considering there might be things like not qualifying for financial assistance and other things when you cross 25,000 (again example numbers), the actual benefit of making slightly below that, is higher than making slightly above that…

    So the system is putting a resistance to overcome poverty. Either you start making double of what you are making, or stay on your lane. Because trying to improve your situation by only a little is harmful.


  • That’s another reason US tax system baffles me. Why does it make it so that workers have to pay taxes this way. In my country, salary have very small tax and it’s cut before the money comes into your account at all. So whatever money you egt is yours, there is no feeling of paying taxes at all. While employers will pay taxes and the taxes on profit is a lot more than tax on salary.

    I personally think there’s not much point of tax on the salary, they’ll be spending it on other things, and whoever makes profit on that will pay the taxes on their profit. e.g. you get salary no tax, you buy clothes, vehicle, prepared food, etc. and those companies get your money, and they pay tax on profit, and then have expenses which is money that goes to other companies/people who again pay tax on profit, and their expenses goes somewhere else. All in the money is only taxed once, when there is profit. Unlike in every transaction.




  • For adding with Firefox or similar apps on laptop. I have another program that monitors clipboard (or selection), can filter with regex and run custom commands. So simply copying the url to the video can trigger the curl command to add to playlist.

    Making it in the phone is the hard part. I don’t know much about android dev so any help would be appreciated. I did find somewhere you can make a simple app with protocol definition for sharing, and on share to the app, run the request to the server in the local network.

    I also want to implement file share, if you share a file to that app from local storage, it could upload to the server and mpv can stream it. Since I have used the basic tcp connection, I couldn’t do that in this version either.