HNHacker News
TopNewBestAskShowJobs

fish45

617 karma · joined May 4, 2020

submissionscomments
fish45··on Show HN: CalcuLaTeX, a pretty-printing calculator language
Haha I don't think I understood the concept of units 10 years ago
fish45··on Show HN: CalcuLaTeX, a pretty-printing calculator language
I'm glad to hear it! Feel free to open an issue if you'd like anything added
fish45··on Show HN: CalcuLaTeX, a pretty-printing calculator language
Hey HN, I created CalcuLaTeX because I was frustrated with my workflow for chemistry and physics homework. Generally, I'd use the Python REPL as a calculator and type each problem into LaTeX to turn it in. CalcuLaTeX merges these two steps and makes it easier to reason about calculations by real time visual feedback.

I've posted on r/rust as well (https://www.reddit.com/r/rust/comments/lqn5aa/calculatex_a_p...), and there seems to be interest in using it for scientific papers and such.

The only alternative I know of is PTC MathCAD, which is quite powerful and definitely worth looking into. However, it's quite expensive and Windows only.

The main repo (a Rust library and basic CLI) can be found here: https://github.com/mkhan45/CalcuLaTeX

The website repo using WASM and very hacky JS can be found here: https://github.com/mkhan45/CalcuLaTeX-Web

