HNHacker News
TopNewBestAskShowJobs

tiew9Vii

1,644 karma · joined January 6, 2019

submissionscomments
tiew9Vii··on OpenBSD 7.0
If you used Linux for any amount of time it'll take a couple of days to get familiar with OpenBSD and they you will be more at home with it than Linux.

To me OpenBSD is similar to what Slackware was, as simple as it possibly can be, with the advantage of a BSD being coherent and consistent.

I'm a long time Linux user and only used OpenBSD recently. I often find myself Googling Linux configs. I did use Google for OpenBSD to get started but found after a day I wasn't and relying on the man pages instead for system settings etc. They really are short, concise and complete, everyone says this but until you use them it's hard to understand.

I use Emacs I don't know Emacs. Emacs is a completely different beast to OpenBSD. Emacs is a huge rabbit hole and you spend as much time building your own Emacs as you do using Emacs. OpenBSD i've set up once which was simple as someone never using it before, and then forgot about it. It's been sat ticking away in a corner, no interruptions.

As much as I really like OpenBSD I don't think I can use it as a primary desktop. There's a few compromises on hardware support, no docker for my day job and I've read the desktop experience is slower than Linux just because it hasn't had the money and people Linux has had with drivers etc.

I'd really recommend anyone try OpenBSD for it's simplicity and educational purposes. If you use it as your main OS you will likely be dissapointed with some of the limitations, as a server / secondary educational device you might be pleasantly surprised.

tiew9Vii··on Esbuild – An extremely fast JavaScript bundler
I looked at using ESbuild and I use Typescript. It was all looking good until reading the docs and it said ESbuild doesn't typecheck Typescript and to rely on your IDE to flag errors.

Is that correct and how is that working for you practically if it is? The whole point for Typescript for me is to have a compiler typecheck my code and block errors at compile time. ESbuild not typechecking seemed like a major contradiction to using Typescript so I set up a Webpack build using the standard ts compiler.

I've been out the loop of client side stuff a couple of years so to start was bit of a rabbit hole. Grunt/Gulp had gone and now Webpack seems common with a growing fanbase for ESbuild because of it's speed.

tiew9Vii··on AWS Lambda Cold Start Times
The Rust metrics are interesting.

I've been getting around 20ms cold starts, 1ms warm exec on the 128MB ARM Graviton2 using Rust for the most basic test cases. Graviton2 was slightly slower on cold starts than X86 for me (1-2ms) but who doesn't want to save $0.0000000004 per execution? Adding calls to parameter store/dynamo DB bumps it up a little but still < 120ms cold, and any added latency comes from waiting on the external service calls.

Memory usage is 20-30MB, and I haven't done anything to optimise memory. I know I can get rid of a few allocations I'm doing for simplicity if I want to.

I've not always been the greatest fan of Lambdas seeing it has hidden complexity orchestrating and a blackbox for debugging. Re-visiting a few years on and with Rust, you get an excellent language, excellent runtime characteristics and substantial cost savings unless you really need more than 128MB memory, i.e. processing large volumes of data per execution in memory or transcoding. Any asynchronous/event-driven service I write, I'll just package as a Rust lambda going forward and pay fractions of a cent per month. I am still on-the-wall with HTTP exposed services as that's a big plumbing exercise and hidden gateway costs but not as adverse to it as I was.

tiew9Vii··on Rancher Desktop, a Docker Desktop Replacement
I tried Podman on OSX. It was easy to set up but the deal breaker was no bind mounts. I'm sure that functionality will come but for dev purposes it's not a Docker Desktop replacement on OSX just yet.
tiew9Vii··on Parsing JSON Is a Minefield (2016)
If you never need to hit a browser Avro, Thrift, Protobuff etc., are way better and more straightforward options to deal with than JSON.

You have a strong schema, not a retrofitted on top JSON schema spec.

The schema is enforced as the data is serialized to binary format. They have schema evolution functionality.

You get the advantages of binary format, faster de/serialization speed, less bandwidth.

You are not writing your own decoders/encoders anymore. They all have code gen to generate domain objects in your language of choice. You have the schemas in a central repo and a CI job that reads them publishing a package for your language, i.e. JAR's, NPM's, Crates etc. etc. Users just pull the artifact. This part makes dev easier. You just import the artifact and can read/write the data with no effort/code.

