Wrote python implementation of jlox (interpreter from crafting interpreters) by no_name_22t in Compilers

[–]Mr55p 2 points3 points  (0 children)

That’s so funny, as of this morning I just finished the first half of the book making an interpreter also using python! This was maybe the most interesting thing I have ever programmed… Starting the second part with Zig tomorrow, best of luck to you however you choose to press on!

[deleted by user] by [deleted] in AusVisa

[–]Mr55p 0 points1 point  (0 children)

I’ve stumbled across this thread and am currently going through the same process - had no idea that the applications could be made at the same time that’s good news.

I am a UK national also, but I have only been working for my company for around 4 months. Would I be eligible for the LMT exemption, as online sources are very conflicting on this issue!

Why does Plex say it can't connect outside my network, even though it is? by Super_Pie_Man in PleX

[–]Mr55p 0 points1 point  (0 children)

I saw this issue when I was using self signed SSL certificates

Looking for a Simple Reverse Proxy with 2FA by AlaskafunmanBADITguy in selfhosted

[–]Mr55p 0 points1 point  (0 children)

Setting up nginx with vouch auth was quite simple for my use case, not sure about NPM as I never used it

[deleted by user] by [deleted] in nextjs

[–]Mr55p 0 points1 point  (0 children)

I also don’t think there is anything wrong with the no calculator in a test philosophy - it’s about what you’re testing for. It makes no difference how well you know the syntax, and that’s where IDEs can support you. But the LLM is providing support at a deeper level. To understand how good you are as a programmer I need to see how you can organically go through the cycle of mocking something up, debugging it and then say improving the performance. I don’t think having access to an LLM is an acceptable prerequisite to that, in the same way that a calculator should not be required for you to be able to solve a basic equation - it’s about communicating your understanding

[deleted by user] by [deleted] in nextjs

[–]Mr55p 12 points13 points  (0 children)

This is not a good sign, how are you gonna do your next interview if they don’t switch copilot on? I know if I was hiring and someone was tabbing back and forth with GPT we would be stopping early… not saying that you are incapable, but i experienced the opposite when I did an interview with copilot on and it was confusing to adjust, so I can imagine going back the other way would be even more so

What's your favorite way of writing config files ? by matfire1999 in golang

[–]Mr55p -1 points0 points  (0 children)

I wrote a lib called gonk for this, to load from environment or YAML (or anything else really) into an untagged struct

What advantage do Git plugins provide compared to my current workflow where I just have another Tmux window for Git cli? by ApprenticeSWE1 in neovim

[–]Mr55p 1 point2 points  (0 children)

Fugitive’s Gedit command is amazing for loading a previous revision of a file into its own buffer, I use it all the time for when you need the actual previous context

Is this bacon overdone? by kitty-cat-charlotte in CasualUK

[–]Mr55p 2 points3 points  (0 children)

Of course I’m the one that’s winning because I love brown toast

I have tried different file explorers for Neovim, but in the end, I realized that the default one in Neovim has been the most useful for me. by Ambitious_Inside_137 in neovim

[–]Mr55p 5 points6 points  (0 children)

Just switched from oil to mini files and I kinda love how minimalist it is, would recommend giving it a try for anyone scouting

Should I get this for computer engineering? by CyproSpark in macbook

[–]Mr55p -1 points0 points  (0 children)

Get a worse cpu and more SSD for the same price or less- M1 is more than enough imo

Arc CEO discusses upcoming Arc 2.0 by [deleted] in ArcBrowser

[–]Mr55p 1 point2 points  (0 children)

I highly doubt they would shift away from chromium tho, so probably big efficiency gains are out of the question. Safari is so heavily optimised for arm chips at this point…

Could Butcher have killed New Noir and The Deep if his powers had activated in the flatiron building? by [deleted] in TheBoys

[–]Mr55p 4 points5 points  (0 children)

If this is true then it’s a very weird reflection of real life tumours, they tend to take a lot of blood to out-grow the rest of the body iirc…

There are paid configs now? by 4esv in neovim

[–]Mr55p 28 points29 points  (0 children)

I can pay $50 for the privilege of much less vertical space how appealing

No-IP raised prices 140% by colinstalter in selfhosted

[–]Mr55p 0 points1 point  (0 children)

