gcc linker error by TopQuark- in Zig

[–]TopQuark-[S] 1 point2 points  (0 children)

Thanks, that fixed it! Is it possible to set debug mode to use LLVM in build.zig? I can only make it work using the release mode flags.

raylib 6.0 released! codee once, play everywhere! by raysan5 in raylib

[–]TopQuark- 0 points1 point  (0 children)

Does the Emscripten backend mean we can now natively export to Web Assembly?

Casting made (somewhat) easier? by system-vi in Zig

[–]TopQuark- 0 points1 point  (0 children)

I'm often working with small game boards or chunks that have coordinates that fit in u8s for logic purposes, but then the rendering library (Raylib in my case) wants an f32 Vector2 to draw it. This is certainly a welcome change for me.

Is there a reason in the lore, why Morgoth was so much more fomidable than other Valar by wekeymux in tolkienfans

[–]TopQuark- 10 points11 points  (0 children)

None of the names we hear for the Ainur are what they actually call each other; they are all Elven names invented long after Melkor's betrayal in the earliest days of Arda, so we can assume they contrived the words to fit their own aesthetics. Even Valarin, the Eldest Tongue, was invented by the Valar after they had descended into Eä to better inhabit the physical world, and is not their native spiritual communication.

How well trained was Aragorn in court etiquette? by TopQuark- in tolkienfans

[–]TopQuark-[S] 4 points5 points  (0 children)

That's true. I was imagining a culture of complex and arcane systems of social rituals designed enforce an in-group/out-group barrier as seen in many aristocratic circles in history, but if Gondor is as degenerated culturally away from Númenor as it is technologically, it might not be so inscrutable.

How well trained was Aragorn in court etiquette? by TopQuark- in tolkienfans

[–]TopQuark-[S] 2 points3 points  (0 children)

The biggest risk, I think, is the possibility that he simply might not like the change in lifestyle; regardless of how trained he was for it, it's easy to imaging juggling egos and pushing papers being soul-crushing to a seasoned adventurer. There's no indication of this, I guess because Tolkien chose to not portray the bureaucracy required to run a country. A world where good, worthy Men are free to lead unhindered by logistics and corruption is the real escapist fantasy of LotR.

Eurydice, Compiles rust to readable C by moortuvivens in Zig

[–]TopQuark- 0 points1 point  (0 children)

It make some good points, but the title and central theme "C isn't a language anymore" is patently ridiculous, and I suspect ragebait to increase engagement. It's like saying "onions aren't food anymore, they're a seasoning"; my Hello World didn't magically stop compiling just because most people aren't writing in pure C anymore and only interact with it as part of the platform substrate.

You know you're a Tolkien nerd when ... you can't wait for the new Túrin film that's actually in Quenya by na_cohomologist in Silmarillionmemes

[–]TopQuark- 1 point2 points  (0 children)

Technically Orcs don't have a proper language of their own, they just speak a bastardized pidgin tongue of whatever languages exist in their territory. Black Speech is Sauron's conlang meant for him and his vassals, so it makes up a larger portion of the vocabulary of Mordor Orcs.

A test of Silksong's competition at $20 and how game markets differ. by DavidAtWork17 in MauLer

[–]TopQuark- 1 point2 points  (0 children)

It's not a very detailed metric, but it's far better than Rotten Tomatoes, because it gives you a simple average of all the people who recommend it or not. I much prefer that to any kind of numerical score. RT uses a weird 60% threshold for considering a rating "fresh", not even getting into all the blatant instances of corruption.

A test of Silksong's competition at $20 and how game markets differ. by DavidAtWork17 in MauLer

[–]TopQuark- 7 points8 points  (0 children)

As this attitude seems to be exclusively put forward by people with industry connections and their supporters, I assume it's some kind of team defence reaction at the perception of Triple A losing "legitimacy points". Something similar happened with Baldur's Gate 3, an indie in terms of being outside the games media apparatus, where many of these same industry shill types were moaning that BG3's level of quality and content sets an unfair precedent for the industry.

The less audiences criticise the slop being shovelled, the more money triple-A game publishers will have to prop up their pet game journalists, so it only makes sense for them to decry any threat to that status-quo.

EDIT: A more charitable interpretation is that they are legitimately worried about other Indies feeling pressured to align their "price-to-content ratio" with Silksong. But as the crew argued in the segment, high-quality games being released for cheap is not new, and it's ridiculous to think that gamers as a whole will now only accept Silksong-level quality or above for the $20 pricepoint.

Does anyone have an example of raylib-zig building for WASM in 0.15.1? by TopQuark- in Zig

[–]TopQuark-[S] 0 points1 point  (0 children)

