Better HN
topnewbestaskshowjobs
Log inSign up

rnikander

108 karma · joined Nov 10, 2013 (13y ago) · 84 submissions

Submissions

comment 4mo ago · link · parent

All this computing power. Can we even simulate a water molecule yet from scratch with QM?

comment 1y ago · link · parent

I'm working on an app similar to Anki, where I can make my own cards for spaced repetition, organize them by folders and tags, and can run different queries to get groups to practice from. I'm curious what features people wish Anki had. I didn't love it when I tried it.

I want to use my app mainly for language learning, but as a demo, I also have some geography cards that zoom in on a country on the world map, for the front side.

comment 1y ago · link · parent

Interesting. My projects would benefit from those more convenient clones into closure captures. The other point where Rc is uglier than, say, Swift, is the explicit `.borrow()` and `.borrow_mut()` everywhere. I wonder if that could also be made more convenient/high-level without sacrificing the control over high performance (like C++) that got me to use Rust in the first place.

comment 1y ago · link · parent

Some Clojure fans once told me they thought datalog was better than SQL and it was a shame that the relational DBs all used SQL. I never dug into it enough to find out why they thought that way.

comment 1y ago · link · parent

Been trying Rust for some months now. The IDE experience is so much nicer I'm probably sticking with it, but the restrictions on how I write code are still grating on me. I need to learn the language better, but now I still feel like I wanted something more like C++ 2.0 without as much paradigm shift.

comment 1y ago · link · parent

I just used Skype the other day. I still find it useful for certain things. Is it that these companies can't maintain a piece of software unless they see a way for it to grow and dominate the world?

comment 1y ago · link · parent

Agree, the Volt seemed like a good idea. I don’t know the inside story of GM discontinuing that car. I imagined it was corporate dysfunction.

comment 1y ago · link · parent

I was using Swift before. Currently learning Rust. Want to use it for cross-platform UI, and I'm stuggling with exactly what you describe there.

comment 2y ago · link · parent

Any hope for a new iPhone SE? My 1st gen's battery is near dead.

comment 2y ago · link · parent

Yup. They could have security by allowing the user to see and control the sandboxing that the operating system imposes on the apps. The app store is not required, but they act like it is.

comment 3y ago · link · parent

Is Mojo interactive like Python? I mean will it work well with notebook style programming? I've been looking for something that works well in that interactive mode (like Python) but also has types (like, say, Swift). Swift playgrounds have always been buggy as hell for me.

comment 3y ago · link · parent

Yes, my short post may sound dismissive, but I work in tech and I'm aware that our industry has lots of legitimate creativity and intellectual property. Of course we also have hype, marketing, BS, and herd stampedes. Some aspects of GPU/parallel design are commonly understood and other companies make such chips. So I guess I was just wondering if Nvidia had a secret sauce, are they ahead of others, and if so by what measure? I work more in software, and I'm not in a position now to evaluate their hardware on the merits.

comment 3y ago · link · parent

What is Nvidia's gold mine? They don't make their own chips, right? Doesn't that mean that other companies can quickly catch up, if they are even behind?

comment 3y ago · link · parent

I don't like it either. It also seems arrogant to me – something about squatting on an entire letter and trying to rebrand it for your company.

comment 3y ago · link · parent

I've haven't looked into how these new AI products are implemented. Can someone give a ballpark estimate on the current costs if someone wanted to build their own, say:

1. LLM that talks like ChatGPT 2. Image generator that makes realistic portraits from verbal descriptions.

Are the costs in the data acquisition, human training input, training CPU/GPU hours, hardware, or ??

comment 3y ago · link · parent

I agree with his approach but I'm on macOS so I don't think I can even use this currently. Anyone know if he has a plan to get this out so everyone can use it? It's not like the authors of Clang are going to implement this. Is he trying to get the C++ committee to standardize this idea? Or will he make a commercial product? If it were cross-platform I would pay for it.

comment 3y ago · link · parent

