HNHacker News
TopNewBestAskShowJobs

anonyfox

2,005 karma · joined August 7, 2013

https://anonyfox.com
submissionscomments
anonyfox··on Rethinking serverless with FLAME
It depends solely on company/team culture.

If people are churning after like 1-2 years, they never get to experience the long term pain themselves, and new hires will lobby for rewrites anyways. Since individual apps are rather small, rewrites service-by-service should be straightforward and manageable.

Ancient knowledge would be helpful here, but most teams simply don’t have „real“ seniors around. Therefore simple advice from my end:

1. keep the database stupid and sane. Postgres usually has everything needed for nearly every usecase in a good enough and battleground way. Don’t overdo complex join queries in hot code paths.

2. use a mature, slow-changing (as in: no breaking changes yearly) tech stack, that is powerful out of the box. When you need to use several infrastructure crudges, the tech isn’t powerful enough. I recommend Elixir, Go or even JVM-flavors, these will carry you far.

3. Monolith it is, fullstack. Every service/frontend you split apart might become easier in isolation, but you pile up significant overhead and complexity in terms of global monitoring/orchestration/dependencies/testability/debugging. Elixir/Phoenix, PHP/Laravel, … are fine choices that also have straightforward scaling options and cover everything you need probably.

4. minimize/eliminate usage of JS wherever possible. Aside from infrastructure providers/external APIs, this is the biggest source of maintenance issues. Also SPAs are rarely worth it, there still is a boring way of progressive enhancement that just works.

anonyfox··on Swedish Tesla strike goes international as Norwegian and Danish unions join in
> "not compromising on principles"

