Hacker Newsnew | past | comments | ask | show | jobs | submit | matesz's commentslogin

When I discovered Clojure, apart from the functional language properties and Java integration it brings with it, I was completely struck by how elegant its codebase is.

From what I remember there is around 60k lines of Clojure itself and pretty much all files were edited like minimum 8 years ago, apart of main file with most of the function utilities.


> I was completely struck by how elegant its codebase is.

Well... I like Clojure but I bet you will reconsider that sentiment if you scroll through https://github.com/clojure/clojure/blob/master/src/jvm/cloju... .


Maybe not "elegant", but quite readable compiler impl. compared to what I have seen. And which (real world) compiler has an "elegant" implementation anyways.

I highly recommend checking out makepad [1] - they have +100k of rust code and the compile time is around 10-15 seconds on commodity hardware. However they are obsessed about performance. They reason for such speedy compile times, like you say, is that makepad has almost no external dependencies.

[1] https://github.com/makepad/makepad/


> Downsides: some features are gated behind an enterprise version

I treat this as an insurance policy. Even in this thread people mentioned how Maddy, which is an alternative modern full stack email solution in a single binary, lacks development efforts.

This is why we have this fantastic release for Stalwart - free shit.

Also as of now enterprise is for $0.2 per account per month which is extremely cheap unless somebody wants to build a big spam farm, of which as civilized Internet user I don't support. Obviously this might change, but even if you can always built multi-tenancy layer by yourself if you really need it - rest of the codebase is AGPL.


Agree with your points, it's a downside if you're cheap like me and don't want to pay a penny for email at all.

Running Stalwart in production for ~20 heavily used accounts for some company and no problems so far! The simplicity for such a complex stack and flexibility of deployments is off the charts!


Out of curiosity do you front-end SMTP with postfix to have many queues/MX entries and a battle hardened front-end or is Stalwart handling inbound connections directly? Im thinking of moving from Dovecot to Stalwart so family members have more modern features on my fallback domains about half of my domains do not use Fastmail. In multiple companies I had several Postfix inbound servers to keep the internet from touching Exchange directly and have multiple nodes for companies to quickly hand off to in multiple locations.


I just run single instance for now with RocksDB backend for internal / search and S3 for blobs - that is what made me think it’s so flexible.

Never hosted Postfix / Dovecot stack, in fact this is the first time I host emails, but from what I understand Stalwart is designed to handle inbound directly.

For very high throughput inbound you could check out KumaMTA - it was designed specifically for that, but I think Stalwart doesn’t have bottlenecks in it’s clustered topologies which would require it unless you are doing something crazy.

They have very good docs in general IMO, here are docs on how to cluster - https://stalw.art/docs/cluster/configuration


I second that; only running it for personal use on a few domains, but handles all the complexity _extremely_ easily.


Can you share what's your solution for filtering incoming spam? I've had to abandon Stalwart because its spam filter is so ineffective and inconsistent.


Mind you I am hosting this just for about a week now - +100GB in total for all inboxes. Also I removed automatic daily purging so all spam and deleted items stay just to be safe.

Haven't looked into spam more closely yet. After first glance on most publicly shared email address - there is around 2 spam messages per hour.

Here is report prepared by llm which looked through the last 20 email headers found in spam. All of them were categorized correctly, however there were few emails in the past few days which went to spam where they shouldn't but I think this is fixable.

- Critical Authentication Failures: A large number of the messages failed basic email authentication. We see many instances of SPF_FAIL and VIOLATED_DIRECT_SPF, meaning the sending IP address was not authorized to send emails for that domain. This is a major red flag for spoofing.

- Poor Sender IP Reputation: Many senders were listed on well-known Real-time Blackhole Lists (RBLs). Rules like RBL_SPAMCOP, RBL_MAILSPIKE_VERYBAD, and RBL_VIRUSFREE_BOTNET indicate the sending IPs are known sources of spam or are part of botnets.