I want to do cross platform native C++ dev. Maybe I should switch to Microsoft-land. I've been using a MacBook for years. I see Visual Studio docs talking about C++ cross-platform mobile (iOS, Android), but nothing about desktop (eg, Linux, macOS).

I suspect Visual Studio on Windows works better than what I've been using – VS Code or Emacs with clangd, which sometimes runs amok, takes 20GB of RAM, and kills my laptop.

comment 3y ago · link · parent

It's hard to say what I mean exactly, because I don't know what I will need to make my program fast, but I know I want the ability to adapt and control low level details. That would include memory layout and allocation, and skipping potential safety checks if I can prove my code works, beyond what the type system and compiler can prove.

I had some Swift code a while back. It was optimized, but when I rewrote it in C++ it got a lot faster. Something bad was happening that wasn't "visible in the code", as you said. The code was pretty complex algorithm and data structure stuff related to computational geometry and computer graphics. I suspect if I tried it in Rust I'd be fighting with the borrow checker and that is not appealing.

comment 3y ago · link · parent

I still can't use C++20 modules with a macOS app (Clang). I tried, and compile times balloon 10-30x on some files.

Maybe I should give up and try Rust. Does Rust give you _maximum_ control over performance the way C and C++ do? I need that and that's I why I used C++ in the first place.

comment 3y ago · link · parent

I wish I could build and deploy iOS apps from Linux on these things.

comment 3y ago · link · parent

Do some companies fund GCC C++ development? It seems too hairy for only heroic volunteers to get it done, but I don't know.

comment 3y ago · link · parent

I wonder if I can use GCC on macOS to build apps for macOS/iOS that can be App Store deployed. Or if I'm stuck with Clang there.

These days I still use macOS and exist in the Apple ecosystem. I wouldn't mind moving to Linux, but unfortunately I need a MacBook to do work where I build iOS apps. I wonder if there is a way around that.

comment 3y ago · link · parent

I've been using C++ a lot lately after many years away. There are different kinds of frustration. With C++ my frustration is the "this is so close to being awesome" variety, not the "wow, this just sucks" variety.

comment 3y ago · link · parent

Modules look like an awesome, game-changing feature, and they were supposed to be a part of C++20. As far as I know I still can't reasonably use them with Clang and CMake. Anyone know what the problem is? Are enough people being paid to work on C++ implementations? Or is it so difficult that despite the resources, people can't implement it in 3 years?

comment 3y ago · link · parent

A woman once told me that she made $300K/year as an "expert witness", on various topics. She was smart and she said she would study a bit and go testify. It blew my mind. I didn't understand whether she was working for the mafia, or if this was legal, or what. I said something like, "but, wait, you're not an expert. The court allows this?" She didn't understand my problem. She seemed entitled; despite her IQ she may not have understood what an actual expert was. I never got to the bottom of it and lost track of her.

comment 4y ago · link · parent

And I forgot: 3. keyword arguments to functions. :)

comment 4y ago · link · parent

Years ago I worked on some C++ and the code had a lot of pointers to objects. Maybe it was not well written C++.

In Swift (and Kotlin and others) the compiler can prove that you never get a null pointer error at runtime. If you want something that can be null, the type is `T?` (short for `Optional<T>`) instead of `T`. Then there are various syntactically convenient ways of unwrapping it and dealing with the null case. Eg `foo ?? bar` means give me `foo` if it's not null, otherwise `bar`. Or `foo?.x` means: get the property x of foo, if foo is not null.

I haven't used C++ much in recent years. If there's an equivalent, I'd love to know about it.

comment 4y ago · link · parent

Swift gets weirder and more difficult, C++ gets better. Will the two lines intersect? Probably not, but I'm starting to wonder.

I wish C++ had a few more cosmetic and convenient things that I've gotten used to in Swift. 1. Properties with get/set/didSet blocks. 2. Non-nullable types, ie `T` and `T?`. There's probably no way to add those, even as a GCC-specific non-standard extension.

123