I've had success using Protobuff in the browser without the GRPC using protobufjs. My API is a typical HTTP Rest service, but instead of sending/receiving JSON it uses Protobuff as the message format. It has made life really easy as I just import the generated Protobuf NPM, and when I make a fetch call, I deserialize the result to an object by using the auto-generated decode function and then I can call `.getFiled()`. As I'm using Typescript on the client-side, I get type checking and type hints in the IDE. If there's no `getField` function, I know that field doesn't exist.

The advantage I now have is I don't need to do OpenAPI stuff. I get that for free. I have the request objects and response objects as protobuf so there's a strongly enforced schema file acting as the contract, and I can produce client packages in any language for free.

The other benefit is it has reduced response sizes and latency. The response size was the main reason I did a POC with protobuf as working on a mapping application and sending polylines to be displayed on a map meant I was sending 10Mb+ of JSON to the browser. Protobuff significantly reduced this.

The caveat is Protobuff are hard to debug in the browser. You can't just use the net inspector as you have binary data, not plain text.

For any personal project going forward, I'll use Protobuf instead of JSON. The biggest annoyance I have is writing JSON de/serialisers in my serverside language then having to do the same for the client-side language/app, them getting out of sync when the API evolves or making typos. Using Protobuf removes all those pain points, import the package, use the package, the specification has schematics around schema evolution so API changes is just updating to the latest package. The only downside is if you have a public API no one else does it so everyone expects JSON, a non issue for private projects.

tiew9Vii··on Terraform vs. AWS CloudFormation
Yes Ansible does have extensions and can be used to provision AWS services.

The approach between Cloudformation/Terraform/Pulumi and Ansible are entirely different though.

The former are declarative, they define how the end state should look. Ansible is a task runner, you define a set of manual tasks it needs to execute to get to the end state.

I strongly advice against using Ansible for provisioning resources. It's idempotent by convention only. When I had to reluctantly use it for jobs it was extremely difficult to get a repeatable deterministic environment set up. Each execution lead to a different state and was just a nightmare to deal with.

Cloudformation/Terraform/Pulumi are much better in that regard as they generate a graph of what the end state should be, check the current state, generate an execution plan how to make the current state look like the target state.

Where Ansible is better than Cloudformation/Terraform/Pulumi is you have a bunch of servers already set up and you want to change the software installed/configuration on them. That's bit of an anti pattern these days changing config/provisioning at runtime. You can change that slightly and use Ansible with Packer to generate pre-baked images which works ok if you don't mind lots of yaml. This isn't to bad and works reasonably well and works to Ansible strengths all though these days most people don't prebake images with containerization. Also if you are only using Ansible for provisioning config on a host Nix achieves this much more elegantly / reliably.

tiew9Vii··on PostgreSQL 14 on Kubernetes
With a database I generally want to have it on its own dedicated host with fast NVME drives, memory, cpu etc, maybe some OS specific system level configuration options for performance etc. I don't want to binpack it on a cluster of nodes each contending for system resources. Also RDBMS databases are not really designed to be ephemeral/elastic, they are stateful/persistent by nature.

What does Kubernetes offer in this scenario?

I'm still hesitant to run things like DB's on K8's but have absolutely no problems running cloud native apps on K8's which can run ephemerally, be bin packed and only needing compute as all state is external to where the app is being executed.

tiew9Vii··on Show HN: UI for Apache Kafka
Is the monitoring functionality independent off the cluster it is monitoring being up to see monitoring?

Control centre eats its own dog food. All its data is on topics. That means if your cluster is unhealthy you can see healthy stats until the control centre consumers have caught up. Which means if you have a lot of data and load, control centre can start lagging and in one case I had some very hard debugging wondering why control centre saying the cluster was unhealthy but the cluster was up. It turned out control centre was lagging by 24 hrs so I was seeing the previous days outage.

Confluent recommended putting control centre on its own cluster for this very reason. One that isn’t cheap, a minimal prod cluster is 3 brokers+zookeepers and secondly what then monitors your monitoring cluster.

tiew9Vii··on Ask HN: Best no-bloat/no-upsells domain registrar
Cloudflare just opened up their registrar https://www.cloudflare.com/products/registrar/.

No markup on pricing according to their docs. MFA with yubikey.

The have what looks like a read only API https://api.cloudflare.com/#registrar-domains-properties . The speed Cloudflare are moving they might expand on it as registrar only just become generally available.

