Better HN
topnewbestaskshowjobs
Log inSign up

emoII

385 karma · joined Apr 25, 2021 (5y ago) · 75 submissions

Submissions

comment 1y ago · link · parent

You do write tests, don’t you?

comment 1y ago · link · parent

And the typesystem is built in a way that it does not really help you due to typechecking being so slow. Make an error/begin refactoring in ocaml: just follow the typechecker until you’re done. Make an error/begin refactoring in swift: you plan ahead because the typechecker will crash with a timeout or give you non-root-cause errors.

Yesterday I changed the signature of a method, and instead of complaining at the callsites I got a ”ambiguous method” error for a built in SwiftUI view modifier. Kinda hard to track down if you’re not completely aware of the changes you’ve made

comment 1y ago · link · parent

Isn't this basically just push-based deployments? If your build agent opens a connection to the server this is essentially what happens

comment 1y ago · link · parent

In other words, the former is syntactic sugar and having just the latter option would suffice

comment 1y ago · link · parent

It’s not clear to me how using a framework replaces cra, or why cra is a hassle to maintain? I’ve always thought of cra as a way for beginners to quickly wire necessary stuff up to get a working, ”vanilla” react project, something that could be a done in a simple shell script

comment 1y ago · link · parent

Something like go, yes. Imo there is benefit to only being able to do things one way, and in swift there are a lot of ways to do everything. A trivial example: why can you bind variables in pattern matches with both case let .some(x) and case .some(let x)?

comment 1y ago · link · parent

Really, the fact that Apple pushes swiftui as production ready is laughable. The framework is so ridden in bugs, does not play nicely with the other frameworks like photosui, and the language itself is incredibly bloated.

comment 1y ago · link · parent

What do you mean? Afaik the type system does not affect run time speed, it’s just static analysis

comment 1y ago · link · parent

For-loops and mutation are not really encouraged, often loops are implemented with recursion as in normal fp. The big difference to me is that OCaml doesn't try to be pure, so you can perform side effects as needed, instead of forcing the user to jump through hurdles when trying to print to stdout

comment 2y ago · link · parent

Is there a type-system that provides runtime safety? I thought type-erasure was common practice

comment 2y ago · link · parent

The sentiment to me is “we need unlimited compute and data” both of which are clearly limited. There is definitely more technology to invent and understand in order for us to do more with less

comment 2y ago · link · parent

How far away is this from saying ”just program distributed systems functionally”?

comment 2y ago · link · parent

I think that’s a massive achievement

comment 2y ago · link · parent

I’ve recently spent some time working with terminal emulators in raw mode on macOS. While I chose to handle key events using escape codes, and found it seriously difficult (even gave up) to process the shift modifier key. However, I came across xquartz [1], which seems to do similar things as mentioned in the article. Would detecting shift key state have been trivial using such a library?

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

comment 2y ago · link · parent

Rectangle is absolutely great

comment 3y ago · link · parent

The introduction of this is a great read. I liked especially the tautology about abstraction and calling more code; that building upon higher levels of abstraction means ever-smaller missteps are required by the developer to make software significantly less performant. Made me think of the subject discussed in [1]

[1] https://tonsky.me/blog/disenchantment/

comment 3y ago · link · parent

Making yoghurt contains the instruction: "Stir in some yogurt (from the store or from a friend) and cover with a clean damp towel overnight."

This recursive dependency is not visualized sadly. Fun website nonetheless!

48.

Swedish video game company Mindark replaces 50% of workforce with AI(kollega.se ↗)

1 points · by emoII · 3y ago · 2 comments

comment 3y ago · link · parent

Another perspective is that putting our knowledge in the world by using digital tools is the only way we can function while being bombarded by information and distractions

comment 3y ago · link · parent

"The kids are playing, better record a spacial moment" was one of the most dystopic things I've seen in a long time. Same with the ad at the end, with the father wearing it around his kids. I feel like the interface demands strapping something this futuristic over your head is just... wrong. Perhaps a few years of refining the tech can lead to something that feels more natural

comment 3y ago · link · parent

The lexer groups individual characters into building blocks, tokens, that the language is made of. From keywords such as "if", "for", "function" and symbols like "{", to arbitrary identifiers that doesn't contribute to the actual meaning or structure of the program, i.e. "foo".

The parser groups the tokens into meaningful statements, it implements the grammar. If the parser sees an "if", it expects some condition next (depending on the grammar of course). If the parser detects statements that are not consistent with the grammar of the language, it should reject the program.

Tldr they work on different levels, lexers just finds the individual building blocks, the parser builds the program

comment 3y ago · link · parent

Same behaviour for me using Safari.

comment 3y ago · link · parent

Won't the prompt itself be the test? TDD is literally just providing an expected output on a given input, before implementing the functionality. The prompt we give AIs follows the same pattern, "I have a data that looks like ___, visualize it in a graph that ____"

comment 3y ago · link · parent

Well the new smoke mechanics will definitely be a game changer: https://www.youtube.com/watch?v=_y9MpNcAitQ

comment 3y ago · link · parent

The UX of Spotify have gone downhill every since they pivoted towards podcasts, and became particularily bad when they introduced the filter-system for your library and the homepage. Please, fire the product managers creating meaningless work just to keep their job. The only good addition to Spotify in the last five years is the _RE_-launch off in-app lyrics.

comment 3y ago · link · parent

Worth a mention: https://turingcomplete.game I've played for a few hours, it's well made!

comment 3y ago · link · parent

Perhaps they should only have headcount to keep the service running. Twitters value proposition is still exactly the same as it was 10 years ago, and removing any new features since would not be noticed by most. Developing new features once the initial success has come could be considered making it worse if anything (e.g. reddit). Isn't the lack of new features one of the reasons we like HN?

comment 3y ago · link · parent

On the first point, that is no guarantee that users will stay on the site. The AI is currently only using data from 2021 and earlier as far as I'm aware, and does so without feeling out of date. Before we see any significant signs of the AI imploding due to lack of new information, SO might well be long gone

comment 4y ago · link · parent

If it's easy to fire you won't have to be as thorough when hiring because if the new employee doesn't fit - just waste him/her. If it's difficult to fire the company will put potential employees through hell before deciding. I don't think there's any country where the actual process of hiring someone is a legal nightmare
123