HNHacker News
TopNewBestAskShowJobs

tiew9Vii

1,644 karma · joined January 6, 2019

submissionscomments
tiew9Vii··on AWS Is Asleep at the Lambda Wheel
> We’ve been able to use custom runtimes ourselves for a while, and via the magic of Docker container images we can basically make Lambda run whatever the heck we want it to. Unfortunately, building our own Python runtimes at home isn’t sustainable as a customer

Custom runtimes with Docker images solves so many issues with Lambda. Artifact management for free and the ability to run whatever language/applicaiton you want on Lambda. It works well, it's simple, it's portable. I can run my containers I deploy to Lambda on Lambda, Kubernetes, my local machine, pretty much anywhere if I abstract the AWS services i use.

Building a Python Docker image isn't sustainable as a customer? I don't understand that as most people package apps as containers already as a standard unit of deployment.Most large companies maintain their own base images. It looks like the only in-convenience for Python is doing `pip install awslambdaric`

With custom runtime Docker images I think AWS was smart, removing AWS maintenance as the limiting factor to let users have pretty much full control of the runtime, fairly trivially with tools they already know.

tiew9Vii··on Small SaaS banned by Cloudflare after 4 years of being paying customer
Cloudflare have posted a public blog post some days later https://blog.cloudflare.com/how-cloudflare-erroneously-throt...
tiew9Vii··on Small SaaS banned by Cloudflare after 4 years of being paying customer
Sounds like OP has spoken with cloudflare previously about their usage/cloudflare services, likely looking to upgrade by the sounds of it but sales maybe gave the impression OP was ok on current level of service.

> I would fully understand that I am required to upgrade, but why not sending me an email before shutting down my business completely? I even asked about such scenario on zoom meeting I had with their Sales and they said it will never happen

tiew9Vii··on Small SaaS banned by Cloudflare after 4 years of being paying customer
That’s interesting.

I’m using cloudflare pages with workers doing the same as you on a much smaller scale. The workers reverse proxy a rest api under the same host so I don’t need to worry about CORS, take the country HTTP header provided by Cloudflare then route the request to backend servers in the nearest AWS region and also cache any responses with cache control headers utilising Cloudflare’s Edge caching. It works great and gives a fast user experience regardless of where you are in the world.

I was going to implement rate limiting backed by durable objects to protect my backends.

It seems exactly the usecase and ideal usage of workers! Now seeing this, it has me rethinking using/investing in cloudflare if they can decide if they like how you use workers or not and kick you off. It shouldn’t matter what output the worker generates as long as it conforms to https://developers.cloudflare.com/workers/platform/limits/

tiew9Vii··on KTM Unveils A Revamped 890 Adventure R for 2023
Not the usual Hacker News post, but I thought I'd share it as it's interesting with the direction of modern automotive software and software blocks.

> KTM has also taken advantage of the growing electronic capacity of the 890 Adventure R to install a new DEMO MODE, seen for the first time on this 2023 model. The new mode will allow riders to sample the full electronic rider aids suite of the bike for the first 1,500 kilometers (932 miles), before the rider decides which pack or features to acquire.

As an owner, you purchase a $25,000 AUD / $15,000 USD motorcycle, and all the built-in hardware works for 1500km/932 miles. At 1500km/932 miles, the functionality is taken away automatically, and you are then software blocked from using the full capabilities of a vehicle you purchased until you pay for it to be unblocked.

Some of the functionality software blocked is being able to adjust traction control when off road...this is a motorcycle designed to go off-road, so a big piece of functionality people buy this bike for. The other is downshifting with the quick shifter. All the hardware is built in. It works for 1500km then stops until you pay up.

tiew9Vii··on Apple Introduces Apple Watch Ultra
Apparently, the Apple Watch https://www.youtube.com/watch?v=LPqtfC70QTU . https://www.youtube.com/c/TheQuantifiedScientist reviews all the sleep/heart trackers and records accuracy.

He’s a professional scientist specialising in sleep research and the reviews concentrate on data/accuracy only.

tiew9Vii··on The Dhall Configuration Language
They are different to Dhall. Puppet, Anisble and Salt are task runners. You give them configuration and they parse the configuration and then run tasks on a destination machine based on the configuration.