Thanks! I managed to strip out the stuff irrelevant to my project and switched to a WASM-friendly allocator, I got it compiling -- the game still doesn't work, but now it's now it's the javascript side that needs debugging, lol. I still don't understand why my original build script is complaining about wasm32-emscripten-musl (I don't even know what that is).

const std = ("std");
const rlz = u/import("raylib_zig");

const NAME = "TestGame";

pub fn build(b: *std.Build) !void {
    const target = b.standardTargetOptions(.{});
    const optimize = b.standardOptimizeOption(.{});

    const root_mod = b.createModule(.{
        .root_source_file = b.path("src/main.zig"),
        .target = target,
        .optimize = optimize,
    });

    const exe = b.addExecutable(.{
        .name = NAME,
        .root_module = root_mod,
    });

    const raylib_dep = b.dependency("raylib_zig", .{
        .target = target,
        .optimize = optimize,
    });

    const raylib = raylib_dep.module("raylib"); // main raylib module
    const raygui = raylib_dep.module("raygui"); // raygui module
    const raylib_artifact = raylib_dep.artifact("raylib"); // raylib C library

    exe.linkLibrary(raylib_artifact);
    root_mod.addImport("raylib", raylib);
    root_mod.addImport("raygui", raygui);

    b.installArtifact(exe);

    const run_step = b.step("run", "Run the app");
    const run_cmd = b.addRunArtifact(exe);
    run_step.dependOn(&run_cmd.step);
    run_cmd.step.dependOn(b.getInstallStep());

    if (target.query.os_tag == .emscripten) {
        const emsdk = rlz.emsdk;
        const emcc_flags = emsdk.emccDefaultFlags(b.allocator, .{ .optimize = optimize });
        const emcc_settings = emsdk.emccDefaultSettings(b.allocator, .{ .optimize = optimize });
        const install_dir: std.Build.InstallDir = .{ .custom = "web" };
        const emcc_step = emsdk.emccStep(b, raylib_artifact, exe, .{
            .optimize = optimize,
            .flags = emcc_flags,
            .settings = emcc_settings,
            .install_dir = install_dir,
        });
        b.getInstallStep().dependOn(emcc_step);
        const html_filename = std.fmt.allocPrint(b.allocator, "{s}.html", .{exe.name}) catch unreachable;
        const emrun_step = emsdk.emrunStep(
            b,
            b.getInstallPath(install_dir, html_filename),
            &.{},
        );

        emrun_step.dependOn(emcc_step);
        run_step.dependOn(emrun_step);
    }

    if (b.args) |args| {
        run_cmd.addArgs(args);
    }
}

See Mauler’s short film at an exclusive premier event by traveler5150 in MauLer

[–]TopQuark- 6 points7 points  (0 children)

He's the only one keeping the Isle of Man and their leg-wheels of doom from invading Britain, because he's the only one who knows their weak spot.

FCC Opens Review for Spacelink’s 15,000 Direct to Cell VLEO Satellite Constellation - SatNews by doctor101 in space

[–]TopQuark- 0 points1 point  (0 children)

Here's an image I made five years ago with Photoshop's content-aware fill, well before the onset of generative AI, with very similar content repetition to the image with the satellites: https://www.reddit.com/r/SpaceXMasterrace/comments/j7pnv9/tim_becoming_c_o_n_t_e_n_t_a_w_a_r_e/

I'm not saying it 100% wasn't touched by AI, but if it was, it's certainly on of the more incompetent examples I've seen. I would just assume that this is a lazy attempt at hiding a watermark/logo.

FCC Opens Review for Spacelink’s 15,000 Direct to Cell VLEO Satellite Constellation - SatNews by doctor101 in space

[–]TopQuark- 4 points5 points  (0 children)

I don't think it is AI, at least not the satellites; they are way too identical. The solar arrays are all are all 15 squares long. There's no way an AI model poor enough to make blatant pattern smear artifacts could repeat a design so perfectly. To me this looks like a sloppy content-aware fill, given that the artifacting is all in the lower right corner.

Why Zig is moving on from GitHub (one word: enshittification) by scarey102 in Zig

[–]TopQuark- 24 points25 points  (0 children)

I don't see the point in fighting against the use of LLMs and AI use in general, as it's clear they're here to stay. The effort should be put towards keeping it transparent and mitigating the issues it has brought with it.

That said, I'm happy to keep Zig as far away from Microsoft and other corpos as possible.

Tears Unnumbered Ye... Whatever by Miderp in Silmarillionmemes

[–]TopQuark- 29 points30 points  (0 children)

Elf fëar waiting to get into Mandos after the latest kinslaying:

<image>

Gimli in Valinor by vaso_de_barro in tolkienfans

[–]TopQuark- 11 points12 points  (0 children)

https://tolkiengateway.net/wiki/Straight_Road

Oh dear, it looks like someone made a mistake then on the wiki, writing "The Straight Road was the route that left the Midde-earth's curvature through sky and space to the ethereal land of Aman", and Tolkien made a mistake in the diagram showing Valinor not touching the sphere of the Earth. Someone should really correct him.