HNHacker News
TopNewBestAskShowJobs

virtualwhys

3,419 karma · joined January 3, 2013

N.S. Cutler (https://github.com/godenji)

Backend Scala developer since 2012. Enjoy relational databases combined with FQLs in the vein of Slick, Quill, Esqueleto, LINQ to SQL, etc.

Also work with Scala.js, and Angular + TypeScript on the frontend.

submissionscomments
virtualwhys··on Scala.js 1.0.0-RC1
Scala Native [1] has been really quiet of late (last commit July 29), not sure what's going on. There was a lot of excitement when the project kicked off, hopefully it continues to evolve.

[1] https://github.com/scala-native/scala-native

virtualwhys··on Scala.js 1.0.0-RC1
> the output was several hundred kb for something slightly more than a Hello World -- it used some List and Seq functions

That's just nonsense, maybe 6 or 7 years ago that could have been the case. There's an approximate 100KB "tax" for pulling in Scala collections (i.e. as soon as you depend on List, Map, Seq, etc.), which is the price to pay for being able to use the power of Scala in the browser.

> Is there any way Scala.js can produce code as compact as BuckleScript/ReasonML in the future?

No, iirc, not without a redeisgn.

There's a longstanding issue wrt lazy loading, which is slated to be worked on at some point post-1.0 -- I'd say that's probably the biggest missing feature, the ability to break out one's app into dynamic chunks, so for example a lightweight frontend/public facing area of an app can be isolated from the backend where all the heavy lifting is done.

Perhaps with Dotty (AKA Scala 3) next year there will be further reductions in Scala.js code size, but no, nothing like BuckleScript.

virtualwhys··on How Discord achieves native iOS performance with React Native
Ionic is quite decent, though can become sluggish once your app grows in complexity (even with lazy loading) if you're not careful.

Flutter looks interesting, going to check it out.

In the end one wants a true "write once, run everywhere" framework, not write the business logic and then write the UI 3+ times for each target platform. Ionic delivers on this front, but am curious to see if Flutter takes it to another level (blazing fast dev/reload cycles and native performance in production sound quite appealing).

virtualwhys··on How Discord achieves native iOS performance with React Native
What's missing? TS has quite a few interesting language features that I assume Dart is missing (seems Dart has the reputation of being a Java-like language, with all the boilerplate that that entails).
virtualwhys··on TypeScript 3.7
> What didn't you like?

That the suggested features in this open issue [1] can't be implemented soon enough :)

Is there a roadmap available that would give an idea as to when x, y, z language features may be implemented?

[1] https://github.com/dart-lang/language/issues/546

virtualwhys··on We Will Call It Pala: A Story for the Psychedelic Movement
Beautiful parody of a possible future, this was incredibly well written and designed.

As it stands it's not uncommon to pay around $200/night for Ayahuasca retreats (plus $75/night lodging), and 5-MEO DMT, $200 on the low end and $1K+ in places like Los Angeles, for a 10-20 minute experience beyond experience. I've met more than one shaman/business owner absolutely raking it in, booked solid, turning people away due to overwhelming demand.

Needless to say it's a lucrative market, not out of the realm of possibility to see big pharma getting in on the action if legalization moves beyond marijuana.

virtualwhys··on Some people who take psychedelics continue hallucinating indefinitely
It's a gigantic amount. For context Hoffman took around 300mcg and was clearly tripping very hard (based on his account); that's around 4X street acid at 75mcg per tab.

Even if you were to measure a single tab as 150mcg the OP is claiming they took nearly 10 tabs, which is a massive amount, you'd be out of your mind for days.

virtualwhys··on New Mac Pro Tech Specs
> I'm just wondering whether a workstation-grade laptop (Dell Precision or Thinkpad P-series) would be a sufficient upgrade, or investing in a desktop would be worthwhile at some point.

Yes, either 17" machine offers an 8-core CPU and plenty of thermal capacity (i.e. larger chassis than their 15" equivalents), along with more than enough memory (128GB), and in Dell's case, a boatload of HD slots (4, run in whatever RAID config you want). These are desktop replacements, heavy (as in 6.5+ lbs), with 240W power bricks , so you'll probably want them to stay on the desk for most of the time.

I'm personally looking to replace my old Dell Precision with a 15" 5540, maxed out. For Scala work the extra cores help reduce build times, probably the same for Java.

virtualwhys··on Small but significant improvements in Swift 5.1
Ok, but I still don't understand, why would you have to name the arguments to the method?

Are there other languages with this type of method declaration/use site syntax? If so, what's the advantage?

virtualwhys··on Small but significant improvements in Swift 5.1
I don't use Swift, what's the point of the underscores in the method declaration?
virtualwhys··on Lenovo crams unremovable crapware into laptops by hiding it in the BIOS (2015)
> You should look into one, because they're the best engineering laptop on the market.

Dell Precision line may not have the great TP keyboard, but otherwise it's hard to beat a 7740, for example, performance-wise. If anything the Thinkpad P73 and Precision 7740 are similar spec-wise (7740 has marginally faster processor i9-9880HK vs. i9-9880H, and GPU, RTX 5000 vs. 4000), with the P73 coming in at 1lb heavier.

Though you'll pay through the nose for the 7740 with maxed out specs. Just for kicks I configured the following machine:

  CPU: i9-9880HK
  GPU: RTX 5000
  HD:  4 X 2TB SSD (RAID 0)
  RAM: 128GB
  SCREEN: UHD 3840 X 2160
A mere $21K USD :)
virtualwhys··on Fancy Zones, a tiling window manager
i3 isn't really a Windows click-click-click style UI; you do most everything with the keyboard, including % based resizing, converting tiles to tabs or stacks, moving tiles from one section or virtual desktop to another, etc.

It's really quite a powerful and easily configurable tool, so much so that I consider it to be an absolutely indispensable part of my day-to-day computing experience (working on a Mac, for example, is just depressing in comparison).

virtualwhys··on TypeScript vs. ReasonML
Which is exactly the author's point, in TS you must specify the types (to guarantee type safety), whereas in MLs parameters can be inferred.
virtualwhys··on TypeScript vs. ReasonML
Why did you stop reading?

The TS version has zero type safety (compiler infers any), whereas the RML version will only accept numeric type arguments.

virtualwhys··on Zen 2 Missives – AMD now delivering efficiencies that are double that of Intel
If they don't jump straight to 7nm then next iteration of 10nm may be more impressive.

At 6-8 cores a 10nm with low base clock and decent boost speeds would probably be a decent option provided it doesn't throttle in the thin/light laptops of today.

