HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Tehnix

no profile record

Submissions

The Perversion of AI Discourse

codethoughts.io
3 points·by Tehnix·5 месяцев назад·0 comments

Hot Reloading in Rust? Subsecond and Dioxus to the Rescue

codethoughts.io
4 points·by Tehnix·5 месяцев назад·1 comments

Improved Turso (libsql) ergonomics in Rust

codethoughts.medium.com
2 points·by Tehnix·2 года назад·0 comments

comments

Tehnix
·12 дней назад·discuss
I’m 100% for globalism, but you cannot outsource your sovereignty. The US has proven time and time again that it is fine with using its embedding into nations as a bargaining chip, and has proven highly unreliable.
Tehnix
·12 дней назад·discuss
It is quite puzzling to me though as to why.

We have plenty of talent here to build stuff ourselves, and frequently do.

If I’m honest I’d guess lobbying and/or trade deals where we often agree to buy smth from the US.

A recent one is NHS (UK healthcare system) and Palantir, which makes no sense to hand over core medical data to an outsider. That seemed a clear lobbying case.
Tehnix
·12 дней назад·discuss
Palantir should be completely banned from any EU government contracts. We cannot keep handing over our most core systems and data to non-EU entities, especially given the US’s adversarial stance towards EU.
Tehnix
·2 месяца назад·discuss
I don't see a way it wouldn't be offered in addition to. Some EU countries (e.g. Denmark) already do something similar where we a national debit card called "DanKort" (mashup of "Danmark" and "Kort" which translates to "Denmark" and "Card"). It typically also has a VISA part to it for usage abroad.

All stores accept this as well as VISA/Mastercard since they want to maximize who they can get money for, so it's already a common place practice for payment terminals to do this. Tourism alone is enough of a reason you would accept VISA/Mastercard still.
Tehnix
·2 месяца назад·discuss
>Compiling Rust is actually quite fast in my experience

I guess it's all relative.

I find Rust's compile times abhorrent and it's objectively slower than many many other languages that also pull in dependencies left, right, and center. I guess that just means Rust scales very badly with amount of code.

I'd put it at a bit better than Haskell, but honestly not by much.

I really wish Rust would focus much more on compile times, or on making smaller parallel compilation units. It's quite a chore to have to keep splitting your program into smaller and smaller crates just to not sit and wait for an eternity.

As a comparison my CI job for Rust takes 14m running on a 16vCPU machine while my much larger TypeScript project compiles in 1m on a 2vCPU machine. I know people that have to spend quite a lot of work on keeping compile times manageable for Rust (nix, smaller crates, aggressive caching, etc etc).

Rust still brings me enough value that I'll stick with it, but one can still dream of a better future :)
Tehnix
·5 месяцев назад·discuss
> It’s not OK as a hard requirement for anything else such as banking.

What’s the alternative that you think is okay for that then?

Certain businesses have regulatory requirements to know and verify your identity (banking, telco).

A UK poster gave an example of how they need to mail the bank a copy of their passport and other private information.

I’d certainly much prefer simply using a digital login solution as an alternative to that. They can verify I am who I say I am, without needing my passport which I would consider a much bigger privacy invasion to hand out.
Tehnix
·5 месяцев назад·discuss
>MitID doesn't work on rooted android phones, or those running a custom rom.

I find these arguments quite strange. A big part of MitID and similar services is to protect you against fraud. The most vulnerable in society (e.g. old people) aren't running these kinds of devices, and I'd rather we optimize for the general population and the people most at risk, rather than people running some weird setup that is almost identical to setups a scammer would run.

What privacy aspects are you lacking here? For all the services that MitID connects you to, there are government required responsibilities for these companies to track all of this information anyways and be able to provide it to the government if needed. That goes for banking, public services, telecom, etc. And this is in no way unique to Denmark, it's how most countries operate. Denmark has just acknowledged this and decided to make it easier.

Did you expect your UK bank to not be required to know who you are and be able to track and keep records of literally all financial interactions you have with them and their services? I'm a bit confused on what society you are comparing against.
Tehnix
·5 месяцев назад·discuss
I see a few people here complaining about the idea of a central digital identity service.

