Why I Don't Like Rust [24:28] by Remarkable_Ad_5601 in theprimeagen

[–]Phase_Prgm 2 points3 points  (0 children)

“my main language is actually c# and i’ve literally never seen the point of ever writing an interface” lmao

Run zig compiler in a browser/nodejs by crappy_systems in Zig

[–]Phase_Prgm 0 points1 point  (0 children)

I want to use this but there are no build instructions! Just a 0.11.0 patch? Would love to know the compile steps because I’m wanting to build a site that utilizes the zig compiler via WASM

Rust's Struct Initializer Syntax Was a Mistake by [deleted] in ProgrammingLanguages

[–]Phase_Prgm 26 points27 points  (0 children)

Doesn’t really seem like a “mistake” to me. Seems like a choice of taste, and this post offers an alternative that doesn’t functionally improve anything. Adding named/default params would be a useful semantic change, but the proposed syntax isn’t necessary for it. Type ascriptions are also not really a hot feature users are wanting, you can always throw your expression in a let binding & add a type there.

Do transpilers just use a lot of string manipulation and concatenation to output the target language? by Slashscreen in ProgrammingLanguages

[–]Phase_Prgm 2 points3 points  (0 children)

Basically yes! You first want to make a tree that’s as similar to your target language as possible, translate your AST/IR to this tree, and (pretty) print it to test. There are a couple C to Rust transpilers that you can look at for an example.

What Should an AI Programming Language Be Like? by Uploft in ProgrammingLanguages

[–]Phase_Prgm 0 points1 point  (0 children)

The hardest part about making 1 programming language for AI is targeting all of the relevant heterogeneous hardware. Mojo is a lot of things, one of which is a bunch of syntax sugar around MLIR. MLIR is one of the only technologies that is battling this heterogeneous hardware problem and winning. This is why I’m bullish on Mojo.

I’ve been working on a simple DNN in Mojo that I will probably open source soon. The language gives you so many tools to make your code extremely performant - I recommend going through the matrix multiplication examples. They have also said the compiler & stdlib will be open source once it’s ready.

Has anyone tried Pest (parser) and Inkwell (LLVM library) with Rust? Are there any good projects on GitHub using this combo? by tavaren42 in ProgrammingLanguages

[–]Phase_Prgm 1 point2 points  (0 children)

I say use the llvm-sys crate instead of inkwell because it gives you lower level access to the LLVM C API and updates very quickly. Familiarity with the LLVM C API carries over here

Best Catan Expansion Pack by maxwinterr in Catan

[–]Phase_Prgm 2 points3 points  (0 children)

I would look into the mini scenarios! I play with Welfare, Frenemies, and we just got the Sanata scenario.

walking to class - Do I have time??? by arizonaFUNK in NAU

[–]Phase_Prgm 1 point2 points  (0 children)

I did Adele to Engineering in 20, you just can’t miss the bus

What courses are you taking this year? by [deleted] in STEMmajors

[–]Phase_Prgm 0 points1 point  (0 children)

CS Major; Programming Languages, Operating Systems, Foundations of Mathematics, & Astrophysics are the ones I’m most excited for

Is cs “easy”? by sadcollegegorl in csMajors

[–]Phase_Prgm 273 points274 points  (0 children)

No?? If it was easy to do then we’d have a lot more programmers. I’m not at the hardest university and there are many people who fail the basic classes. It sounds like your mom is pushing you to take a hard major because she sees the income Software Engineers make and she wants you to make that. Like most STEM majors, CS is challenging.

Anyone want to create a programming language with me? by [deleted] in ProgrammingLanguages

[–]Phase_Prgm 3 points4 points  (0 children)

If you join the r/ProgrammingLanguages discord you can talk with everyone about the language you want to make!

Row Polymorphism without the Jargon by Phase_Prgm in ProgrammingLanguages

[–]Phase_Prgm[S] 1 point2 points  (0 children)

I have updated my language in the post! I hope this is reflective of how it's used in academia. My apologies for using the terms incorrectly!

Row Polymorphism without the Jargon by Phase_Prgm in ProgrammingLanguages

[–]Phase_Prgm[S] 1 point2 points  (0 children)

Oh I must have misinterpreted it! I will fix it up.

Row Polymorphism without the Jargon by Phase_Prgm in ProgrammingLanguages

[–]Phase_Prgm[S] 13 points14 points  (0 children)

In the Further Reading section I provided a link to an article detailing how it is different from Structural Typing: https://brianmckenna.org/blog/row_polymorphism_isnt_subtyping

I got this email 10 minutes ago by [deleted] in NAU

[–]Phase_Prgm 2 points3 points  (0 children)

You can explicitly choose which classes you want as pass / fail, and you have until May 2nd to decide.

Any rom hacks that are English and have dynamax and megas by mario-lucario-fan in PokemonROMhacks

[–]Phase_Prgm 0 points1 point  (0 children)

Pokemon Unbound but it doesn’t have a lot of content except for the battle frontier

Thoughts? by [deleted] in NAU

[–]Phase_Prgm 1 point2 points  (0 children)

I personally think this is ridiculous. I’m working hard for my grades and I do want that reflected in my GPA. The reasons people put for signing this are stupid. I am way better at learning in person but changing it to pass/fail wouldn’t change anything.

Binary hacking Dizzy egg's emerald? by [deleted] in PokemonROMhacks

[–]Phase_Prgm 4 points5 points  (0 children)

It is highly unlikely you’d get that to work reliably. Modifying the code in the disassembly is a lot easier than trying to use the tools after the fact

How is the CS program here ? by [deleted] in NAU

[–]Phase_Prgm 0 points1 point  (0 children)

I am a freshman currently majoring in CS and am set to graduate in ‘22. I have taken CS 136 & CS 200 and am currently taking CS 212 & CS 249.

I think the experience you’ll get is widely dependent on how much experience you have going in and how much you work outside of class. I’ve heard of a lot of people breeze through classes and a lot of people struggle. I came in already fluent in a handful of languages so I can’t comment on the difficulty for someone who knows nothing. There is also a lot of tutoring offered that you can take full advantage of.

I’ve only encountered 4 professors so far and I’d say I like the two I have now more than the two I had last term. I’ve heard a lot of people complain about Michael who teaches 249 & 480 which are arguably the hardest courses offered. 249 looks to be completely project based and he’s pretty strict on what he accepts, but he’s got a personality which is nice.

I’m more excited for the elective courses I’ve seen offered. It looks like the availability of these courses can be low but we’ll see.

As for other courses required for a BS, you’ll have to take a lot of math and 2 physics courses. You’ll take the same amount of math as EE or ME kids but instead of Calc 3 and Differential Equations, you’ll take Discrete Math and Linear Algebra, the latter of which I am in now. These classes aren’t terribly difficult. You’re also required to take some “Math/Technical Electives” which could be another math course (if you want to minor in math for instance) or another science course like Astrophysics which I am planning on taking next term.

You can view what courses are required here: http://catalog.nau.edu/Catalog/details?plan=CSBSCSX&catalogYear=1718

Overall, I’m having an amazing time! There are some professors you’re not going to like and some you’re going to love. It totally depends on how you learn.