Consumer is caught between worlds, the old power hungry one, and the new efficient one where long battery life and cool/quiet mobile systems are the norm (at least that's the hope).

virtualwhys··on Zen 2 Missives – AMD now delivering efficiencies that are double that of Intel
Sure, but not yet on 7nm. Maybe sometime during 2020 that will happen, but there's no public roadmap that I know of that states AMD 7nm mobile processors will be available in X quarter of Y year.
virtualwhys··on Zen 2 Missives – AMD now delivering efficiencies that are double that of Intel
And for laptops everyone is stuck with Intel 14++ until AMD delivers 7nm for mobile (Intel 10nm offerings look very underwhelming).

What a great time to be in the market for a new machine, lots of hot air (literally) and throttling with the 6/8 core Intel i9s.

virtualwhys··on The Impact of Meditating Every Day
> I do 2-4 hours a day. Several 7 day retreats per year.

I did the same in my 20s, but then slowly, my interest in sitting for hours a day, long retreats, faded. Not sure why, the experience itself is obviously deep, but it became a kind of attachment like coffee, and gradually I returned to the world.

> If I worship something, it's this moment

Wonderfully put.

May I ask, if you didn't sit, would this moment cease? Put differently, without practice would something be lost?

virtualwhys··on Uber Posts $5.2B Loss and Slowest Ever Growth Rate
> How come?

Oh, I don't know, maybe because every host on the planet will "share" their room/apartment/house at exhoribtant nightly rates in lieu of renting by the month, which leads to housing shortages for people who need a place to live vs. those who are going to visit X part of the world for a few days.

The Airbnb-ification of the world is decidedly interesting for owners, while for everyone else an added hardship whether or not you use the service.

virtualwhys··on Ask HN: Who wants to be hired? (August 2019)

  Location: Cambridge, MA; Everywhere (U.S. Citizen)
  Remote: Yes
  Willing to relocate: No
  Technologies: Akka + Play + Scala(.js); TypeScript + Angular/Ionic 
  Résumé/CV: https://github.com/godenji
  Email: sit1way@gmail.com
virtualwhys··on Purescript-native can now target Golang
> but that's not a concern when e.g. the backend is written in another language anyway.

well, for anyone who's been in this situation, it should be a concern, since it's incredibly easy to get out of sync between backend and frontend (e.g. model, validation, etc.).

Ideally we could all code in preferred-language; target all major platforms using a single/universal UI framework, and call it a day...but reality is messier than that, we're often forced to code apps in multiple languages, multiple UI frameworks (if targeting native iOS + Android, and browser/PWA), and hope it all comes together such that the house of cards stays standing through language/framework/platform upgrades.

virtualwhys··on Purescript-native can now target Golang
> Purescript is the only one I’ve seen that is close to being as good as the Vue/React apps I get paid good money to develop for a living.

Purescript is a language, are you saying that the language itself allows for creating View/React apps without need of a framework? Or do you mean that there are native (in the ecosystem sense) Purescript UI frameworks that allow one to create View/React apps without depending directly on JS ecosystem to handle the UI?

Wonder how PS compares to OCaml/BuckleScript wrt to generated code size (the latter is absurdly tiny somehow, just incredibly efficient on that front).

virtualwhys··on The Problem of Mindfulness
> and to try to reach a state where you don't exist, and teach you that your thoughts aren't your own and you have no free will.

There's a lot going on here. So, I don't exist, and yet an effort to reach the state of non-existence needs to be made (sounds like some faith/belief is required here to even begin). And, thoughts are without a self, which follows from the non-self notion. That all makes sense within this philosophy, but what about free will?

It sounds like the state of non-self would be the essence of freedom, and therefore, choice, and not a fixed universe in which everything is preordained.

virtualwhys··on GraphQL Performance Monitoring Is Hard
> Is this really an issue?

Think of an "advanced search" feature on the client that allows for creating queries of arbitrary complexity (basically, a client-side query builder). The user could certainly go overboard I'd imagine.

virtualwhys··on Toilets of the World
> I'm always struck by how little privacy is afforded by the dividing walls in toilets in the USA.

If you're ever in the Boston area, try checking out a Red Sox game; the urinary dividing "walls" are legendary.

virtualwhys··on Skills Poor Programmers Lack
> The author has been programming since at least 2009

Which is to say, since the author was 12 years old if they followed a standard K-12 + undergrad program (graduated from a Utah Valley University last year it seems).

I think the irony in the article is that the author is very likely 22 or 23 years old and opining about how developers that have been coding for longer than he's been alive still just-don't-get-it. I guess you'd just expect this kind of article from someone with more experience in the field.

I did like this, however:

> Poorly designed software lacks conceptual integrity...It usually looks like a giant Rube Goldberg machine that haphazardly sets state and triggers events.

That is, it seems, the modern web :)

virtualwhys··on How many kinds of USB-C to USB-C cables are there?
> After buying a screen which has only a USB-C DP-Alt-Mode input

OT, but what screen did you buy? I'm in the market as well for a USB-C powered travel monitor and was about to head down the what-cable-works rabbit hole.

virtualwhys··on Interesting Programming Languages
UrWeb deserves a mention as well: https://github.com/urweb/urweb
virtualwhys··on React Native 0.60
> I found Ionic to have the most enjoyable and cogent end-to-end experience amongst the three.

Agreed, though I'd love to use Ionic with Scala.js in place of TypeScript (which is great, but doesn't give me the same if-it-compiles-it-works confidence as Scala does, not to mention batteries-included standard library).

Hopefully technology will emerge that allows one to write once/run everywhere in preferred-language on all major platforms. Compromises seem to abound with currently available options.

virtualwhys··on Artists getting evicted in Detroit
> My rent was $400 that I split, the same (rather shitty) apartment now goes for $1600

or, if the owner/occupant elects to put the unit on Airbnb, $3,000-$4,000+ per month[1] (not directly related to the article, but short-term [nomad] housing is largely a thing of the past).

[1] https://www.theguardian.com/commentisfree/2018/aug/31/airbnb...

← PreviousPage 5 of 32Next →