UI is basic, no frills.

tiew9Vii··on The last days of Silicon Roundabout
No Rust, I’ve been looking and would be excited to do some rust professionally.

I have seen a few GoLang jobs, they have mainly been Devops tooling/platform support roles and a 30% paycut, I could be interested for the right company. Devops often comes with the unadvertised salary reduction, on call duties. Not against on call but every time the deal has been worse than not being on call.

Kotlin I’d be interested in, seen a few odd jobs but closer to 35% pay cut. I thought they would be more Kotlin usage than there currently is.

Modern Java I could be interested in with the caveat no Spring boot. I haven’t really seen this, and the Java roles seem to be the lower end of the market outside of specialised roles in banks which isn’t an atmosphere I’d like to work in due to how hard it is to get things done and being a people management game. That’s my current life, multi billion dollar city org where easy things become hard things for no obvious reason.

Scala, I would enjoy but it doesn’t exist. It’s only listed on roles next to Python and Spark as bait. It was reasonably popular here in 2014 being the largest tech meetup held at Atlassian. The people I know writing Scala are now doing it remotely. There is a crm who use it in Melbourne I’m actually following up, then there’s Rupert Murdoch owned orgs REA, Foxtel, etc i’d rather not work for and didn’t get a good impression when I have spoke to.

Haskell I would love but would say I’m beginner.

My specialties are cloud, micro services, devops, devops without Python except for small scripts and definitely no Ansible. I don’t mind devops, I’ve been setting Kafka clusters and writing Kafka apps up for the past few years but all the devops roles I see use ansible and it’s a pore choice in my opinion and from the programming side Spring have their own Kafka library which is a no go for my sanity. Spark / data engineering stuff I’ve just landed in, I get by but not an interest of mine especially as most of it I think has the if all you have is an hammer everything looks like a nail.

My ideal job would be working for a product company, on a product that has value you can invest yourself in and perform many roles. I miss working in a good product company with a valuable service. As long as I’m not writing NodeJs / massive amount of Python I wouldn’t be to fussed.

I did a couple of years at Atlassian, for a period that was really enjoyable until change of manager’s and direction etc.

I might have to refresh my leet code and give Canva a shot although that looks like a 40% paycut as most of the startups here do trading on name.

Salary right now seems a big factor for me, I’m on just under $200k AUD inc super, I’d move no questions asked for 10-15% in that range but 30-40% I have to have job satisfaction to move. I’m well aware my salary is way in to the upper end for AU although some will be on more. At the same time the paycut seems significant. Not complaining, I won’t go without food either way but it’s the predicament I am in. First world problems.

In the next 12 months I’ve been lucky enough to get in to a position to semi retire and then do 3-6 month contracts to tie me by and look at a career outside software.

tiew9Vii··on The last days of Silicon Roundabout
Don't get me wrong I like paying with technologies, especially keeping up to date. In fact as a consultant that's why I'm brought in, to deliver the new thing the org doesn't yet have experience with. My list and breadth of experience is more than most from the CV's i've seen and the roles I perform going in as a consultant to some very large company's. In most cases up until recently due to job market shift I've been an early user. I've worked across frontend, backend and platform/devops for large flagship brand names and at a smaller scale and i've worked across all three in depth not just touching on them

The re-skilling for me to get employment with a good salary/maintain current salary from my point of view is to do what I was doing 10-15 years ago as a junior. So it's not re-skilling, I know and use/have used these things, it's lowering my expectations on the type of work i'm doing. Meanwhile I'm still on some UK agencies dial lists and there's a bunch of jobs i'd snap up and say yes to instantly. Same for jobs I see in the EU and US. Remote is an option but the timezones are pretty bad for AU, I have a friend who has ended up working overnight for a US company.

tiew9Vii··on The last days of Silicon Roundabout
What are you doing out of curiosity?

I see lots of frontend React jobs, bunch of NodeJS jobs then lots of Python/Spark jobs. Full-time probably around $150-160k average or contracting $1k a day.

Outside of that I see C# or Java using Spring Boot for < $150k but the companies themselfs are a bit meh, fairly non descriptive and closer to the $120k mark than $150.

I don't mind Java but the stuff out here I have done and used is so meh, Spring for everything when there's so much more than Spring. Java 17 was released last week and half the places have only just started using 11.