As a Dane, having lived in other countries, MitID is an insanely superior to anything I've ever tried. It simplifies so many touchpoints with the government, and is honestly such a good upgrade going from nothing -> physical NemID card with codes -> digital MitID (literally "My ID").

The only real disruption I'd say is if you happen to be buying something online that triggers the 3DS prompt (an additional security layer to prevent cards getting stolen/scam). In Denmark the 3DS prompt for VISA at least uses MitID to verify you are the owner of the card, so that'll obviously not work when MitID is down.

I'll say, it has been surprisingly stable though otherwise, and disruptions usually aren't a big impact (I literally wouldn't have known unless I saw this HackerNews post).

As for a centralized identity system: I personally see this as an acceptable contract for living in a society. Most countries have SSNs anyways, your taxes and many other things are tied to this. Centralizing this identity allows the government to streamline so many things to give a better service to their citizens. For example, all official communication goes to your "DigitalPost" email inbox, your verify identity with "MitID", and every person or company has a registered "NemKonto" tied to them for any salary or government payouts.

I maybe see people get tripped up at the concept that your government should actually care about the service they deliver. That's probably already the point where we diverge when talking about if these things are a good idea or not.
Tehnix
·5 месяцев назад·discuss
Bunch of negative sentiment in here, but I think this is pretty huge. There are quite a lot of applications where latency is a bigger requirement than the complexity of needing the latest model out there. Anywhere you'd wanna turn something qualitative into something quantitative but not make it painfully obvious to a user that you're running an LLM to do this transformation.

As an example, we've been experimenting with letting users search free form text, and using LLMs to turn that into a structured search fitting our setup. The latency on the response from any existing model simply kills this, its too high to be used for something where users are at most used to the delay of a network request + very little.

There are plenty of other usecases like this where.
Tehnix
·5 месяцев назад·discuss
OP here.

Really couldn't find many resources on how to actually use subsecond in your own Ruest applications for a better development experience, so thought I'd share the step-by-step I just did to get our own project up and running with it.

I'm sure there's some optimizations that could be done in order to hot-reload less of the code, but I think this is a pretty good starting point for people that are just looking to "reload my server on change, without killing it during the reload".

Let me know if you have any questions or things you'd like me to try out!
Tehnix
·9 месяцев назад·discuss
Nothing has opened my eyes more to how much mainstream media is distorting reality to fit their narrative, than the genocide Israel is committing in Gaza.

You can sit with literal video of an incident, and then see media headlines tell a completely different story than what actually happened.

Social media in our generation has been a weird amplifier of both misinformation as well as truth from the ground that contradicts misinformation in the media.

My selection of topics I trust media to report on has greatly narrowed down to ones that are completely apolitical, which is sad (they’ve always been biased, but at least I felt you could tell that they were biased and read through it).
Tehnix
·10 месяцев назад·discuss
With investments of these huge amounts (similar to Anthropic's recent investment), do they actually get a full 1.7B€ deposited into their bank account? Or does it work in some other way?
Tehnix
·в прошлом году·discuss
> Ah, the penny drops. The idea that you can’t run a traditional server and must rely on serverless vendor if you’re “serious”

That's not at all how you should read this. They later on give an example of exactly what kinds of problems you'll run into once you start needing to horizontally scale you Next.js servers (e.g. as pods in k8s, which is not serverless):

> The issue of stale data is trickier than it seems. For example, as each node has its own cache, if you use revalidatePath in your server action or route handler code, that code would run on just one of your nodes that happens to process that action/route, and only purge the cache for that node.

Seeing as a Node.js server running Next.js serving SSR or ISR (otherwise you'd just serve static files, which I personally prefer) is not known to have the greatest performance, you will quickly run into the need of needing to scale up your application once you hit any meaningful amount of traffic.

You can then try to keep scaling vertically to avoid the horizontal pains, but even that has limits seeing as Node.js is single-threaded, and will run into issues with the templating part of stringing together HTML simply taking too long (that is, compute will always block, only I/O can be yielded).

The common solution for this in Python, Ruby, and JS/Node.js is to run more instances of your program. Could be on the same machine still, but voila! you are now in horizontal scaling land, and will run into the cache issues mentioned above.

There was not really anything in the article that should have lead you to believe that this was a "serverless only" issue, so I think the bashing against Netlify here is quite unwarranted.
Tehnix
·2 года назад·discuss
Hmm, beyond a bug they had in bun between version 1.0.8 and 1.1.20[0] bun has otherwise worked perfectly fine for me

You have to do a few adjustments which you can see here https://github.com/codetalkio/bun-issue-cdk-repro?tab=readme...

- Change app/cdk.json to use bun instead of ts-node

- Remove package-lock.json + existing node_modules and run bun install

- You can now use bun run cdk as normal

[0]: https://github.com/codetalkio/bun-issue-cdk-repro
Tehnix
·3 года назад·discuss
This is honestly a great resource! Funnily enough I've been using it internally at my company to both:

- Facilitate conversations and a workshop with other Managers around what our expectations generally should be for Staff+ Engineer levels

- Drive a deeper conversation with each of the Engineers I'm responsible for, to help them explore more of the "untold" parts of the IC role, what that could look like, and how they could work towards it

Freeform diving into it with people has been quite beneficial for many that don't have much of a clear idea of what it means to go beyond senior, and how to navigate the ambiguity that it can bring with it.

I've found that each person took away their own specific things from the book which was quite fun to see :)
Tehnix
·9 лет назад·discuss
>...simply not possessed by the same personality traits that generally define the type of person who gets a lot of value out of HN

I’m not sure I follow what is implied here? I’m an avid consumer of HN, mostly out of boredom or in my brain breaks.

>It wasn't until I found a "last straw" that I finally managed it permanently, and that was the runup to the recent US election

Or you could a) not be afraid of having political discussions (although that honestly sometimes probably isn’t possible in the way the US handles their discourse), or b) just not comment on those posts. But alas, to each their own, not like I gain anything from people either leaving or staying.
Tehnix
·9 лет назад·discuss
>95% of the people I see on the subway every day are glued to their smartphones without interruption....80% of the time I get a glimpse of the screen of those it's facebook/instagram/snapchat/...

Is there anything inherently bad in that? You have to do something on the boring commute. This is honestly the worst example as a counter-point, literally in a situation where you have little else to do, and even then, that something definitely also depends on where you are.

For instance, in Japan I mostly see people playing games, IM’ing or reading pocket books. In South Korea I honestly don’t see phones that often in public transportation, and in Denmark it is maybe half social networks and half just reading online or listening to music.
Tehnix
·9 лет назад·discuss
While I certainly get why you’d get off Facebook for privacy reasons, I feel like a lot of the “addiction” comments here and in similar posts as OP’s are a bit of a weird thing to me.

Are people nowadays not capable of moderation? Purely anecdotally, but I mostly see older generations being the ones that hop off. Is it because they didn’t grow up with this kinda of social media and can’t seem to balance what is a perfectly fine way to interact with friends and stay updated without pulling a cold turkey on it?

I personally mainly like to have my FB profile as a catalog for my pictures, and might casually browse it when I got nothing else to do. There’s a lot of value in various FB groups, for example, I’m currently in South Korea for a year, and there are communities in the different areas for posting apartments and asking questions for expats and internationals.

I don’t know what I’m trying to get at, but I feel that the cold turkey approach is rather an indication of a persons lack of self-control and moderation - you don’t have to choose an all or nothing approach, simply disable notifications if that is what’s bothering you, unfollow people that annoy you, and a ton of other methods to handle these things other than going nuke-all.
Tehnix
·9 лет назад·discuss
Very much so! Not talking shit-faced, but just normal drinking. It's one of the fastest ways to get to know a person, a lot of people naturally let their guard down, and it provides a casual atmosphere to get to know each other.

It also provides a shared experience that is an easy conversation starter when meeting sober later on "hey, thanks for last night! Where did you end up going after.." etc.

Obviously YMMW, in EU/Denmark it's a very common way to "crash course" people on each other when you suddenly find yourself in a new environment with nobody you know (university, new work). Then again, I'd say EU drinking is a lot more mature than the US one. We usually get introduced to it a lot earlier in life, and have a gentler intro curve rather than going from zero-100 real quick, when entering college or the likes.