- Suspicious Content and Links: The spam filter identified content patterns statistically similar to known spam (BAYES_SPAM) and found links to malicious websites (ABUSE_SURBL, PHISHING).

- Fundamental Technical Misconfigurations: Many sending servers had no Reverse DNS (RDNS_NONE), a common trait of compromised machines used for spam.

There have been few messages which went to spam which didn't meet any of this spam criteria but actually they were cold marketing emails, so it's good too. In addition to this stalwart emits info log for each possible spam message ingested. Not sure if this can get any better than this.


Tangent to this, some AI software is good for to experimentation. Here is an excellent example - https://m.youtube.com/watch?v=alb_ZFHVXCU


Second hand hardware for the win


Just add toggle button in the display settings to turn on / off Liquid Glass and there will be no problem. With good architecture this is doable.


Reminds me how Alibaba innovated in database space with a cluster of FPGAs doing LSM compaction with custom MySQL storage engine - https://dl.acm.org/doi/pdf/10.1145/3299869.3314041

Basically they achieved massive improvements in throughput and latencies vs RocksDB, for some operations even an order of magnitude.

They even offered this as a service, but eventually pulled out. Not sure if they are still using it, but I was surprised that pretty much nobody else, as far as I am aware, is using any hardware acceleration for repetitive database workloads.


AWS was using in house hardware query acceleration in redshift a few years back https://aws.amazon.com/blogs/aws/new-aqua-advanced-query-acc.... I dont know how much attention its getting (or performance its bringing) since AWS started focusing more in P&L the past year or two.


> FB is a ghost town

I've done surveys in cities about what social media people use and came to the same conclusion. However, I was completely wrong.

Facebook is so alive and well it's hard to believe. Besides that they skillfully connected two ecosystems together and there is much more people having FB than IG. Stories show up in messenger and quietly lead back to facebook just as links to fb videos people send to each other frequently.

It's just that people simply lie in their actual usage patterns because it's really uncool.

Primary people's identity online is still their Facebook profile.


I believe it takes maturity and wisdom to unhook from social media - facebook, youtube, linkedin, instagram etc. Especially reactive use, not the one which comes from internal pause / response.

I tried to unhook pretty much for the past 15 years as I sensed that it basically doesn't serve me. If I would summarize the one primary cause for my inability to do it is the following - the belief that consuming content online is better for my own being than learning to manage my monkey mind.

I mean any content - from scrolling dumb instagram and facebook feeds to factory making process videos on youtube and streamers playing online games, political debates etc.

The problem is not consuming content on social media, but doing it reactively, excessively.

What helps with unhooking is basically wisdom and experience because how to do it when pretty much everybody is doing it?

Realizing that entire social media world is just incredibly fucking corrupt. Like omg corrupt. It's the epitome of corruption, starting with CEOs themselves.

Last week I've had situation where the person I knew who has professional instagram profile with +10k and runs business there just went fucking nuts. Instead of focusing on working on herself she decided to double down on her narcisism and went mental. Episode, however this is where it leads.

I am just happy that I can see it better and better and step into the right direction - away from social media.

PS. I removed X account few months ago, oh my, what a relief!


I'm a little conflicted about using social media growing a business. If I do make content, I'll probably only commit to making actually useful posts, not putting up stuff that's vapid or shallow.


Unfortunately it's an incredible tool, especially for industries which pray on people's insecurities like beauty - botox, fillers etc. This person I know puts instagram story and gets instantly booked for all free slots she has for the entire week.

She talked about some people from her industry doing billboard ads and laughed how inefficient they must be, knowing that people are so hooked on "insta".


I feel like any quality posts are drowned in the volumes of spam. See also: LinkedIn.


If you're talking about that person experiencing a mental episode- i think we are about to see a shattering of composure and an end to the social arms race as image and reality become increasingly difficult to connect. I'm quietly excited. These animalised (through social media) sociopaths might just deserve what is coming for them. The ego economy can only huff its farts for so long.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: