Better HN
topnewbestaskshowjobs
Log inSign up

fish45

617 karma · joined May 4, 2020 (6y ago) · 130 submissions

Submissions

1.

Show HN: Statistically Correct Python Interpreter(github.com ↗)

1 points · by fish45 · 3y ago · discuss

2.

ChatGPT Understands Operational Semantics(blog.mikail-khan.com ↗)

2 points · by fish45 · 3y ago · discuss

comment 4y ago · link · parent

I use it with Firenvim: https://github.com/glacambre/firenvim

comment 4y ago · link · parent

Interestingly Zelensky might be easier to deepfake than other world leaders because there's more footage and a wider variety of facial expressions to train on due to his acting career

comment 4y ago · link · parent

The thing is that there's two levels of possible discrimination; systemic discrimination and admissions discrimination. Pure test results are discrimination free at the admissions level, but they don't address systemic inequities. To accommodate for systemic inequities, we use admissions discrimination. Again, that's not necessarily a bad thing; the author thinks it's a worthy tradeoff.

> Asians are extremely well represented at top schools, i'm not sure what they are fighting for?

The truth is that Asian Americans have to get higher test scores / GPA / extracurriculars to get into prestigious schools. It's true that this might have a positive affect on reducing systemic discrimination in the long run, but it's hard for Asian American applicants to accept that the burden should be placed on them.

comment 4y ago · link · parent

I just want to point out that this is part of the premise of the original article:

> Harvard’s admissions policies make me especially queasy, because the burden rests so heavily on Asian Americans. Still, it advances the important goals of exposing students to a somewhat broader range of colleagues and helping to lift more underrepresented minorities into positions in the power elite, which remains heavily white.

Generally, going to prestigious schools benefits under represented minorities more than it benefits Asian Americans to an extent that affirmative action can be effective at addressing systemic inequalities, but it's still discriminatory against Asian americans to do so. It's a matter of opinion whether it's a good tradeoff or not

comment 4y ago · link · parent

Yeah, I made it to do my chemistry homework where a lot of problems were duplicated with different numbers. The truth is that it's not well tested outside of that though so it's hard to trust for complicated stuff. I might end up using yours :)

comment 4y ago · link · parent

Nice project. It's pretty similar to my project CalcuLaTeX (https://calcula.tech) although I think the intended usecase is slightly different

9.

Dacein – Experimental Creative Coding IDE(szymonkaliski.com ↗)

2 points · by fish45 · 4y ago · discuss

comment 4y ago · link · parent

An interesting example is hollow knight. It’s one of the most successful indie games of all time and it’s almost entirely coded visually: https://unity.com/madewith/hollow-knight

Anecdotally it makes my fans spin really fast for a 2D game but that might be because of the fancy shaders

comment 4y ago · link · parent

I didn't know about Xephyr. That's super useful

comment 4y ago · link · parent

at first I was jealous of the GUI navigation, but then I realized I don't use any GUIs other than firefox, for which there are plenty of plugins.

The Vim emulation is pretty cool, the closest alternative I can think of is https://github.com/glacambre/firenvim, but I disabled it a while ago for being kind of clunky

comment 5y ago · link · parent

https://github.com/pop-os/shell

You're wrong

comment 5y ago · link · parent

This isn't "How to use the internet in a healthy way", this is "How to not use the Internet in an unhealthy way"

comment 5y ago · link · parent

I think many people haven't realized that different paradigms fit different people's brains in different ways; there are better paradigms for a specific person and task but it's impossible to generalize.

comment 5y ago · link · parent

drawing on my kobo using the Plato sketch program is actually super responsive. I'm not sure why but it seems that the refresh rate is fine and e.g. flipping a page or scrolling takes a long time for other reasons than the refresh rate

comment 5y ago · link · parent

I think you're agreeing with kwitze. It's ok and even desirable for these services to host illegal, moral content but bad for them to host immoral content

comment 5y ago · link · parent

you can also use Firefox containers to keep it all within Firefox

comment 5y ago · link · parent

A common example I use is an Abstract Syntax Tree, which is essentially a mutually recursive polymorphic tree. In Elixir you might model this with a tuple labelled by an atom. With Haskell you'd use ADTs and pattern matching, which are easy to pick up because they're first class in the language but they're still something to learn. In Java, your understanding has to be a bit deeper; you'd have to learn about abstract classes. In C, you'd need to understand forward declaration and tagged unions.

Honestly I can't think of an example of anything which is harder to model in Haskell's type system, but I think the Java and C examples demonstrate that you do have to learn different type systems to model more complex examples.

I totally agree that type systems end up reducing cognitive overhead in the long run though.

comment 5y ago · link · parent

> after you know one language well, you know them all instinctively

This isn't strictly true. Elixir, while functional, isn't completely pure and has a dynamic type system which definitely lowers the learning curve.

Developers who know one language well are likely equipped to pick up a language like Haskell faster than even a mathematician, but I can't imagine that a Java one trick would pick up Haskell (or APL, or Scheme, etc.) "instinctively"

comment 5y ago · link · parent

I don't remember much about the installation process. I think I just got to choose between automatic or manual partitioning, which is when I presumably went with automatic and chose the C: drive.

comment 5y ago · link · parent

Funny anecdote, I installed Ubuntu on my own laptop to improve my minecraft FPS when I was 9 (~9 years ago).

I googled something like "how to get more fps in minecraft" and the first result was a minecraft forum post to which the only response was "install Ubuntu". At the time, Ubuntu had a .exe installer, so I thought it was just like any other program and installed it to my C: drive along with everything else. I think I did have the concept of other OS since I'd used both Windows and MacOS previously, so I figured it out after the reboot. It did increase my minecraft FPS from ~15 to ~30 on average, so I didn't have any complaints.

I stuck with that laptop until high school, when I got a new laptop and started dual-booting Windows for gaming and Linux for everything else, which is where I'm at now.

comment 5y ago · link · parent

At least part of it, though definitely not all of it, is that a pet dog is immeasurably valuable to its owner.

comment 5y ago · link · parent

I would agree that someone who intentionally killed a dog and doesn't regret it is a terrible person, but I still think you'd be a terrible person if you subject them to death.

comment 5y ago · link · parent

Mix.install is super great for me. Personally I vastly prefer Elixir to Python for basic personal scripting stuff so being able to pull in dependencies in a single file is nice. Before I'd been using escript to turn mix projects into a single executable which is pretty inefficient

comment 5y ago · link · parent

I almost always start with a few of the first eulers problems, followed by flappy bird and/or a sudoku solver, and then a super simple interpreter

comment 5y ago · link · parent

My favorite is https://calcula.tech which I made to help with my physics and chemistry homework. I have a few other users, mostly friends from school AFAIK, but I'm hoping that it can become more useful for more people. I wrote the main interpreter in Rust mostly from scratch, and the site is built with elixir Phoenix and alpineJS.

comment 5y ago · link · parent

This is somewhat similar to my project at https://calcula.tech, although the usecase is a bit different. There are a few other calculators around that use Rust + WASM which is kind of interesting

comment 5y ago · link · parent

I'll agree with other commenters that Zig is no where near mature enough for Linux yet. However, I definitely think that it will be a better fit than Rust in a few years. It's a fantastic C replacement.

comment 5y ago · link · parent

I just replaced my phone battery using an iFixit kit a few minutes ago. It's probably extended the life of my phone by a year.
12345