Dhall is a tool to generate configuration such as json, yams, xml. It’s useful if you have *complex* configurations such as a AWS Cloudformation stack or Kubernetes yaml files.

tiew9Vii··on Tell HN: I DDoSed myself using CloudFront and Lambda Edge and got a $4.5k bill
I’m not sure if Lambda@Edge supports reserved concurrency like standard Lambdas? For standard Lambdas I always set a low reserved concurrency to prevent these situations, deliberately throttling my max executions. Start with the lowest number and if you frequently see throttling you can then increase it.

For a three person startup… I find Lambdas/Serverless/Cloudflare workers fantastic if you are clever with how you architect things, they can really bring the costs down to trivial amounts. However you need to be defensive I.e. reserved concurrency etc and clever normally means lots of extra steps/hoops to work around restrictions or use things ingeniously. It’s fun if you like that, if we are honest with ourselves it’s hard to beat the simplicity of a VPS and a full stack framework like Rails or whatever alternative in your language of preference when just starting out, then break specific functionality out in to other architectures as required.

tiew9Vii··on Ask HN: How broken is YouTube these days?
No ads at all.

Most of my media is consumed through YouTube. If you watch YouTube frequently I highly recommend paying for YouTube premium. If you sign up over VPN via Argentina it's also extremely cheap (Google search will guide you).

tiew9Vii··on Async Rust doesn't have to be hard
I don’t find the overhead of Rust to bad for web apps. Saying that I used to write web apps using EJB’s, JSP’s, Apache Struts although have also used NodeJS, various Jamstacks and PHP frameworks, Rails and a bunch of others extensively.

At the web level the biggest pain I have is the dev workflow isn’t as nice as the Jamstacks with hot reloading so you can see visual changes immediately in the browser. If doing backend for front end this pain goes away if front end is some NodeJs / php or other app.

Why is my preference now Rust? It’s fast and low on system resources. It means I can run my apps at a fraction of the cost compared to other languages. I can package my app in a Docker container that’s single digit MB’s. It’s not that to low level to be an inconvenience and high enough level to be reasonably productive. Being strongly typed and being able to find bugs with the compiler also helps.

tiew9Vii··on BBC to close BBC Four and children's network CBBC, move content online
The ABC’s level of content is not in the same league as the BBC, broadcast or online. (Aus resident)

BBC is world renowned, mention the BBC and most people know it due to its reach. I’m not so sure the same can be said for the ABC.

The BBC may be able to adapt if they loosing the license fee but it’ll be a shell of its former self.

The BBC had some technical innovations in Broadcast due to its funding model. Working there nearly ten years ago the underlying tech may of changed today but they where doing back then what is popular today. There online architecture could be described as micro services back then, micro-front ends, home-built PaaS which I think was way ahead of its time and the two unicorns I worked at since and countless tier one companies can only envy. I credit a lot of what I know due to my experiences at the BBC.

tiew9Vii··on FreeBSD 13.1
Most Linux distributions today are large, fragmented, file systems/config files/apps not as coherent as they once was.

The BSD’s are purists. Strong consistency on the file system/configs, strong design principles on keeping things simple.

I only recently tried BSD’s after being a long term Linux user. I don’t use them on the Desktop, so can’t comment about that. On headless servers, after the initial getting familiar period, I find them a joy to work with taking me back to when I first tried Linux using Slackware.

tiew9Vii··on Bluetooth relay attacks allow Tesla Model 3 / Y to be unlocked and driven away
The electric conversion kits are starting to look appealing and will probably be the only way to go for a electric drivers car without the bloatware.
tiew9Vii··on How Nix and NixOS get so close to perfect
> That's irrelevant - if you want uptake

Haskell's slogan is "avoid success at all costs". Haskell isn't aiming for mass adoption. It wants to be a language for researching functional programming, it just so happens it's a useful language, and people write real software with it too.

From https://haskell.foundation/whitepaper/ > Haskell's slogan of "avoid success at all costs" was a clever and cheeky way of saying that innovation and research in programming languages, especially in functional programming, needed some insulation to succeed

Nix doesn't have such a slogan as far as I know. It, however, started as a thesis to try and research and innovate new ideas. https://edolstra.github.io/pubs/phd-thesis.pdf The Purely Functional Software Deployment Model.

Twenty years later, it's been rather successful as a research project, one of the most active repos on GitHub. It has gained a lot of usage and support without trying to be successful, popular or market itself.