Even a lot of the cloud/devops stuff here it seems way behind what I was doing a decade ago in the UK.

Recently I've been asking myself maybe I just got lucky and had some good jobs in the UK for forward thinking companies using cloud from the early days at large scale, and my first 4 years in AU I also got lucky before the work changed, so maybe that's poisoned my views. But then I speak to other friends/collages in AU who are not from AU and they express the same problems as me, the choice of jobs isn't great and they feel bit of a step back from what they have done before. I also know people who have left AU completely because of feeling the same.

When i do speak to friends in the UK who careers where lagging behind mine and I was moving way ahead off it seems they're jobs gone from strength to strength where as I get paid a fairly good salary, 30% more than average speaking to recruiters but doing the least interesting, least rewarding work of my life and feeling like the career has gone backwards as now my options are Python/Javascript or take a significant paycut to use some tech I enjoy for a company culture I enjoy.

The more interesting work I have seen has always been overseas companies opening up in AU.

tiew9Vii··on Introduction to Hippo: The WebAssembly PaaS
The JVM does way more than Webassembly, completely different runtime characteristics. Webassembly is not attempting to be or do anything near what the JVM does.

Webassembly was designed for sandboxing untrusted code in a webbrowser, giving native like performance and limited functionality.

It just so happened the same characteristics for running untrusted code in the browser work really well for usecases people use AWS Lambda for etc. You have small lightweight applications that have limited system access you need to binpack and have fast startup / low overhead.

Webassembly/WASI isn't replacing the JVM/.NET, it's providing an alternative for specific use cases, running untrusted code in isolated environments that is fast and light weight.

tiew9Vii··on Introduction to Hippo: The WebAssembly PaaS
Does this support outbound HTTP requests? wasi-experimental-http?

That bit seems to be the missing in the docs.

I'd say that's a bare minimum requirement to start playing with these services. You need to get data in/out and with no socket support HTTP is the only way. If you can't get data in/out there's little you can create on these.

Then you have things such as log access etc etc for prod workloads.

Fastly C@E with Lucet is really promising but Fastly are lacking marketing/delivery/execution. You can't use it unless you are on the private beta which you can't access as no seats left and even then there's no pricing information and Fastly's current pricing model makes it a non starter for dev with $50 minimum fee instead of pay as you go.

Five years some form of WASI will be available on all the FaaS services by the big cloud providers. Good to see these services starting to appear.

tiew9Vii··on The last days of Silicon Roundabout
Unless you are a Data engineer, or React Developer a career move to Australia is career suicide. Just go to LinkedIn and search the variety of jobs and salaries across all of Australia compared to the UK, it doesn't even come close. Salaries are one thing but it's also the variety off work that depresses me more. NZ would be even worse.

I came to Australia and had a good four years but now want to leave after the honeymoon period has worn off. I see all my UK friends doing nice interesting work and I'm stuck doing Python ETL sorry big data / data engineering as that's the demand that pays the bills. My partner is Aussie and want's to stay in Australia so I have some tough choices ahead, career or accept the Australia job market and stay with my partner. I know a few developer immigrants in Australia and they all seem to be over it work wise, COVID and not being to leave Australia to see family has been a big decision changer for most of them.

All my old UK friends and colleagues are now contracting. It seems full time salaries are low in the UK but if you are a contractor things are reasonably ok.Haven't been keeping in touch much but I think there's been recent IR35 changes so not sure how that's changed the contracting landscape. On the lower salaries it does look like they are now higher than when I left a few years ago but when you compare to USA it is still night and day.

tiew9Vii··on Ask HN: Why do product devs switch into data eng/data ops roles?
The work is often dull. Often it's ETL plumbing disparate historical systems together to generate reports, maybe some machine learning, sorry I should say "AI" \s. There's certainly some challenging engineering though, especially distributed systems challenges, some caused by the old historical systems you need to integrate to get data out reliably and correctly.

Unless you are working on greenfield projects I'd say the only reason is 1) It interests you 2) It pays more

I'm dying to find a non data engineering job but they all come with 30-50% pay cut.

tiew9Vii··on Ask HN: Go-To Web Stack Today?
I have been using Actix Web as an excuse to learn Rust recently.

I like the fact Actix Web is lightweight and fast. You can deploy it on cheap $5 VPS's and get single-digit millisecond response times and memory usage.

For API type work, it takes little to get going.

