• 0 Posts
  • 24 Comments
Joined 1 year ago
cake
Cake day: July 14th, 2023

help-circle







  • The goal of the zig language is to allow people to write optimal software in a simple and explicit language.

    It’s advantage over c is that they improved some features to make things easier to read and write. For example, arrays have a length and don’t decay to pointers, defer, no preprocessor macros, no makefile, first class testing support, first class error handling, type inference, large standard library. I have found zig far easier to learn than c, (dispite the fact that zig is still evolving and there are less learning resources than c)

    It’s advantage over rust is that it’s simpler. Ive never played around with rust, but people have said that the language is more complex than zig. Here’s an article the zig people wrote about this: https://ziglang.org/learn/why_zig_rust_d_cpp/


  • lemming934@lemmy.sdf.orgtoMildly Infuriating@lemmy.worldJust 2 people.
    link
    fedilink
    English
    arrow-up
    37
    arrow-down
    1
    ·
    7 months ago

    I think OP believes every town in the US has twice as many homeless people as churches, it doesnt need to be exactly 1 church and 2 homeless people.

    But either way, that’s probably not true. Since homeless people tend to be in larger cities.

    But then again, lots of people become homless in the suburbs and then move to the city to get the social services. If churches in the suburbs housed a few people as they become homeless, it would probably help. It’s better to keep people in their communities so they have a better chance of returning to housefullness.

    But probably not that much, since homelessness rates are strongly correlated with housing prices, so expensive cities create more homelessness than cheap suburbs.









  • Here’s a thread where I helped someone else with the process on windows: https://lemmy.sdf.org/comment/1420339

    The steps are:

    1. Set up the python code
      1. Go to https://github.com/wescode/lemmy_migrate/releases/tag/v1.1.0
      2. Download the zip file
      3. Extract the zip file, to make a folder somewhere on your system called lemmy_migrate-1.1.0. Remember where this folder is
      4. Inside the folder you will find a file called config.ini. Use notepad to edit the file to have your server URL and login credentials.
    2. Set up the python interpreter
      1. Install python from https://www.python.org/downloads/
      2. Open powershell
      3. install the python package requests by pasting the following command into powershell: py -m pip install --user requests
    3. Use the python interpreter to interpret your python
      1. first make sure powershell is looking at the correct folder. One way to do this is to open the lemmy_migrate-1.1.0 folder in windows explorer. right click on the box that shows you the path, and copy the text. then write cd <pasted path> in powershell. This path will very likely be something like C:\\Users\Wu9fee\Downloads\lemmy_migrate-1.1.0. If you don’t want to copy and paste the path from explorer, you can just do cd Downloads then cd lemmy_migrate-1.1.0
      2. Finaly, you can run the python command with py lemmy-migrate.py -c config.ini

    Let me know if you run into any problems.

    If you can pull this off, you can officially say you know how to code.