The Nix language has helped it achieve what it set out to achieve. It's appealing to people who are interested in purely functional software. If that doesn't appeal to Javascript / PHP devs that's ok as it isn't trying to appeal to them.

The Nix expression language is small and pretty simple; everything is an expression.

The difficult bit is there are no javadoc/jsdoc/pydoc type docs beyond https://nixos.org/manual/nix/stable/expressions/builtins.htm... where you can go search easily. You have to go through the source code to find functions and see how they work. Also, you have to accept Nix is a ML style language, not a C style language. It's different to what you may know, but that isn't a fault of the language if someone only knows C style languages. The language is as it needed to be like that to achieve the design it wanted. Personally, I hate using Ansible firstly because of YAML. Secondly, Ansible is a task runner, often feeling like you are over abusing Ansible for things that are not a natural fit, and the debug headache dealing with determinism by convention only.

I think it comes down to Nix isn't for you. That's ok.

tiew9Vii··on We decided to move 90% of our workload from the cloud to on-prem infrastructure
I hear that said a lot. I don’t think it stands.

A ec2 instance or other vps requires the exact same maintenance as a bare metal server. They are essentially the same except one is virtualised and the other isn’t.

The cloud actually requires more investment for large organisations. Previously you might of only had a handful of sysadmins but now you have a large dedicated platform team doing devops type work building your own abstractions/paas on top of your cloud.

The advantage the cloud has is flexibility. You don’t need to go through a lengthy process to acquire hardware. Likewise cloud services are disposable, no longer need something? Hit the delete button.

I think the more PaaS like services such as Heroku, Lambda, Fargate, Google Cloud Run do better realise the less maintenance story but not cloud generally.

tiew9Vii··on How did I get so unhappy working in tech?
Right.

I'm in the highest-paid job of my life, getting a free day off once a month on top of 21 days' leave and public holidays. Free health insurance, learning budget, work from home, equity, share plan. Things are very good. I couldn't want more or design a better job.

Yet the agile ceremonies, working on a team where small PR's are open over a week as people argue about names or something, isn't following someone's arbitrary style preference, which is now a dogmatic team rule in the team styleguide.md file or rules.md file or contributing.md file or the department guidelines.md file. Breaking a deliverable into the most minor task possible in a Jira, so you know each class/function you have to write and then find the original plan is not the reality when coding. Then story pointing the card, even if the task itself is less time to do than the effort spent in Jira and pointing. The religiously pairing and people being afraid to do work on their own. All while the deadline is slipping away, and no real work is getting done as the time is taken up by the process around the work rather than the work. You find yourself burnt out, wanting to quit for a simple life.

We know it's not so bad. On the outside, what more could we want? But it also takes its toll mentally. We've probably done much harder jobs in our youth, in call centres, working retail, labouring in factories for minimum wage 10-12hrs a day 6-7 days a week, juggling school with the rent, yet some of us still feel like this is the hardest it's been mentally.

I'm probably going to leave my position to go to a small ten person company. I find them much more fulfilling, no large processes, people turn up, do their work, may need to do more than their fair share as a small company, but you can see the progress and get a sense of achievement.

tiew9Vii··on How I Cut AWS Lambda Java Cold Start Times in Half
Infrastructure/compute cost.

For most cases, you need to be doing extremely large volumes of compute/traffic for ec2 instances to be cheaper.

I find it easier to look at Lambda as another compute deployment target. If I can deploy my app on an ec2 instance, in Fargate, or on EKS I can usually deploy it on Lambda at a fraction of the cost if it's stateless or the state is external.

The cost saved on the AWS bill you do trade elsewhere. Orchestration/integration. That has got better, though, with Serverless framework, Terraform, AWS SAM, but it is still non the less more moving pieces to orchestrate which is complexity over deploying a app to a static server.

