HNHacker News
TopNewBestAskShowJobs

iomcr

72 karma · joined March 29, 2020

submissionscomments
iomcr··on Ask HN: The Crystal programming language – what are your impressions?
Since we're on about distribution, I converted a nodejs application to Crystal. The docker containers were 1GB vs 20MB.
iomcr··on Ask HN: The Crystal programming language – what are your impressions?
I've never written a line of ruby in my life. For me, Crystal is an easier and asthetically prettier alternative to rust. It's syntax and type system are superior to golang. It doesn't use a giant VM.
iomcr··on Locked out of 'God Mode', runners are hacking their treadmills
> And the people who might crow about "security" - my device, my rules. I can block it on the network if I want.

We've entered a sad dystopia when the manufacturer is the leading security threat to the integrity of my personal devices.

iomcr··on Locked out of 'God Mode', runners are hacking their treadmills
But they paid for the $4,000 treadmill, not expecting it to magically become the $400 treadmill.
iomcr··on Ask HN: Is domain squatting still profitable? Is there a solution?
I typically suggest something like your first 25 domains are exempt, registered businesses also get some reasonable amount. Past that there should be a relatively hefty squatting fee. Maybe additional exemptions can be applied for.
iomcr··on Mixed views on new DNS top level domains
My first thought, while I don't know the exact rights of the parties involved, they should have filed a complaint with ICANN regardless.
iomcr··on Mixed views on new DNS top level domains
While true, a free and open web is generally desirable, and we'd like to keep the barriers of entry for federation to a minimum. If someone was ready to start mycool.forum, but doesn't have $500/yr to start a website, they must now wade through a garbage pile of "minimum $2,000 bid" squatted domains, weird TLDs that could declare your domain premium and charge $400,000/yr at any time, maybe even if the only thing "premium" about the name is that your website got popular, or buy a domain like themycoolforum50.com.

This might be only one managable issue, but these things add up, and the more they add up, the more facebook becomes the only website people use.

iomcr··on Mixed views on new DNS top level domains
Was it {firstname}{lastname}.gtld or only one of those?
iomcr··on Mixed views on new DNS top level domains
I do have a complaint about relatively new TLDs. Did you know .forum domains are $500 to $2000 per year?

We live in a world where everybody is complaining about censorship and nazis, but one of the best new TLDs for an independent forum is prices out 99% of the market!

Of course, there are plenty of TLDs in the $5-$20 range, which are great, but this will cause cheap TLDs to become crowded and .forum will be a ghost town.

Forums generally don't make money. Any forum making money, probably isn't making enough to budget $500 extra in another domain. Any company that would say "wow, $2000/year is acceptable" would already have something like {forum,community}.acme.com.

iomcr··on Launch HN: Svix (YC W21) – Webhooks as a Service
This is awesome, I'll probably try it out soon.

My primary use case is that I don't want my end user(s) to know the IP address of my core application.

But, the option to pay someone other than AWS/GoogleCloud and then have to write my own lambdas is also a plus.

Something similar, but for "fetch metadata on this URL" (tags, description, title, etc), version 2 of that being support for when the end target is an SPA, or also a "take a screenshot of this URL" would also be nice.

iomcr··on Show HN: I made a free blogging/bookmarking platform with discussions/discovery
This is pretty cool. Is it opensource? What stack is it built with?
iomcr··on Crystal 1.0 – What to expect
> Ruby 3 does static typing

Categorically, what I've seen of this falls closer to "lintable comments" than it does "actual static types". Static types are a foundational aspect of crystal, it's not like a sticker slapped on as an after thought.

iomcr··on Crystal 1.0 – What to expect
Reality: Kotlin's value proposition is android development.
iomcr··on Crystal 1.0 – What to expect
Sounds like a fair compromise when the alternatives includes at least one of the following tradeoffs: harder, less safe, and/or slower.
iomcr··on Crystal 1.0 – What to expect
That doesn't stop 99% of the mind share and language design from being "Java with lipstick".
iomcr··on Crystal 1.0 – What to expect
> Python is usually fast enough when not using python

Agreed.

iomcr··on Crystal 1.0 – What to expect
Crystal does a better job with making portable binaries. For example I have written an app that's a 20MB alpine docker container. A comparable app written in Elixir used an 800MB alpine docker container.

I think Elixir is one of crystal's top competitors, but only for servers. Probably you'd never leave Elixir to write a webserver in Crystal. That's just Erlang's specialty. You would leave golang, Ruby, python, PHP, etc. for crystal though, because of the type system, performance, threads, binary, etc..

I've actually started using crystal to write the kinds of scripts people would normally use python for, despite it not being a scripting language.

iomcr··on The future of web software is HTML over WebSockets
https://stackoverflow.com/questions/28582935/does-http-2-mak...
iomcr··on The future of web software is HTML over WebSockets
I feel like websockets get waaay too much hype and attention compared to SSE, especially for use cases that are barely interactive at all.
iomcr··on NES.css – NES-Style CSS Framework
A similar list for free to use bootstrap 4/5 themes (like https://bootswatch.com/ but I already know about bootswatch) is in my wishlist.
iomcr··on RBS, Ruby’s new type signature language
This was my experience with typescript. Nothing I actually wanted to use had first class support for typescript. Nothing I settled with didn't have endless compiler errors that had more to do with the tsconfig than my actual types.

Then at the end of the day, it was still JavaScript (an interesting word for "not ruby"), but with types slapped on top.

I ended up switching to crystal, which is basically ruby + types (infered when possible, but I actually wanted the types) with the performance of golang.

iomcr··on Named arguments are coming in PHP 8
Definitely a top feature of crystal lang. Not having to worry about what the default was to the second positional argument while using the third is satisfying, not to mention that it's basically optional self documenting, too.
iomcr··on Is WebP really better than JPEG?
Fix this easily by abstracting the manipulation of user uploaded files to chroot/serverless.
iomcr··on Go vs. Crystal Performance
clear is also an ORM you could check out.

https://clear.gitbook.io/project/

iomcr··on Go vs. Crystal Performance
I'm hoping to put a side project into production soon, crystal the language is basically perfect, biggest issue is that I often have to write my own shards, but every shard I write is a shard someone else won't have to write and sometimes npm/gems can easily be converted. The performance and type system working in ecr templates gave me confidence that I could write a higher quality lowjs webapp with a better dev experience than my default stack, which was going to be an uphill battle getting typescript Frankenstein'd into vuejs with a backend in laravel or Frankensteining typescript into a nodejs library (I didnt find any typescript-first nodejs http webservers that I actually liked _and_ also didn't require infinite yakshaving just to get tsconfig, tests, vuejs SSR, etc. working).
iomcr··on ‘BlueLeaks’ Exposes Files from Hundreds of Police Departments
I took the quote to imply possible categories like copagandists, white supremacists, Nazis, KKK, or even random apolitical opportunists, which is a distinction with a huge difference. After all, Trump did announce something like "Antifa did it" instantly after the riots started while law enforcement across the board has been struggling to find any evidence. It does smell like an astroturfed misinformation campaign intended to drown out criticisms of widespread systemic police brutality.
iomcr··on Ruby vs. Crystal Performance
Ruby syntax's alleged beauty is one one of its most popular features and you're in a thread about a language that intentionally copied that feature.
iomcr··on Ask HN: What are you learning?
Crystal Lang - I couldn't find a JS framework I liked that also had good Typescript support, so I took a longshot in building a no-js webapp.
iomcr··on How to burn the most money with a single click in Azure
I'm about to try the same thing, but with crystal + postgres + nginx + cloudflare + serverless, so we'll see.