fish45··on Ask HN: Simple static site generator for basic templating?
Nice. For whatever reason I'd thought hugo only supports built in themes
fish45··on Gluon: A static, type inferred and embeddable language written in Rust
I was looking at Rust based scripting language to add to SIMple Physics (https://mkhan45.github.io/SIMple-Physics/tabs/about/). While Lua as a language works perfectly for me, it will be pretty difficult to compile to WASM as part of a Rust project.

The two most mature embeddable Rust scripting languages at the moment seem to be Gluon and Rhai. Gluon, unlike Rhai and Lua, is inspired by Haskell and OCaml and highly functional. On the other hand, Rhai is pretty much a Rusty looking version of Lua from my first impressions.

I'm pretty heavily leaning towards Rhai at the moment since I need the scripting language for SIMple Physics to be easy for beginners with no programming experience to pick up for ultra basic applications, but I think Gluon is pretty unique. I'd assume that simple imperative languages are just better for embedding since they're often just used to send commands, but I wonder if I'm just close-minded since I've been using Lua.

fish45··on I tried to use WordPress with GitHub Pages
> I'm never going to write if I have to fire up my code editor each time

FWIW, being able to write through my code editor in markdown is what got me to start writing

fish45··on The Julia Language – A fresh approach to technical computing
I think it's meant more for scientists and ML researchers
fish45··on What Makes a Programming Language Too Complicated?
Non paywalled link: https://mkhan45.github.io/2020/08/04/What-makes-a-programmin...
fish45··on Making Advanced GUI Applications with Godot
I'm not too up to date with Godot news, but I remember that a recent update (maybe devlog?) added good multi monitor support to the editor, and therefore the gui toolkit of the engine, since the editor uses the engine.
fish45··on 95% of Programming Isn’t Hard (and other random thoughts)
> 5% or less of programming is hard: it’s the stuff that interview questions refer to. You might need to think about algorithms, might need to try out multiple strategies before deciding on the one.

The author is correct that most programs don't need complex or clever leetcode type algorithms, but IMO program architecture is just as difficult to get right for any program longer than a thousand lines.

fish45··on The Case Against OOP Is Wildly Overstated
ECS architecture is IMO very frictionless no matter how much state you have
fish45··on Rust Is Surprisingly Good as a Server Language
> a typed language is a typed language Well yeah, but not every type system is equal. For example I vastly prefer Rust's type system to C's because of Options instead of null and enums as sum types.

> what other features would make me pick rust over golang Generics, iterators, pattern matching, etc. There's lots of features Rust has that golang doesn't; that's not necessarily a good thing but for what I do it is. IMO the only good thing about golang's featurelessness is the compile times and the standard library.

As for interpreted languages, IMO it's just better to be able to catch errors at compile time.

fish45··on Rust Is Surprisingly Good as a Server Language
> If you are going to end up sprinkling clones, heap allocating, and reference counting, then you could have used C#...

The memory management system isn't Rust's only good feature. I and others enjoy Rust's type system and functional features, for example.

Using Rust also makes it easy to get performance for when writing the parts for which you need it.

fish45··on Ask HN: What's the worst piece of software you use everyday?
Have you tried meet.jit.si? The quality is pretty bad but it's way easier to use than zoom which kind of has a reputation for it. I got my dad set up with jitsi in hardly a minute whereas zoom took around 10 minutes
fish45··on The Secret Algorithm That's Keeping Students Out of College
I'm glad I took AP instead of IB. I go to a very difficult magnet high school. I was hovering around a low B for my entire AP Calculus BC class, but I still flew through the AP test and got a 5 (highest score). Even kids who get Cs in the class get 5s on the AP exam. I'd imagine that there's a number of similar schools with a large IB program and highly deflated grades, and I doubt that the IB algorithm takes school difficulty into account.
fish45··on Show HN: Runc – Compile and run C in one command
This is definitely helpful for testing.

Also related is the tiny C compiler and its `tcc -run` command.

fish45··on What adolescents think of mindfulness in schools
I go (went?) to a very competitive STEM magnet school. We had 5 minutes of meditation at the start of class once a week. Sometimes it was nice, other times it was actively harmful. If there was a test we had to make up for lost time by staying in during lunch/passing time. Once our teacher was giving us last minute review before a test and she had to just talk over the broadcasted meditation instructions
fish45··on Quit whining about Apple and just stop using them
I think they're fine products but they just don't work for me. I need full control over my stuff and apple won't give it to me. Of course, given that I don't like Apple, some of the stuff they do like iMessage and the hurdles to make apps for ios annoys me
fish45··on Using Lua as a Serialization Format
on reading some of the comments here I've added some more security, but you're right that I'm not worried about security. The limitations I added should prevent your average prankster from sending an infinite loop to their teacher, but I don't think it would stop anyone more dedicated
fish45··on Using Lua as a Serialization Format
I somewhat agree, but I feel that being able to do math/logic with Lua makes it superior for this use case since I'm not worried about security
fish45··on Using Lua as a Serialization Format
thanks, I've fixed it
fish45··on Using Lua as a Serialization Format
I hadn't added this before I posted here but Lua does have a way to limit vm instructions so I've added a pretty conservative limit
fish45··on Using Lua as a Serialization Format
well I've been super impressed by luajit in the past but given that the simulation is pretty highly multithreaded I don't think a Lua version would do so well in comparison
fish45··on Bootstrap 5 alpha
I'm not really sure about accessibility, but I've been having a good time with boba.css. It's on the smaller size and is CSS only, but, at least for me, it has every feature I want.
fish45··on SageMath – Open-Source Mathematical Software System
I love sage and I used it for multivar calc this year but unfortunately it's not as good in some aspects (mainly symbolic integration) as Mathematica. One of my primary motivations for learning math is being able to contribute
fish45··on I Replaced My MacBook Pro with a Raspberry Pi 4 8GB for a Day
for me it was when I discovered desktop environments and window managers other than gnome/kde. I can't go back to not having so much customization.
fish45··on Show HN: My sans-JavaScript server dashboard
I wonder how much WASM would help
fish45··on IBM will no longer offer, develop, or research facial recognition technology
I understand why they're doing this and I think it's a good idea, but I'm annoyed that it has to be done.

I doubt that this will catch on with any other companies that use facial recognition, and to be honest the technology is too simple to possibly regulate, but at the moment I think I'd prefer a world without facial recognition to a world with it. I just wish that we could fully explore the uses of cool technology without having to worry about its misuse.

fish45··on Randomized Trial on Gender in Overwatch
In the past few weeks I've been a bit more conscious of this since I've been playing games with voice chat. In csgo the majority of women who used their mic were treated terribly. On the other hand, in valorant, which I've played a lot more of in the past weeks, I haven't noticed a single instance of extra toxicity because of gender. I'm not really sure why that would be as the communities are theoretically pretty much the same, but the biggest difference is that in Valorant I'm usually 3 to 5 stacking with friends whereas in csgo I was only 2 stacking. Regardless and without any numbers to back me up I feel like valorant is much friendlier to girls
fish45··on Blender 2.83 LTS
it can replace gimp but it's not made for it. I'm not sure about how much the new grease pencil adds for photo editing though.
← PreviousPage 3 of 4Next →