The one thing I've taken away is it's still very early days for web frameworks in Rust and Rust in general, so you need to be committed to putting in extra work building libraries/integrations yourself.

I.E. non of the cloud platforms have officially supported SDK's. AWS have a beta SDK they are working on with big bold letters in the readme saying "Do not use this SDK for production workloads" , Azure has an unofficial SDK it looks like staff are work on in their spare time. Google doesn't look to have anything.

Things like live reloading for templates isn't there. I found myself setting up a Webpack build to iterate templates and the frontend quickly with live reloading. I take the Webpack HTML template I produced + CSS assets and move/link to them into my Actix project. I really like the MAUD template engine for compile-time HTML so I find myself rewriting HTML I produce in Webpack to MAUD and just linking to the css / js asset bundle paths from the Webpack build. If I used something like Mustache templates in Webpack that admittedly would make things easier as I can reuse them as is.

The Actix middleware layer isn't well documented, so I looked at existing middleware to figure out how to use it. There's some useful middleware for CORS + logging, but the user auth stuff didn't work for what I needed, so I found myself rewriting my own auth middleware.

The latest stable version of Actix Web is 3.3.2, which uses the old version of the Tokio framework. This will cause issues if using some libraries that rely on a new version of Tokio i.e. the beta AWS SDK's. This means you need to update to Actix Web 4 beta, which then breaks some Actix integrations which do not support Actix Web 4.

All the issues stem from the Rust ecosystem being young. You need to invest extra effort for functionality that exists and is quite mature in other languages/tools. In my current personal project, I could have written it 10x faster using a different stack just because in Rust/Actix I've had to build a lot of basic functionality other web frameworks provide already. It's a pet project, and I choose Rust/Actix for learning purposes, so that's ok. If I had something I really needed to deliver and it wasn't just a REST API I'd probably not use Rust/Actix right now unless I was on a team/company who where willing to spend the extra time for the performance / hosting cost savings.

tiew9Vii··on Atlassian fired me while I was taking care of my wife who is fighting cancer
Agree, direct managers, make or break all the difference.

Ex Atlassian. Worked on a good team. We were told we were seen as "high performance". I had positive reviews, was told I was, without doubt, the star/person who made the team, received a performance bonus when issued etc.

I had a great two years, and then the business wanted to change some stuff, new CTO making his mark, ban some languages we had been using for two years that enabled us to be high performance and instead work more like the CTO's ex company, Gumtree which while large are non-descript. The team wasn't happy. The team was systematically watered down/broken up/moved elsewhere/members were replaced to align with the CTO's opinions.

My manager, who had been good for the past two years, an evangelist for what we were doing and encouraging it, did a complete 360. What he was previously evangelizing for, he was actively hunting out, trying to crush and punish. Chat messages were being watched and then used against people in one and ones for criticizing specific code, nothing that looks out the ordinary on a dev chat room. A colleague and I talked outside work and later found we were being played against each other in a he said / she said. The same colleague got put on performance management for writing to many Lambdas in Java as we cannot be seen to be using the word Function anymore. My colleague resigned. On his last day, I was pulled into an office with some historic tweets on Twitter. Someone had actively searched me out on the internet, found some stuff to use against me, and I had my resignation on the table ready to sign. It gave me a bit of gardening leave just enough for some stock to vest as a severance package i guess.

The manager who only a few months earlier who had nothing but praise and actively encouraging my/my teams work had now gone online, typed my name into Google to see what they could find. They found some messages, admittedly silly for me to post but nothing terrible, and used them against me to get rid of me for doing what he was an advocate for before the new CTO tried to make his mark.

Worst sprint-review I'd ever been in, a team of 5-6 people, calling out issues with a pr, heads on desks because the manager says we have to merge a rewrite by another team. All devs were silent as they had already said everything, and the manager just pressed merge and said: "done".

The specific manager was very career-driven, and the best thing for his career was to follow CTO direction. Rather than bat for his team, he systematically rebuilt it and turned on people to move them on.

Glassdoor reviews around the time I left by other people where not great either.

It's very culty, you are either in the cult or not.

tiew9Vii··on Welcome to Cloudintosh
I have a 100Mbps internet connection. I nearly closed the page thinking it was broken as I sat looking at a blank white screen.

Only 10 seconds later as i was moving the cursor to close tab button did it render. On looking the homepage is 11M of artifacts and as it's a single page app nothing is rendered until it's all downloaded.

