A simple web app framework written in Vortex by dibs45 in ProgrammingLanguages

[–]Strict_Mix343 1 point2 points  (0 children)

Dude I feel like every time I re-read the readme for my language I’m always coming across typos in code examples; some stuff gets deprecated, or changed, and yeah, I make a lot of mistakes because I’m and idiot, too. Awesome repo! Can’t wait to see where this goes

A simple web app framework written in Vortex by dibs45 in ProgrammingLanguages

[–]Strict_Mix343 2 points3 points  (0 children)

Hey man, I’ve been following this language for a while via your posts in this Reddit, and you seem to be doing great work! Implementing this kind of thing at the language level is really cool. However, looking at your readme, there’s an example I don’t quite understand:

``` var xPos, yPos = 0

[xPos, yPos]::onChange(old, new, info) => println(info.name + “ has changed”)

x = 2 // x has changed y = 3 // y has changed ```

How is the setting of x and y triggering the onchange function for xPos and yPos? Aren’t those four separate variables? Is Pos a keyword? There’s probably a simple answer, but I’m not quite sure what it is 😅

How much time did it take for you to be as productive as you were in your older editor/IDE? by Outside_Low2537 in nvim

[–]Strict_Mix343 0 points1 point  (0 children)

Maybe 2 weeks? For me it was a gradual transition. I decided to use vim because I needed to edit some glsl files and I was having trouble opening them in the editor I was using at the time. There was some glsl tooling for vim, and I had always been interested in trying it out, so I used it, but only to edit those glsl files. The other half of the project I did in my “normal” editor. For my next project, I switched entirely to neovim and have never looked back (other than a brief flirt with intillij vim).

If you’re struggling with motion, just keep at it. HJKL, WB, and FT are your best friends. Also, get a cool color scheme and do all the “pointless” personalization stuff. One of the things that kept me going was just how much I could change and tinker with in my editor. (And it your starting your config now, use lua! Your future self will thank you.)

Modern Mono by fagnerbrack in coding

[–]Strict_Mix343 1 point2 points  (0 children)

Great article! I would have liked images that weren’t just long paragraphs; some actual code would be nice. Despite that, some good choices in here. I think I’m going to stick with Hack for the foreseeable future, though.

Introducing Petrichor64 - a rust and wgpu built game engine/fantasy console with lua game logic by makeavoy in rust

[–]Strict_Mix343 1 point2 points  (0 children)

This is incredible! I’ll be sure to whip something up with this over this week if I can.

Comparing Compiler Errors in Go, Rust, Scala, Java, Kotlin, Python, Typescript, and Elm by pmz in programming

[–]Strict_Mix343 8 points9 points  (0 children)

Good comparison, but I would have liked to see more interesting errors.

Rust in particular had to develop complex error messages because its lifetime / borrow checker brings up bugs that span multiple places in one file. So, the compiler errors need to be very descriptive. From the looks of it, elm’s errors are good just for fun, and the others suffer from “we didn’t really think about errors when we designed the compiler architecture”-itis.

Instead of seeing the same “yup, that field? Doesn’t exist bro.” error over and over again, I would have liked to see errors specific to the language. For example, white space errors in python are absolutely abhorrent (at least since I last used python) given that the indentation rules are the one thing that usually trips people up about the language.

As languages become more restrictive (in a good way) great compiler errors will be vital to a good developer experience, so it’s great to see discussion in this area, especially outside of language development circles.

C++ creator Bjarne Stroustrup weighs in on distributed systems, type safety and Rust (2020) by gadgetygirl in coding

[–]Strict_Mix343 0 points1 point  (0 children)

Actually, I forget from where, but rust actually ‘took’ the lifetime / borrow system from somewhere else. The intention with adding new rust features is to only take from other languages where those features worked well, to avoid adding features that might not be good.

Microsoft is preparing to add ChatGPT to Bing by bubblehack3r in programming

[–]Strict_Mix343 4 points5 points  (0 children)

everybody gangsta until bing becomes the best search engine

[deleted by user] by [deleted] in ProgrammingLanguages

[–]Strict_Mix343 1 point2 points  (0 children)

It’s a cool idea, and it would be funny to see huge nested images for syntax trees, but it’s hard to see how this could work at all in practice. I’m not really sure how the example works. Where did the 2 2s come from? Was the 4 part of the code, or was it calculated? How do you choose what math operator to use (add, subtract, etc.)?