-
Go programming language discussion @lemmy.ml sbinet @lemmy.ml Star-TeX v0.7.1 is out
hi there,
Star-TeX v0.7.1 is out:
After a (very) long hiatus, development of Star-TeX has resumed. Star-TeX is a pure-Go TeX engine, built upon/with modernc.org/knuth.
v0.7.1 brings pure-Go TeX → PDF generation.
Here are examples of generated PDFs:
- https://git.sr.ht/~sbinet/star-tex/tree/v0.7.1/item/testdata
- https://git.sr.ht/~sbinet/star-tex/tree/v0.7.1/item/dvi/dvipdf/testdata
PDF generation is still a bit shaky (see #24), but it's coming from the external PDF package we are using rather than a Star-TeX defect per se.
We'll try to fix that in the next version. Now we'll work on bringing LaTeX support to the engine (working directly on modernc.org/knuth).
-
Go programming language discussion @lemmy.ml shayan16sa @lemmy.ml Learning go while making a project. Looking for beginners who want to learn go to colab
Hi Guys, i have been learning go recently. i come from a python background, so go is fun language to learn for me. I know a bit c and it has helped me a lot Anyways, I have made a little project to exercise on my go skills. It’s a gravity system simulator. It basically the Newton’s law of gravity with raylib. i’d be very happy if you make a PR especially people who are learning go as well, So it would be good project to start a new path. thanks for reading. here is the link to the github repo: https://github.com/shayan15sa/phi-sim
-
Go programming language discussion @lemmy.ml 4rkal @lemmy.world Deploying Go + Templ + HTMX + TailwindCSS to production
4rkal.com Deploying Go + Templ + HTMX + TailwindCSS to production | 4rkal's Dev BlogIn this article I will be showing you how to deploy the GoTTH stack (Go Templ htmx tailwind) to production.
-
Go programming language discussion @lemmy.ml trymeout @lemmy.world VSCode: Debugging Attached Process does not work
I made some Go scripts that require user input
fmt.Scanln(&fileName)
during the execution. When I use the Go debugger built into VSCode which is the launch type, it works but there is no way to enter any prompts when your exeuctable asks for a input. With other programming languages like NodeJS and PHP, there is way to run the scripts in "debugging mode" where it will run the code but before it executes the code, it will wait to attach to a debugger on your system and then execute the code. This has always allowed me to use the terminal for inputs in the executable.For example to do this in NodeJS, you will use
node --inspect-brk=0.0.0.0 main.js
instead ofnode main.js
and then run the debugger in VSCode to attach it to the executing script. Is there a way to do this with Go? Do I need to set something up to achieve this?I am on Linux Mint and cannot find any commands to run
go run .
but to wait for a debugger to attach to the executable before executing. -
Go programming language discussion @lemmy.ml trevor @lemmy.ml The first 10k games at bgammon.org, an open source online backgammon service
-
Go programming language discussion @lemmy.ml sbinet @lemmy.ml peertube: a (simple) Go client for PeerTube
hi there,
just a quick message to announce my latest small pet project of the week :
A simple (and incomplete) Go client for PeerTube[1] (an alternative to Big Tech's video platforms).
Right now, the client can:
- authenticate with a PeerTube server,
- list accounts,
- list videos for a given account,
- upload videos for a given account,
- remove videos for a given accounts.
There's also a simple peertube-cli command-line program to perform the things above:
sh
$> go install git.sr.ht/~sbinet/peertube/cmd/peertube-cli $> peertube-cli help peertube-cli - runs peertube-cli commands and sub-commands Commands: auth-add authenticate with a PeerTube server auth-ls list the known PeerTube servers auth-rm remove a PeerTube login video-ls list video(s) from a PeerTube server video-upload upload a video to a PeerTube server Use "peertube-cli help <command>" for more information about a command.
It's not much
-
Go programming language discussion @lemmy.ml mo_ztt ✅ @lemmy.world Is directory monitoring just cursed?
So, I need to monitor a fairly large nested directory tree for changes on Linux. It seems like there are a few different watcher modules that I could use -- fsnotify and notify being the main ones, both of which use the inotify interface and attempt to set watches on each individual subdirectory and maintain all their watchers as things change. I have way too many directories for that to be a workable approach. It looks like the underlying issue is just that this is a difficult problem on Linux; both inotify and fanotify have some issues which make them difficult for library authors to use to present a clean and useful API.
Long story short - I coded up an fanotify-based solution which seems like a good start of what I need, and I'm planning on sharing it back in the hopes that it's useful. I guess my question is, did I miss something? Is there already an easy and straightforward way to monitor a big directory for changes?
-
Go programming language discussion @lemmy.ml Jack @slrpnk.net Cool http service article I found
grafana.com How I write HTTP services in Go after 13 years | Grafana LabsMat Ryer, principal engineer at Grafana Labs and host of the Go Time podcast, shares what he's learned from more than a dozen years of writing HTTP services in Go.
-
Go programming language discussion @lemmy.ml whou @lemmy.ml thenewstack.io Golang Co-Creator Rob Pike: 'What Go Got Right and Wrong'An excellent standard library and packaging system, first-class concurrency support and a focus on readability are among the traits that keep Golang devs happy.
An excellent standard library and packaging system, first-class concurrency support and a focus on readability are among the traits that keep Golang devs happy.
Though this was from some time ago, I'd like to share it here and have a light discussion. Rob did an awesome talk, and I agree with him at almost every point.
I do hardly disagree with him on the gopher license attribution. I do heavily attribute gopher's image to Renee French, but I'm not the creator, so whatever.
-
Go programming language discussion @lemmy.ml whou @lemmy.ml Routing Enhancements for Go 1.22
go.dev Routing Enhancements for Go 1.22 - The Go Programming LanguageGo 1.22's additions to patterns for HTTP routes.
-
Go programming language discussion @lemmy.ml trevor @lemmy.ml Arctic Warfare is now available (powered by Ebitengine)
Arctic Warfare is now available to play. Battle tanks in the arctic, demolish trees and annihilate snowmen. View the source code here.
-
Go programming language discussion @lemmy.ml trevor @lemmy.ml etk - Ebitengine tool kit for creating graphical user interfaces
etk is a library for the Ebitengine game engine that simplifies creating graphical user interfaces. The README lists the features and widgets. Boxcars uses etk to greatly simplify UI development, as its single codebase targets web, desktop and Android.
-
Go programming language discussion @lemmy.ml sbinet @lemmy.ml GopherConAU 2023 video track
Here is the full playlist from the GopherConAU 2023 conference:
-
Go programming language discussion @lemmy.ml bizdelnick @lemmy.ml preslav.me Interfaces Are Not Meant for ThatIt's time to ask ourselves how much abstraction in our Go code really makes sense.
-
Go programming language discussion @lemmy.ml bizdelnick @lemmy.ml Finding unreachable functions with deadcode / Alan Donovan
go.dev Finding unreachable functions with deadcode - The Go Programming Languagedeadcode is a new command to help identify functions that cannot be called.
-
Go programming language discussion @lemmy.ml trevor @lemmy.ml Design of the tabula backgammon engine
tabula is a backgammon engine I recently created.
The engine builds on principles described by the author of the Motif engine here: https://bkgm.com/motif/engine.html
You can play against the engine right now at https://bgammon.org/