Terrible UX.

tiew9Vii··on My £4 a month server can handle 4.2M requests a day
It sounds like they are caching database queries.

> Parts of the blog posts are cached using memcached for 10 mins

That means Django needs to accept the request, route it, pull the data from memcached, render the template.

For such a site I'd just set the `Cache-Control` headers and stick Varnish in-front of it acting as a reverse proxy. That'd likely increase the page load times significantly and make the backend simpler not worrying about manually caching in memcached and just setting the correct `Cache-Control` http header.

As it's budget hosting i'd probably not even bother with Varnish and outsource that to Cloudflares generous free tier, it's cheating as your server (Origin) isn't doing 4.2m requests but the practicality is really convenient.

tiew9Vii··on Recent and not so recent changes in OpenBSD
Not just simplicity but consistency also.

The file system layout, configuration file syntax, and man pages are just far more coherent. Using Linux a lot then trying OpenBSD, after getting familiar with the general layout, it's clear OpenBSD is more rigorous with where files go and the system as a whole.

I had some trouble setting up a network connection with my ISP. My ISP does not share technical connection details favouring you just plug in their provided router. Never doing Kernel dev or C before, I was able to go into the OpenBSD kernel code, spot the logline I was seeing in the logs, see why my config was failing by checking the logic and fix my config. This was only just after trying OpenBSD for the first time and being extremely unfamiliar.

The sad thing is outside of my router, I've not found an opportunity to run OpenBSD. On servers, I mainly use NixOs for declarative setup. Also, with Docker being ubiquitous today, I need to be able to run containers natively serverside.

The same for the desktop, if I switch from OSX to OpenBSD, I'm making a few sacrifices with not much advantage as a desktop user, but if I switched to Linux, at least I'd get native Docker support to compensate for some of the things I'd lose not using OSX anymore.

tiew9Vii··on Microsoft warns thousands of cloud customers of exposed databases
Was this taking a MongoDB database app and pointing to CosmosDB or was this developing a app around CosmosDB's partitioning etc but using the MongoDB API for read/write?

The former, lift and shift scenario I can understand as you need to structure your data to work best with CosmosDB/DynamoDB etc. If it's the latter that is useful to know as I'm currently building a POC on Azure so I should watch out for it.

tiew9Vii··on Microsoft warns thousands of cloud customers of exposed databases
The CosmosDB serverless pricing model seems very good value for small to medium usage. CosmosDB is also unique in it has geospatial type/query support which DynamoDB etc don't. I believe the serverless pricing is fairly recent so not sure if you checked the pricing before it was released, also on the pricing page you need to specifically click the "Serverless" tab which isn't to obvious as a clickable tab in the UI.

I've recently tested it as needed geospartial query support for a hobby project and the cost is cents per month with the serverless pricing model. I'm also accessing CosmosDB outside of Azure to use low cost VPS hosting and latency is pretty acceptable for web type stuff.

If you are DB read/write heavy obviously pricing is going to be higher due to pay for what you use, pre-provisioned pricing will become the better value option at that point.

tiew9Vii··on Building Container Images with Nix
I believe so.

https://cachix.org/ provides some off the shelf services.

There's a few blog posts about using AWS S3 as a binary cache so you can roll your own.

tiew9Vii··on Psst: Fast Spotify client with native GUI, without Electron, built in Rust
This is good to see.

It shows you can write native cross-platform apps that are fast and have low system resource usage instead of the now default, packaging your app in a standalone resource-intensive web browser, aka Electron.

It's a shame we have a handful of people who can do this as a hobby project yet multi billion dollar companies with the money and manpower to do this don't, they chose Electron.

tiew9Vii··on Ask HN: Best use of WebAssembly so far?
The interesting ones for me are Cloudflare workers and Fastly Cloud@Edge. The next generation of serverless, WebAssembly has huge potential outside the browser
tiew9Vii··on Why WebAssembly is innovative even outside the browser
Think of WASM as a JVM alternative, but it has heavy sandboxing.

By default, WASM is pure computing. It can't interact with the outside world. You need to allow WASM to talk to the outside world explicitly.

You have native performance. It's fast.

It's platform-independent, and multiple languages can compile to WASM.

The properties lead to some useful applications.

