python is terrible for embedding, starlark is the way to go. Very easy to embed.
HN user
crowdyriver
It occurred to me a few weeks ago why programming languages don't just try add metaprogramming capabilities with comments, without modifying the original compiler. So I went ahead and experimented how would it look like in golang.
So far so good! It's basically go templates that take in any package level go symbol and write code into a meta.go file.
You can do the same with the go/ast package, but metago makes it very easy to add your own custom transformations. No build tags, just write .metago templates, annotate structs, and run metago.
So far I've managed to make stringer, enums, mocks and even an efficient json serde template with metago. As an experiment, there's also a typesafe active record like orm in the repo. So you can do a lot with it!
I think people are overfocusing on the wrong thing.
Bun is slop. Let's not pretend it is not. It went from 600k lines of zig to almost a million of rust, for a wrapper around a js engine. It might be useful slop, but it is still slop.
It's understandable to have mixed feelings about bun as the creator of the language.
You spend 10 years of your time making a language, and one of the most prominent projects that uses it does it in a nasty and sloppy way. You try to help, but your advice gets ignored.
You make a whole language about improving software quality, only to be associated with a project that doesn't care about it.
For once I do appreciate that somebody is willing to have the guts to say what they think. The bun rust rewrite article said no words about the tradeoffs of moving to Rust (compilation times?), and I agree with the false dichotomy presented. How do we know that most bun bugs were not created because of slop / AI usage / stubbornness?
tbh I'd rather have this behaviour, defer should've been lexically scoped from the beginning.
You already have this problem whenever you are using a library in any programming language. Unless you are extremely strict, vendor it and read line by line what the library does, you are just trusting that the code that you are using works.
And nothing is stopping the AI from making the unreadable mess more readable in later iterations. It can make it pass the spec first and make it cleaner later. Just like we do!
While I like the modern feel of shadcn/ui and derivatives, I still think that daisyui is much easier to use.
You really just paste these 2 lines in your html and that's it:
<link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" />
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4" />
it's a bit more than 100kb of js, but for prototyping it is very nice.I wish more UI libraries where in the same style. You can always optimize the bundle later.
Did you check the co2 levels on your office? that could be one reason.
Unrelated, but PGroonga reads funny in Argentinian. Better than gimp though
Genuine question, more for soloentrepreneurs, but what if instead of adding ads from other companies, the perplexity company did other paid products?
Then they could put a few non disruptive ads for those into their main free product, and they would make much more sense.
I want to apply this strategy into my (yet non existent) future products.
http streaming is even more underrated.
not for non latin american speakers.
oh god
nice and everything, but it still has plenty of performance issues and crashes with the tsserver. Using solid start because of that, tooling is not there yet.
It's even worse, you still need node to run this thing, so you don't avoid the node dependency.
You can always use exhaustruct https://github.com/GaijinEntertainment/go-exhaustruct
to enforce all fields initialized.
If you care, the linter is there, so this is more of a skill issue.
There's lots of comments here about how stupid is to parse html using llms.
Have you ever had to scrape multiple sites with variadic html?
I am surprised no one is doing an llm code linter.
If we are living in a simulation, where does the simulation live in?
every feature that makes a language more complicated will eventually hit you. It might make the typescript compiler slower, harder to refactor, your lsp might also get slower, etc...
Have you experienced slow scrolling issues?
I just don't understand why library developers must make extremely complex APIs then. Does it really need to be so dynamic? MaterialUI v4 types where so huge it slowed down all my type checking, rendering typescript productivity useless.
Para mi que tenían hambre y se les escapó de las manos la pesca
I'm 25 so take that in consideration, but even at my age if I don't sleep well and I don't eat well, I won't have as much will to learn new things.
I believe exercising, eating well, good sleep, keeping stress low will make wonders with wanting to learn new things.
Currently at my company I'm the only one dev. Advantages and disadvantages, but having all code at one head really simplifies communication overhead.
I hope I keep complexity sufficiently down so we won't need more than 2 or 3 more engineers.
Go doesn’t have exceptions. It uses multiple return values to return errors. It’s far too easy to forget to check errors...
Yes, because it is easy and predictable to track exceptions in nested try catches and hidden control flow.
My feelings exactly. I love go because of how productive and resilient can be. In months programming in it I've barely had any null pointer exceptions. If it compiles, and passes the linters, it mostly works aswell.
Some of my competitors use React, and frankly, couldn't be happier. Easier to outcompete them!
So in my honest opinion, go ahead! If your book or book series is digestible enough, I could potentially be interested in reading it. There could be a lot of value in it, even if it doesn't reach such big audience like books from authors as Tony Robbins could. Most people won't even care about what you're trying to write, the yt links I posted (the first one specially) will explain why :).
If it's meaningful to you, and you've got a lovely partner that understands and supports you with that, go for it!
Hello Sam,
I don't know if you've heard about this youtube channel, actualized. I'm not sure if I should recommend it to you, because, well, it takes extreme an extreme openmind to see his videos, but I'm sure you could confirm plenty of ideas you've contemplated in your life from him.
Following actualized advice changed my mind and my whole worldview, I'm sure it could help you as well. I strongly recommend his series on ego development:
part 1: https://www.youtube.com/watch?v=J3hNosyyXRA
part 2: https://www.youtube.com/watch?v=G8fIhLDV3L4
part 3: https://www.youtube.com/watch?v=pGItuEai8vo
From what you've wrote you seem to be in an advanced stage, but again, I'm no expert to judge.
Maybe you already know Leo Gura's work! In that sense, I have nothing to share with you, but if you don't, god I cannot recommend you his channel enough. Just these 3 videos I linked to can reinforce or even expand your worldview so much.