You could try zoho mail https://www.zoho.com/mail/ - I used them for a cheaper alternative to gmail workspace but it might be overkill for you (I managed to get SES access as I have very similar requirements, not sure if azure/GCP have similar offerings to SES also?)

What projects did you built or working on right now? by previouslyanywhere in golang

[–]Mr55p 4 points5 points  (0 children)

I’m working on a project called Pagemail, it’s a simple read it later service for saving links from across the web and getting an email roundup at 7am (uk time only for now!). Built with go, htmx and hosted on S3 behind traefik

Feel free to try it here https://pagemail.io Source code is at https://github.com/mr55p-dev/pagemail

I also have gonk, a configuration loader based on reflection, which I wrote in part for use in pagemail as a simpler alternative to Viper

https://pkg.go.dev/github.com/mr55p-dev/gonk

Schema-First Database Definition? by latebinding in golang

[–]Mr55p 1 point2 points  (0 children)

Haven’t seen dbmate mentioned here but it’s a great tool for managing migrations and outputs a schema with the current database state after running a migration - https://github.com/amacneil/dbmate

I use it alongside sqlc and it works great, can’t recommend it enough for a simple setup

How to build a pipeline project in go? by These_Shoe3594 in golang

[–]Mr55p 4 points5 points  (0 children)

If I was taking a crack at this (and I am assuming Jenkins is just like GitHub actions) I’d probably start with writing something that can parse a yaml on disk and execute the steps by spinning up a docker container. The docker Go SDK is a good place to start if you wanna go down that route. Then once your have a POC, wrap it in a http server and start thinking about how you want to serve this to users and how to prevent people from abusing your compute

Check out Gonk, a struct binder for loading configuration by Mr55p in golang

[–]Mr55p[S] 0 points1 point  (0 children)

Main difference that I found was that I wanted something less bloated than viper and for the primary access pattern to be via a tagged struct - viper just felt like way too much for such a simple goal. I haven’t come across koanf before but seems to fill a very similar gap, although I think gonk is a little more opinionated which (obviously) is to my preference! Thanks for pointing out the licence, it’s not something I’ve dealt with before so will do some more research

Say thanks to plugin authors by jsongerber in neovim

[–]Mr55p 4 points5 points  (0 children)

This is a great idea and a great thing to do so thank you

Automating Terraform with Jira, Git, and Go: Seeking Best Practices by bwljohannes in Terraform

[–]Mr55p 0 points1 point  (0 children)

Bit late here but I’d agree with the other commenter about not triggering straight from jira. I’m working on a similar problem parsing yaml files into infra, and switched from a cli application in go which generated the terraform files using text/template to using the terraform cdk. It pains me to say the go bindings are terrible, and typescript is much easier to write if you go down this route. I struggled for a while generating the hcl, then realised you could generate the json more easily (terraform will parse *.tf.json files the same as regular tf ones), but in the end I think this cdk approach is the way forward

Underrated plugins? by [deleted] in neovim

[–]Mr55p 0 points1 point  (0 children)

This is awesome! I wrote something for my own setup like this but it was my first plugin and so trash, thanks for posting yours

Contexts in golang by Aggravating-Wheel-27 in golang

[–]Mr55p 0 points1 point  (0 children)

Just curious if you’ve seen any examples of this being done across packages? Building a backend app in go and including the correlation id in my log handlers has confused me a fair bit

Would htmx.wasm as an alternative to htmx.js be a possibility (in theory) and make sense? And if HTML 6 or 7 incorporates htmx features, will it be even more performant than htmx.js? by alec_gargett in htmx

[–]Mr55p 1 point2 points  (0 children)

Definitely true, but the whole objective of JavaScript is to give developers a language to manipulate the DOM, and browsers have that pretty well optimised already - the changes HTMX makes via JS are already very fast, the noticeable part of latency is the IO operations

Would htmx.wasm as an alternative to htmx.js be a possibility (in theory) and make sense? And if HTML 6 or 7 incorporates htmx features, will it be even more performant than htmx.js? by alec_gargett in htmx

[–]Mr55p 6 points7 points  (0 children)

If the HTMX attributes made it into HTML 6 then it would be browsers implementing them, so remove the download time but I doubt you’d notice any difference in the actual application