Serverless, FaaS. If you use WASM for Serverless you get very fast execution + cold starts. Cloudflare Workers can do 200ms cold starts and 20ms a request. Fastly Cloud@Edge not being a Chrome browser, but instead, its own runtime can do better and serve requests in 10ms. The low overhead and secure sandboxing means you can bin-pack these at a massive scale and call them with little overhead. It's much more efficient than Lambda etc. Cloudflare and Fastly as edge CDN providers allow you to deploy fast apps, globally distributed by default, piggyback off their existing caching functionality with no need for API gateways/complex plumbing etc. Fastly's C@E is especially interesting. Unfortunately, Fastly have failed to capitalise on it product-wise. As a product, Cloudflare is way ahead. The best tech doesn't win. I'm not disparaging Cloudflare here. I personally use Cloudflare over Fastly because, at this point, Cloudflare are a more complete product/ecosystem with superior pricing model.

For serverless, it's early days but WASM/WASI will probably disrupt the current FaaS providers once the rough edges are worked out. I wish Fastly had a better product/business execution team to realise C@E properly.

Outside of Serverless/FaaS it makes massive sense instead of people deploying full OS's in a Docker image on Kubernetes, instead deploy WASM modules. Wasmcloud (https://wasmcloud.dev/) looks to be one of the first here running an actor system in Kuberenetes where the Actors are WASM apps.

The other place where it has big potential is to be the Electron from hardware devices. Here's a talk for building a WebAssembly runtime for IPlayer https://www.youtube.com/watch?v=28paRXqI-Gk . They essentially made the bulk of the logic/app in Webassembly then created small shims for different devices to load it. Webassembly allowed the hardware providers to offer a portable runtime that can execute 3rd party software in a restricted runtime.

WebAssembly in the browser is the least exciting part about WebAssembly. I'm incredibly excited to see how it is used for Microservices and serverless.

tiew9Vii··on Ask HN: When do you last use XSLT?
About 7 years ago. We had XML data that needed putting in an Elastic search index. XSLT was a perfect match for doing the transform.

Also used it for pdf report generation a good 10+ years ago. Data was in XML format, used XSLT to format the PDF. Again a perfect match.

For all the complaints about XML and it slowly disappearing from use I wish for specific things people would still use it today instead of automatically discarding it as dated technology.

At the weekend I was setting up an Envoy proxy. I'm not saying it should be configured with XML but I was thinking why the hell is it using YAML for complex config which made it hard to write, read, parse etc and how is YAML seen as better than XML when XML would of made the config much easier with a schema than the resulting YAML.

tiew9Vii··on Sky News Australia has been suspended from YouTube after a review of old videos
Great news.

I had blocked Sky News from my Youtube account as didn't want to see it's content but was still having Sky News content pushed to me in the app. I suspect because of the recent News Media Bargaining Code https://en.wikipedia.org/wiki/News_Media_Bargaining_Code. Now Sky News has gone completely from my feed.

Being Australia and Rupert Murdoch's business, I suspect this won't be the end of it and they'll be some rushed through laws so this never happens again. The News Media Bargaining Code was for propping up Murdoch's businesses after all.

tiew9Vii··on Ask HN: Cheap back end for static website
I think on a budget it’s hard to beat Cloudflare workers.

I’ve never been a fan of the serverless model, building on AWS Lambda etc, wiring up API gateways, slow cold starts, the hidden extra costs, EGRESS, gateway pricing etc.

Recently trying Cloudflare workers has been a pleasant experience. It’s still early, a few rough edges and limits to work within etc but I’m pretty convinced they are going to disrupt the serverless market. Fastly’s C@E is even more exciting being WASI but although Fastly advertise it as available you cannot go to their website give them your credit card number and use C@E. Likewise when C@E is generally available if the pricing is like the CDN it’ll be a non starter outside of business use.

Back to Cloudflare workers. Generous free tier, good non free tier pricing, static hosting, globally distributed workers by default, fast cold starts, WASM support, KV persistence, hook in to the cache easily, distributed objects for persistence if you can work around limitations. No need wiring up API gateways etc, write a traditional monolithic api with a router.

If you can design around utilising cloudflare it’d likely scale better than any cheap vps. I got a very long way for free with cloudflare then had to pay all of $5 to upgrade my plan as a worker needed 12ms cpu time instead of 10ms as was connecting to an Azure CosmosDb database and I think request signing eat in to my cpu budget.

← PreviousPage 7 of 13Next →