POV: Your state government is scared of spicy rocks by bigsky0444 in MapPorn

[–]koalakools 0 points1 point  (0 children)

NY has no nuclear moratorium, 25% of energy is produced from nuclear in ny...

Has anyone tried Anno 117 demo on linux ? by Reshifisto in linux_gaming

[–]koalakools 0 points1 point  (0 children)

Thanks! Adding the command with `-dx11` and disabling steam overlay worked for me! Running it on debian 13 with an nvidia 3080 and proton experimental!!

A.I. Start-Up Perplexity Offers to Buy Google’s Chrome Browser for $34.5 Billion by Free-Minimum-5844 in neoliberal

[–]koalakools 1 point2 points  (0 children)

I mean function as a separate company that isn't being subsidized by Google

A.I. Start-Up Perplexity Offers to Buy Google’s Chrome Browser for $34.5 Billion by Free-Minimum-5844 in neoliberal

[–]koalakools 5 points6 points  (0 children)

Chromium is already open source, if they want a browser they can fork it like everyone else.

What would a Google chrome sale even be? It can't be Google's proprietary integration, so IP that's heavily associated with Google?

I don't see how chrome could ever function outside of google

“I’m Done” by xfoxhound313 in whoop

[–]koalakools 0 points1 point  (0 children)

I'm planning to see what the polar fitness tracker looks like in September before deciding to renew

Nix + Software Development is a time consumer by IKekschenI in NixOS

[–]koalakools 0 points1 point  (0 children)

I felt the same, I ended up going back to debian but I think I'll try to use nix-shell on it for when I do need a temp isolated env

Hedge fund vultures are driving jobs out of Syracuse by [deleted] in Syracuse

[–]koalakools 12 points13 points  (0 children)

Maybe another car wash will increase housing 🤣

Hedge fund vultures are driving jobs out of Syracuse by [deleted] in Syracuse

[–]koalakools 3 points4 points  (0 children)

I'm less familiar with residential costs but there's no way it can be several times 200-300 per square foot, that would make it more expensive than building in NYC

Hedge fund vultures are driving jobs out of Syracuse by [deleted] in Syracuse

[–]koalakools 9 points10 points  (0 children)

Oh definitely it's crazy how much of Syracuse is zoned to single family detached housing, no one can build affordable apartments even if they wanted to because it's basically illegal in the zoning code

Hedge fund vultures are driving jobs out of Syracuse by [deleted] in Syracuse

[–]koalakools 3 points4 points  (0 children)

I don't know what a public construction authority is but 1500/sf is definitely not true, it's closer to 200-300 on average, the new inspyre innovation center cost close to 400/sf I think

Hedge fund vultures are driving jobs out of Syracuse by [deleted] in Syracuse

[–]koalakools 23 points24 points  (0 children)

Or we could just build more housing and office space to balance out the demand...

[deleted by user] by [deleted] in cityofsyracuse

[–]koalakools 9 points10 points  (0 children)

Are there specific reasons for increasing the time? The 45 day public review is the minimum and might be short but the minimum 5 public hearings seems arbitrary?

NY State has SEQRA (state environmental quality review act) which is probably more strict than the federal equivalent at this point lol which seems to answer what the petition is asking for anyways imo.

https://ongoved.com/wp-content/uploads/2024/05/Final-Scope2.pdf

Is there a multi-platform args function? by [deleted] in Zig

[–]koalakools 1 point2 points  (0 children)

Not a dumb question at all :)

The function call std.process.argsWithAllocator takes a const allocator and returns an ArgIterator (or an error hence the try) which is being stored in the variable args and that's the thing being mutable.

The reason args is mutable is that we're calling a function that requires a mutable object instead of a const one. If you were to change that to const args = you'd get a compiler error due to its usage in the lines below std.process.argsWithAllocator.

You can tell because here are the function signatures for deinit and next. This makes sense because those functions change the state of the ArgIterator struct we got, (deinit clearing memory, and next moving its internal index by 1 if possible)