Due to orchestration/being a black box, I wasn't a massive fan of Lambda but slowly grew to appreciate it as it's got more feature-complete, and the cost savings can be huge. I can deploy a Lambda build using the Rust sdk that executes in 10-15ms at a price of $0.0000000017 per ms on the 128mb ARM instances (and that's more than enough for Rust Lambda apps generally).

You also lose the tight Lambda coupling if you develop your code using Hexagonal Architecture/Ports Adaptors patterns. Lambda becomes another adaptor right at the edge of your app, so it's trivial to swap out build a CLI, standard web app/your typical serverside app etc. My code often has a CLI + Lambda entrypoint, with the CLI entry point being beneficial for dev/testing/prototyping.

tiew9Vii··on Algebraic Data Types in Haskell
This may be a useful pattern to you. The example is in Java but you should be able to achieve the same in Python https://apocalisp.wordpress.com/2009/08/21/structural-patter....

It’ll get rid of the ‘isinstance’ and give exhaustive matching. I used to use this pattern a lot when wanting ADT’s in a language without ADT’’s.

tiew9Vii··on Sweden’s 'speed camera lottery' hit a red light years ago (2021)
I agree on Australian drivers.

I’m neutral on Australian urban speed limits, they are similar to parts of the UK. However the standard of driving in the urban speed limits in AU is far poorer, the lower limit the more aggressive the driving gets. Australian drivers are aggressive, tailgate, no lane discipline, if you are a pedestrian/cyclist you are in the way and Australian drivers make it known speeding up, getting close, not giving way. The speed limit doesn’t seem to be the issue, the attitude does.

Non urban speed limits seem lower in AU, the flow of traffic generally on the highway seems lower in AU. The UK most people do 80mph on the motorway (limit is 70mph), AU limit is 110km/h (68mph) and most drivers do 100km/h with those speeding doing 120km/h (just under 75mph). Regardless of AU flow of traffic feeling slower on the highway, I’ll almost always see people lane hogging, tail gating, under taking, cutting people up and feel far more at risk than driving in the uk/eu where people are driving faster, but more considerately

tiew9Vii··on Launch HN: Micro Meat (YC S21) – Technology for scaling cultivated meat
My diet is roughly 40% protein, 35% fat, 25% carbs. It’s extremely high in protein as I’m on a 20% calorie deficit, aiming for at least 1.2g protein per lb lean body weight, 35% fat preferring it to carbs and making up the remaining calories with carbs. I prefer fat over carbs as my body hangs on to carbs and doing a metabolic test was told I would be better with higher fat to carb ratio based on my stats and goal of getting leaner while maintaining muscle.

I’ve been planning meals using linear programming with the Simplex algorithm (https://en.wikipedia.org/wiki/Simplex_algorithm) to calculate the optimal ingredients/quantities to hit my macro goals while minimising total calories.

From playing about it’s impossible for me to hit my macro goals using a pure vegan/vegetarian whole food diet. To hit my protein goals my carb ratio would need to go way up and I’d then need to lower the fat percentage and even then I’d likely be in a caloric surplus. I could lower the protein proportion to try and hit the total calorie goal but then I’d likely be in a catabolic state and loose muscle mass.

I really wanted to eat less meat just for the fact meat costs more and as a plus eating less lowers my environmental impact. When plugging in the numbers with simplex it becomes very apparent it’s extremely hard to get the nutritional bang for your buck you get from meat. For the average person not interested in strength training or body fat percentage it’s probably not as big a deal but the fact remains it’s extremely hard to get specific macro targets without meat.

tiew9Vii··on How to get the most out of your 1:1s
Agreed.

If I have an issue, I’ll go speak to who I need to when I have an issue.

Maybe it’s because I’m introverted, a person of few words and no nonsense but I’ve always found 1:1s to be corporate lip service. I’m in a place I’m happy, my employer happy with my work and I have no interest in career paths etc. That doesn’t mean I’ve no interest in being better/doing better work, which I’m constantly doing, I just have no interest playing the game going through different org chart paths as happy where I am and certainly don’t want to do management.

1:1’s are offical company time so if you share your being stressed or other issues I’ve seen that used against people before, it’s not a private confidential chat, it’s a manager/employee chat.

I find it’s best for me to smile, nod my head and ask the other person how they are.

Experiences outside of corporate I found it more genuine the ceo randomly saying hey do you want to get a coffee/lunch instead of a prescribed scheduled 1:1.

tiew9Vii··on Cloudflare announces fourth quarter and fiscal year 2021 financial results
Fastly and Cloudflare are now very different companies.

Fastly is a CDN, Cloudflare has a CDN product in its product range. Cloudflare is an internet technology company, not just a CDN. Cloudflare product range seems to be constantly growing and getting better.

While Fastly technically has other products, they are way off the delivery and execution of Cloudflare. Fastly Cloud@Edge has the potential to be a FAAS / AWS lambda killer but Fastly have failed to realise the product unlike Cloudflare workers, which I don’t think is as technically good as C@E but as a product Cloudflare workers is good enough, simple to use, good value proposition and actively being iterated on. I’d choose cloudflare workers over c@e simply because Fastly make it very hard to use the product and pricing wise despite WASI being extremely interesting.

Go to Fastly’s website, try to figure out their product range, then try to calculate the cost, then try and enter a credit card to use there services. It’s difficult! Contrast to Cloudflare who have a generous free tier to hook you in, nicely tiered products with transparent clearly displayed pricing. The Clodflare tiers are just enough functionality to tempt you to the next tier without even thinking about it when you need to upgrade. Giving Cloudflare your credit card to give the money is trivial, no hunting around the UX or “please contact sales” at the end of every page in small print.

The complainants about Fastly can be the result of they only want to deal with enterprise customers. That’s fine but the likes of AWS, DigitalOcean, dev service companies where built on hooking developers with easy entry/pricing who then took the product to there day jobs at the enterprises. I often hear it called the flywheel effect. Cloudflare seem to be taking the hook devs, build a fan base, make it attractive + easy to use approach to grow organically not lock out the small spenders and only talking to enterprise level spenders.

tiew9Vii··on Ask HN: Who's getting pulled back into the office?
Had a similar situation.

Had to go in one day a week to spend the day on Zoom to the team overseas we where working with. Two to three hours lost a day commuting to use Zoom at a desk in the office instead of Zoom in my home office.

Ironically the days we where forced to go in where the least productive days as we’d catch-up with other colleagues, get coffees, get lunch etc. We looked busy though and that’s what the CEO wanted, it was a one day check in for all intent and purposes to make sure we where not slacking at home.

tiew9Vii··on Italian mafia boss caught after Google Maps sighting in Spain
> His identity was confirmed when police found a Facebook page of a now-closed restaurant, Cocina de Manu, which was located nearby. It had posted photos of Gammino wearing chef's clothes and he was identified by a scar on his chin.

I wonder if it was pure luck that the specific restaurant had a police officer look at its Facebook page and identify someone aged 20 years since the last likely photo, or if some image detection/data mining was used that then identified the escapee.

tiew9Vii··on Debunking Cloudflare’s recent performance tests
Fastly is a public traded company.

In their annual reports Fastly have previously said C@E was available. They regularly released PR pieces of new functionality on C@E.

The reality was it was in private beta and deep in active development. Their official annual reports and PR pieces used by investors for investment decisions where misleading insinuating a product was available that was not. Fastly annual reports where painting a misleading picture. What's worse is the honest answer, we are deep in development and now have several large existing customers onboard for private beta is nothing to be ashamed of putting out to your share holders. Fastly where probably trying to hide the amount of time it's taken them to roll C@E out since first announced early 2019.

I'm sure every piece of public information went through their legal department and vetted but at the same time every piece of mandatory training I've done at publicly traded companies have me believe I could suffer huge legal consequences with the SEC for doing similar.

tiew9Vii··on Debunking Cloudflare’s recent performance tests
> Fastly has been trumpeting for years that Compute@Edge

This is the main problem with Compute@Edge, "for years".

They have been advertising publicly C@E for years but it was a restricted private beta. In my opinion the state of C@E has historically been falsely advertised. You could not go to the website and sign up, put in your credit card details and use C@E. If you contacted support they told you it's not generally available, it's for exiting customers and no more seats are left, it was at capacity.

After I bit of Twitter ranting one of the C@E advocates at Fastly did reach out and did get me test access and he did genuinely help as much as he could. I did like what I saw and in my personal testing found Fastly faster than Cloudflare Workers using Rust / Wasm / Wasi. Also one of my services where having issues in Cloudflare workers with ByteBuffers sending binary data, I don't know why but it just worked in Fastly Wasi runtime.

Regardless today my preference would still be to use Cloudflare. You go to the Cloudflare website, sign up with minimal information and are then good to go. Need to move outside of the test tier? put in your credit card, click a button, done. The pricing for Cloudflare is transparent and hugely attractive for workers. Fastly, there is no clear pricing, they are applying there CDN pricing model with a $50 minimum fee which you need to go and read in the small print. That is ok for enterprise clients but obviously they are missing up on all the pay as you go small scale devs that Cloudflare attracts and all the other pay for what you use PaaS's attract that then take it in to their day jobs becoming advocates where the big contracts are signed.

Fastly need to decide if they are a CDN or a internet company with a CDN product. They seem undecided what they are at the moment and have poor product structuring and it's genuinely very hard to go put in your credit card and give them money! Cloudflare are quite clear they are a internet technology company now not a CDN and make it extremely easy for people to give them money in a few clicks.

tiew9Vii··on Ask HN: Out of IT for 3 years. How to get back in after working for self?
React in AU is the in demand software job. The market looks to be going crazy for React devs more than anything else. Start looking now before the borders open again and salaries go down.

Take a contract, when I was job hunting I was frequently seeing React as the highest paying/in demand roles available.

tiew9Vii··on Ask HN: What language to learn after Python?
This might be regional specific but I'm seeing Java roles are mostly dealing with legacy 10-15yr projects, so a lot of maintenance type work, kicking tyres, keeping things running, bolting on new features to codebases no one want's to touch.

Kotlin seems to be popular on the JVM for more greenfield work. However a lot of backend stuff seems to be Typescript/Javascript on NodeJS with Go close behind.

For job purposes I'd learn Typescript followed by Go. I'm not a fan of Typescript for the backend so this is based purely on getting a job.

Rust would be my heart not head language to learn. Realistically it has another 5-10 years to go before it's picked up for mass usage in industry, if it's picked up as Go is. It's a bit harder to learn and that's why Javascript/Python/Go are popular, a lot of people can use them in a few hours without to much learning.

tiew9Vii··on Tests aren’t enough: Case study after adding type hints to urllib3
It depends on the language but I find I'm also far more productive with strong types.

When I use a dynamic language I get no errors in dev, I need to run/invoke the program to see if it works. It may appear to work fine as I haven't executed a specific code path hence dynamic languages have extremely high test coverage. With dynamic languages I am delaying my feedback loop, I may get some visual output quicker but that doesn't mean my program is correct.

With a strongly typed language and utilizing types you use the compiler to guide you. The compiler says hey, this isn't correct, fix it, you go fix the error and recompile and repeat.

I've used Elm before and it's the only time I had a complex Javascript UI just compile and work first time. It's like a wow, did that just happen.

With Typescript it's not quite to the level of Elm but find my experience working with React etc far more productive. Typescript says hey, that's wrong, I expect ... you gave ..., you work through the errors and when it runs generally there's less silly mistakes than when I just use Javascript.

I'm learning Rust, the compiler error messages have greatly helped. When you compile it says hey, you tried to do ..., maybe you want ... instead. Not to sure what the suggestion is I try it and 9 times out of 10 it works, compiles, program runs.

With types you generally get better IDE auto complete support etc.

Now i'm using Python for my day job. My experience has been painful, discovering what arguments functions take, passing in wrong values, needing to run slow test suites, finding errors at runtime. Yes you can use type hints and I do but I find them far less reliable.

I guess I'm not a very good programmer so learnt to lean on a compiler to do the hard work for me, and if you have good type support you can lean on types more to get the compiler to help you more.

In Haskell I can write complex logic by writing out the types and ADT's. I've written whole programs with tests to verify the logic without writing a program. I find this incredible efficient for prototyping ideas, just write the types, the functions signitures etc etc. Once that is done you implement the functions, hit compile then boom, your shocked it just worked first time running.

tiew9Vii··on Issues we've encountered while building a Kafka based data processing pipeline
It's round robin if no key specified otherwise it uses murmur2 hash of the key so the partition for a key is always deterministic.

Just checking the docs it appears the round robin is no longer true after Confluent Platform 5.4. After 5.4 it looks like if no key specified the partition is assigned based on the batch being processed.

> If the key is provided, the partitioner will hash the key with murmur2 algorithm and divide it by the number of partitions. The result is that the same key is always assigned to the same partition. If a key is not provided, behavior is Confluent Platform version-dependent:...

https://docs.confluent.io/platform/current/clients/producer....

← PreviousPage 6 of 13Next →