which almost always is immature behavior, whereas adults think solution-oriented, which sometimes is called "Realpolitik" (see https://en.wikipedia.org/wiki/Realpolitik).

Doesn't get better in this particular case where musk is opposing to officially agree to common worker protection rules, wages, ... he already follows. Just another case of "dumb behavior".

anonyfox··on Swedish Tesla strike goes international as Norwegian and Danish unions join in
Note that its simply a matter of principle here from elon musk. The union agreements wouldn't cost him more than he already pays. I don't think that elon actually is _dumb_ but I guess this is pure ideology getting in his way, especially that right wing capitalist propaganda shit.

Remember that the striking countries rank top in the world for nearly every metric that matters, they do have a point when they insist that something has to be a certain way.

At least elon really puts his money where is mouth is, this will have negative financial consequences... also norway is the posterchild of EV/tesla adoption in europe, making them angry could have cascading effects.

anonyfox··on Chaos Communication Congress tickets still available
"small japanese garden" - I think its the biggest one in europe still if I remember right
anonyfox··on Rethinking serverless with FLAME
can not give you a codebase for permission reasons, but ie in nodejs land you rather easily can do:

1. write a bog standard express.js backend (might or might not use a SPA/SSR frontend)

2. make the normal (dev mode) server start with an index.js (which boots the express app on a port) and ontop of that an additional lambda.js next to it, which wraps the app (not booting it) with `@vendia/serverless-express`.

3. use AWS CDK (which is typescript anyways!) and ship it as a "NodejsFunction", which also will use esbuild under the hood to bundle your app into one JS blob (no need or a ZIP container with node_modules!) on deploy. The entry file is the "lambda.js" from step 2.

4. in addition use the CDK to configure some traffic origin for the lambda, the cheapest one being a CloudFront function URL - which also acts as a quite good cache in general when you send the appropriate HTTP response headers from your express app!

5. Point a domain to the Cloudfront.

6. Profit!

... I've used this excessivbely in the past years for lots of microservices/microfrontends and it basically works as promised: scale to zero, scale horizontally on demand automatically, and being rather cheap (esp when in the free tier then its basically free to run small-mid loads).

Having said that, this WILL become a maintenance trainwreck when scaled up, telling from my devops experience. All the libraries/apis/infrastructure (especially in nodejs land) tend to have breaking updates all the time, so better have at least one FTE dedicated to maintenance of all the moving parts.

And tbh: all this pain goes away for like <100$/mo with Elixir/Phoenix/LiveView on fly.io. a single phoenix app on a single server can deal with _suprising_ amounts of traffic, and even if you get to serious load, scaling horizontally is outright trivial with Elixir+Fly. And there is no need for additional infra like Redis or Message Queues, since these things have natively built-in equivalents in Elixir (or: the BEAM itself). So only an appserver and a database you need here in terms of infrastructure/maintenance.

anonyfox··on Rethinking serverless with FLAME
It's indeed very powerful and there are jobs out there. Besides being an excellent modern toolbox for lots of problems (scaling, performance, maintenance) and having the arguably best frontend-tech in the industry (LiveView), the Phoenix framework also is the most loved web framework and elixir itself the 2nd most loved language according to the stackoverflow survey.

Its still a more exotic choice of a tech stack, and IMO its best suited for when you have fewer but more senior devs around, this is where it really shines. But I also found that phoenix codebase survived being "tortured" by a dozen juniors over years quite well.

I basically make my money solely with Elixir and have been for ~5 years now, interrupted only by gigs as a devops for the usual JS nightmares including serverless (where the cure always has been rewriting to Elixir/Phoenix at the end).

anonyfox··on Rethinking serverless with FLAME
Amazing addition to Elixir for even more scalability options! Love it!
anonyfox··on Advent of Code 2023 is nigh
This year might be the gpt4 speedrun mode.

I still prefer to do it manually since casually tackling it is a great way to learn a new language or refresh past knowledge!

anonyfox··on Turbo Pascal Turns 40
Similar story here. I started with like 12 casually with C and later C++ in multiple attempts and failed, but TP brought me the joy of programming. And later I could master all other languages (including C/C++).

I will never forget how great it is to have some simple IDE with a "run" button/key, and build simple UI toys with points/lines/rectangles/... (what was it? tortoise? turtle? idk) for a school kid in that age. it was pure magic to bend pixels to my will.

anonyfox··on Sam Altman, Greg Brockman and others to join Microsoft
Seems like in the minority here, but for me this is looking like a win-win-win situation for now.

1. OpenAI just got bumped up to my top address to apply to (if I would have the skills of a scientist, I am only an engineer level), I want AGI to happen and can totally understand that the actual scientists don't really care for money or becoming a big company at all, this is more a burden than anything else for research speed. It doesn't matter that the "company OpenAI" implodes here as long as they can pay their scientists and have access to compute, which they have do.

2. Microsoft can quite seamlessly pick up the ball and commercialize GPTs like no tomorrow and without restraint. And while there are lots of bad things to say about microsoft, reliable operations and support is something I trust them more than most others, so if the OAI API simply is moved as-is to some MSFT infrastructure thats a _good_ thing in my book.

3. Sam and his buddies are taken care of because they are in for the money ultimately, whereas the true researchers can stay at OpenAI. Working for Sam now is straightforward commercialization without the "open" shenaningans, and working for OpenAI can now become the idealistic thing again that also attracts people.

4. Satya Nadella is becoming celebrated and MSFT shareholder value will eventually rise even further. They actually don't have any interest in "smashing OAI" but the new setup actually streamlines everything once the initial operational hurdles (including staffing) are solved.

5. We outsiders end up with a OpenAI research focussed purely on AGI (<3), some product team selling all steps along the way to us but with more professionality in operations (<3).

6. I am really waiting for when Tim Cook announces anything about this topic in general. Never ever underestimate Apple, especially when there is radio silence, and when the first movers in a field have fired their shots already.

anonyfox··on Details emerge of surprise board coup that ousted CEO Sam Altman at OpenAI
Not at OAI or some researcher, but I‘d be in an archetype 3:

I‘d do anything I can to make true AGI a reality, without safety concerns or wanting to profit from it.

anonyfox··on Portugal just ran on 100% renewables for six days in a row
Every country has these problems currently. But people’s money is tacked away in the pockets of the riches and shareholders, something that can and should be solved in different ways than burning dinosaurs. We can not destroy our environment AND distribute wealth more equally, it’s not an „OR“.
anonyfox··on Portugal just ran on 100% renewables for six days in a row
This is good news. And while there are problems with achieving 100% renewables year round, from energy storage to geographic country conditions, the world would be much better off when the fossils only are used on these days where there isn't enough renewable energy. No need to go overzealous here for the last few %, I'd be very happy if we manage to globally run the vast majority of the time clean.
anonyfox··on Language models and linguistic theories beyond words
> is achingly small

don't agree. the amount of written words we feed in, yes. but a tottler is a multimodal system including not only audio/images but actually video, plus other senses like touch or smell. This complex input 24/7 is a lot of data that happens, and some brain relations to classify the world in form before it can spell out a label (word) for it.

Even just looking at a simple word (like "apple"), the human already has a lot of contextual information about it, mostly how its presented and how the presenter frames it (like yummy, tasty fruit! like other foods in the fridge, ...), and then people say the word physically pointing at the thing.

My guess thats an order of magnitude more total input than our LLMs get solely via text or other standalone channels for training.

anonyfox··on Ask HN: Manhattan Project for Climate?
We don't need more research or missing some key technology. Its only a motivation problem at this point.

Even battery tech is _way_ more advanced than the current lithium that is cheaply available - only the demand isn't there because its already so cheap - thats again a motivation problem to get the demand up and costs down for alternatives.

We know how to build energy neutral houses (well insulated, produce their own energy/heat, ...) and can produce food much more locally (see how the dutch deliver produce to around the world with minimal resource/land usage, look at what solarfoods is doing, ...) and also energy neutral.

transport can be shifted to EV public transport to a quite large degree, the energy coming from renwewables. excess renewable energy can be used for hydrogen production which then can act as portable fuel, maybe even used for airplanes one way or the other.

... but all this stuff costs money. money that ordinary people right now are severely lacking, because a few people are hoarding all of it instead. take that money away, use it for fundamental infrastructural projects, done by local companies in parallel (not one megacorp), which creates tons of jobs, which stimulates the economy. Like a green new deal.

This all can be achieved here and now, and once going the prices for relevant materials/tech plummet, and not so rich countries can also start doing it.

Why are people preferring to work themselves into poverty for some billionaires' profits instead? the point of a government is that it oversees areas like the economy and course-corrects when something goes wrong. if everyone including elected politicians worship some capitalism god instead, there is a need to change personell, maybe have a look into alternatives to vote for instead of the past parties that don't act on the important issues?

anonyfox··on Sharing Screen with GPT 4 vision
using cursor as my editor, its close as of today, I mostly steer the AI into directions rather than typing on my own majority of time now. Especially complex refactorings or debugging/error hunting works surprisingly well when the full codebase can be used as embedded vectors on demand automatically
anonyfox··on Bluesky migrates to single-tenant SQLite
Slightly related: is Bluesky moderated good enough or do I get lots of rightwing and conspiracy crap like on twitter currently?

I‘d really love to have some more civilized hub again that isn’t full of hate and anti-intellectualism.

anonyfox··on GPTs: Custom versions of ChatGPT
Pretty much this.

Also not only for ChatGPT, but there will be a timespan between majority of people are automated out of jobs and a a forceful redistribution of wealth happens (let’s call it socialism). It’s always a good idea to have that $$ to bridge that gap.

anonyfox··on My Love Letter to Rails (and Ruby) – Or, Why RoR Isn't Dead Yet
While in general you are right, I'd strongly say "it depends".

The raw BEAM ecosystem (things that come ootb) is huge in itself, many things that would require additional machinery/libs/infra/... in other tech stacks are simply covered right away with stuff like OTP.

The machine-learning ecosystem is kinda thriving, not fully at python levels yet but catching up rapidly and already outshining most other tech stacks - especially factoring in again the BEAM underpinnings that allow stuff like https://elixir-broadway.org/ for data pipelines (which requires a lot of additional python machinery to even replicate), and I'd argue that iE LiveBook already is a much better story than Jupyter notebooks.

The web framework story is already excellent, as you mentioned with Phoenix/Ecto/Liveview/Oban/... which are kinda best-of-breed in the industry right now. Not only for the first few days into a project (lots of tech stacks are compelling here for one reason or another), but the scaling up capabilities are flat out amazing, you can get _so much_ mileage out of the stack before even looking into anything like k8s or whatever and can focus on iteration features instead of spending time in optimizations/infra/... even when traffic peaks occur.

What may be missing are some adjacent libs or QoL in many smaller places. But its getting better for a while... we now have a great storybook reimplementation that doesn't suck ass with nodejs ecosystem craziness/provisioning/slowness like the real storybook. We have usable solutions for i18n or auth that may not be fancy but do the job. And since being Elixir, many missing things are just a few macros away if you need it. Especially the last 2 years have been quite a ride, and I was a phoenix user since probably 1.2 years back, but recently things are stepping up.

Right now I am eagerly waiting for BeaconCMS to mature enough, thats an absolute pain point to get solved since nearly every web platform at some point needs some CMS style free-style pages and right now I have to always implement an integration to some external system... can't wait to have this as a lib mounted in my app like everything else. Oh, and types of course, one of the few points that keep people from trying elixir and I (coming from Rust, Go, Typescript) learned to love. But it looks like we're getting there.

anonyfox··on Germany to Pass Japan as Third-Largest Economy, Helped by Weak Yen
Its worst of both worlds tbh. You have the usual private corp management structure and siphoning of profits (not to the state shareholder, but to everythign else from consulting firms to "favorite" contractors) instead of longer term infrastructure investments being done. And you have the slowness of change, regulations/processes and non-hungry employees working for a public entity.
anonyfox··on Germany to Pass Japan as Third-Largest Economy, Helped by Weak Yen
You cannot overstate this point. It’s front and center of rightwing populism that „these people“ are mostly criminals, which is wrong of course.
anonyfox··on Germany to Pass Japan as Third-Largest Economy, Helped by Weak Yen
What is „courage“ in indoctrinating people? It’s actually dumb. Diversity of thoughts and values is where societal progress comes from, when outdated stuff gets questioned.

The important part is preventing one culture to overwhelm everything else of course, this is where many fail. Diversity must not bow to anything that wants to enforce beliefs into everyone, no matter if religions (domestic or imported) or politics or whatever.

Diversity itself is a core value in itself, however.

anonyfox··on Germany to Pass Japan as Third-Largest Economy, Helped by Weak Yen
There are lots of tradeoffs with the current decentral/federated system for sure. But one key point is that it’s incredibly hard for an extremist or fascist party to take over the whole country and run it into the ground quickly(again!). And with the growing rightwing populism over here it’s a good thing to prevent the worst.

Of course the setup also slows down progressive policies or any changes in general due to conservatives/rightwingers blocking things, but that’s the price of it.

anonyfox··on Germany to Pass Japan as Third-Largest Economy, Helped by Weak Yen
The problem is that it’s a real thread right now. Again rightwingers may ruin the show for everyone.
anonyfox··on Germany to Pass Japan as Third-Largest Economy, Helped by Weak Yen
agree on the stupid decision. but more important: the way forward.

- building up new nuclear reactors takes _many_ years and is still quite expensive, so its not a short-term solution. long term due to climate change the cooling might be a problem (like france already has issues in the summer when rivers run dry and they had to throttle nuclear reactors) - fossils must be phased out, not an option - hydrogen is at best a storage option for surplus energy (like solar), but highly inefficient to begin with - renewables are already cheaper than everything else and prices are dropping still [1]

so either people want to believe climate crisis doesn't exist and want to double down on fossils, or believe nuclear will solve it but it can't right now, or hope that some miracle happens somehow and energy/climate will be a solved problem somehow.

I'd prefer to focus on the here and now, which means renewables, plus some storage in any form, instead of beating dead horses over and over again.

---

[1] https://caseyhandmer.wordpress.com/2023/10/11/radical-energy...

anonyfox··on Germany to Pass Japan as Third-Largest Economy, Helped by Weak Yen
All engineers in my company are immigrants, and the official work language is english. Located in Hamburg, serving nearly exclusively German customers.
anonyfox··on Germany to Pass Japan as Third-Largest Economy, Helped by Weak Yen
Privatization of deutsche Bahn comes to mind, and Deutschlandticket is actively being sabotaged by the neoliberals, so it might no longer exist next year for „fiscal reasons“ - even though it costs less than some miles of just another autobahn in berlin
anonyfox··on Germany to Pass Japan as Third-Largest Economy, Helped by Weak Yen
Germany has its problems, but the critical issues are mostly down to 3 things:

- energy policies of the past decades was a desaster, mostly ruined by the conservatives. Germany was at some point a pioneer of solar tech, but it got crushed by economic policies favoring fossils, now china owns the majority of this rapidly growing market, and Russian pipelines are gone.

- extremely strong car manufacturer lobby that gets heavy subsidies and economic policies favoring car infrastructure. Public transport got defunded/privatized, transitioning to non-fossil transport options is fought tooth and nail, with heavy propaganda, so that many citizens even are aligned with that.

- heavy industry/manufacturing is a big chunk of BIP. Directly hit by the energy price hikes.

… all of which in general can be solved with cheap/abundant energy. Turning the expensive fossil dependency into green energy would be a literal multiplier for everything else in the country. We don’t have nuclear energy anymore (wrong decision imo) but lots of EU neighbors that do and help us in times of need.

It’s not even a technical problem anymore, and we have a shit ton of SME across the country that can engineer stuff. It’s purely a lobbyism/corruption problem with political will and media campaigns. Right now we have a Green Party in our government and they get an absurd amount of flak for trying to turn the ship around after decades of conservative corruption and mismanagement. Everything they do gets spinned into doomsday speech from the right to the point of blatant lying, and ordinary people just want to believe it.

I have no idea how to fix these hatestorms and misinformation amounts going around. But the point is: if we somehow manage to get into large scale renewable energy, BIP will skyrocket.

anonyfox··on My Love Letter to Rails (and Ruby) – Or, Why RoR Isn't Dead Yet
Or, you could use Elixir/Phoenix/LiveView, and have a javascript-free interactive fullstack framework that can do everything rails can do, except it is faster, scales _much_ better and maintenance is easier.

For now Rails has more gems than Phoenix for a quickstart within the first days, but this quickly turns around when stuff gets complicated and you need to "optimize" ruby code instead of shipping more features, or when you want realtime that doesn't suck.

It's like where DHH wants to end up with Rails, but available here and now, with a better technical foundation.

anonyfox··on New Requirements to Travel to Europe
don't get me started on this bullshit :-) a shitton of people genuinly believe in the "magic" here to the point its heresy pointing it out in public at times.
← PreviousPage 6 of 24Next →