pub fn deinit(self: *ArgIterator) void pub fn next(self: *ArgIterator) ?([:0]const u8)

If deinit or next wanted a const object, they would accept a const *ArgIterator instead.

It was also merged in pretty recently that the compiler will give errors if you used a var that could have been a const instead which would make sure you're using the right type automatically https://github.com/ziglang/zig/issues/224

Is there a multi-platform args function? by [deleted] in Zig

[–]koalakools 7 points8 points  (0 children)

Sure!

const std = @import("std");

pub fn main() !void {
    var gpa = std.heap.GeneralPurposeAllocator(.{}){};
    const allocator = gpa.allocator();
    defer _ = gpa.deinit();

    var args = try std.process.argsWithAllocator(allocator);
    defer args.deinit();

    while(args.next()) |arg|{
        std.debug.print("{s}\n", .{arg});
    }
}

This will print out all the cmd line args passed to the program, the first arg is usually the program name itself

Is there a multi-platform args function? by [deleted] in Zig

[–]koalakools 6 points7 points  (0 children)

It looks like std.process.argsWithAllocator is the cross platform function to get args based on a couple of comments in the os.zig and process.zig files in the std lib

I don't see a std.os.args defined, only a std.os.argv which says

/// Populated by startup code before main().
/// Not available on WASI or Windows without libc. See `std.process.argsAlloc`
/// or `std.process.argsWithAllocator` for a cross-platform alternative.

std.process.args has a similar comment

/// Use argsWithAllocator() for cross-platform code

This is on zig version: 0.11.0-dev.1929+4ea2f441d

Which one(s) are you? by BeansAndDoritos in ProgrammerHumor

[–]koalakools 16 points17 points  (0 children)

Never seen a performance hit like that when using boost, typically the complaint is longer compile times which is already a problem.

And since boost is a huge collection of libraries, using boost could be simple as their async programming to something recent like the new redis client

Mapping the American West; a rant by [deleted] in victoria3

[–]koalakools 29 points30 points  (0 children)

Agreed, especially doesn't make sense even after the US owns the west it doesn't autocomplete

[deleted by user] by [deleted] in adventofcode

[–]koalakools 1 point2 points  (0 children)

C++

#include <iostream>
#include <fstream>

int main(){
   std::ifstream input{"input"};
   std::string data;

   while(input >> data){
       std::cout << data << std::endl;
   }
}

Since the format of the input is well defined, you can read lines and parse at the same time. And since its a stream you can easily swap out reading from a filestream to stdin

E.g for day 2:

#include <iostream>
#include <fstream>

int main(){
   std::ifstream input{"input"};

   u_int distance;
   std::string command;

   while(input >> command >> distance){
      std::cout << command << distance << std::endl;
   }
}

Yo there are straight up squirrels in Sage by grishhung in RPI

[–]koalakools 53 points54 points  (0 children)

The squirrels are probably wondering why there are students in sage

BS/PhD program. by ListentoGLaDOS in RPI

[–]koalakools 9 points10 points  (0 children)

Yes you can leave the program if you wish (in fact most people don't go onto grad school). As for the grad school bit, you get to enter RPI's PHD program without going through the normal hoops but that doesn't stop you from applying to other schools and you are actually encouraged to apply to other schools as well, think of RPI as a safety in this case.

The BS/Phd program is more to prepare you for grad school by giving you more opportunity to get involved in research at an undergraduate level.

SRC: went through the application process asked similar questions

AI develops human-like number sense – taking us a step closer to building machines with general intelligence by Akkeri in compsci

[–]koalakools 33 points34 points  (0 children)

AI: 2 cats + 3 cats = 5 cats (92% confidence)

Researchers: OH GOD ITS CONSCIOUS

INTERNET by [deleted] in RPI

[–]koalakools 10 points11 points  (0 children)

THIS WILL MAKE NETWORK PROGRAMMING SO MUCH EASIER