Hacker News new | past | comments | ask | show | jobs | submit | synergy20's comments login

read news about rust and swift these days, it seems modern c++ might keep its dominance for the future

Rust doesn't keep adding features like Swift is. There is a lot of stabilization happening.

I read a book 20 years ago(forgot the name), one chapter is called "work as a mercenary', since then I detached my personal feeling from the companies I worked at, it served both sides well over the years.


it's over for me 10 years ago, I spent 10 minutes annually on facebook, life is good without it.


Same. I closed my FB account 16 years ago and I've never once missed it.


while neovim is great and I intend to switch even, some time down the road, it caused a not-really-compatible fork and diverted the efforts, I wish them to be merged however hard it will be.


I am maybe just a year or so down from the switch from vim to neovim, but lua is a game changer. It's like, it's easy to configure stuff yourself now. Better plugins are written because the tools are better, or at least so I'm convinced.

I will make a random comparison to latex vs typst (typesetting software). Both incorporate a programming environment, you can write a program right in your document. The difference is that the tex programming environment is a bit unapproachable and not very similar to other languages you may already know, while typst's equivalent is consistent and more similar to languages you know.


> ... lua is a game changer...

Am I the only one who absolutely hates Lua? Its syntax, the fact that variables are global by default unless you local them, `foo = nil` isn't variable assignment but instead variable unassignment!, etc.

There are far better scripting languages than Lua.


You are absolutely not. In point of fact pretty much everyone hates Lua except the handful of folks integrating it. It has a huge lead in terms of embeddability and performance vs. competitors like Python. So you see it show up in little C applications[1] again and again and again because everything else is just too much of a hassle.

But everyone agrees the programming experience in the language is awful.

[1] My son just got into RC planes, so of course I found myself looking at ExpressLRS radios and pulling EdgeTX from GitHub. It's an otherwise straightforward ESP32 board, and there in the app... yup, Lua everywhere.


> But everyone agrees the programming experience in the language is awful.

Simply not true. The power to weight ratio of Lua is amazing. You can keep the entire language in your head easily, and even without LuaJIT it’s crazy fast. It’s great for creating DSLs. As a configuration language it is excellent- in fact that’s how Lua originally came to exist.


DSLs and configuration languages aren't "programming experience" though. (Also that's oversold, you should be on a lisp if that's the design goal, Lua is a distant second.)

I stand by what I said. Lua sucks for coding. The only people who like it are ones who haven't mastered one of the "real" environments.


well, you could warm up to it by using vimscript first


vim9script is much more approachable while still being native to Vim's internals and idea of text editing. I don't know about using it for things like LSPs though, perhaps an expert could chime in.


It's true that Lua is very rough in many places.

But it's still ten times better than Vimscript.


I've been playing with Rust a lot in the last few weeks, and I have been pretty happy with the Rust plugins available for NeoVim. It gives me most of the features I would want from a "real" IDE, but of course it's still Vim, so all my configs and other plugins still work.

I'm convinced that the reason it's so good is because Lua is simply a better language than VimScript, making it easier to make plugins.


Vim9script is actually a great language.


Well, I missed it because I seem to have departed Vim


Ohhhh I misread, I thought you were saying you were a year away from switching, lol.


If you follow any discussions around development, it seems the chance of this happening is essentially zero. I feel that they will continue to diverge into completely different editors.


What do you predict the pros/cons of Vim vs Neovim will be?


Hard to say, but as it stands, but my view is that that the typical nvim users want Vim as a full-fledged IDE with little effort whereas Vim users still want Vim largely as a text editor. And of course there are already a whole bunch of incompatible differences between them that would only be noticed by the more "power" users I suppose.


is Teal widely used? https://github.com/teal-language/tl

Teal to lua is what typescript to javascript


No. But I've used it for Pico-8 development. I had to write a tool that turned it into mygame.tl into a mygame.p8 cart on save though.


I tried to use Teal before and had some issues even getting it to compile ... but the Lua language server actually has pretty good type checking.

Another option is https://typescripttolua.github.io/


No, but Luau (which is more of a fork) from the Roblox studio is seeing growing adoption. Notably, it was used for Alan Wake 2.


after 50 years of de-industrialization in US, it's a sad fact that US can no longer produce most of those items, yes it's totally gone. It will take a few decades to rebuild, if possible at all. For now, whatever those junks are at Amazon, there are not many options to procure them elsewhere.


You want the US to spend the next few decades retooling to ... build junk?


Build essential stuff locally, not junk of course. Or else the virtual economy can not sustain forever based on borrowing money while producing very little locally.


What is "essential stuff" to you?


well, produce own steel. Own processors, own drug precursors...


This weird demoralization has to stop. We went to the moon in less than 10 years from beginning the Apollo program. It’s less than 10 years to build a nuclear power plant on average. We deployed the COVID vaccine worldwide in less than one year. Manufacturing is not that hard. If we want to do it, we can do it and we can do it quickly.


True. The biggest impediment to increased manufacturing is the pile of onerous regulations, many of which were created by the stroke of a pen since 2008, and which can be removed by another stroke of the pen.


Do you have any substantiation for either the point that onerous regulations are the primary impediment or that most of these have been created since 2008 (by fiat or otherwise)?

It's always going to be cheaper to make things in places where labor costs and environmental responsibility expectations are low.


> It's always going to be cheaper to make things in places where labor costs and environmental responsibility expectations are low.

Yeah, offshoring was mostly about driving down costs by laundering labor and environmental law.


That's why the manufacturing companies did it. The politicians allowed it because it was meant to make the world more peaceful and prosperous. Which it did, really.


The biggest impediment is the misallocation of capital and the lack of regulations controlling corporations.


same here, one year after i got a similar letter, nothing occurred, it's really slow.


go can ship as a static exe, can't be simpler to deploy, until java has this built-in, I'll stick with go for my cross platform choice


If you're building tools that need to be deployed to machines, Go/Rust with their static binaries make a lot of sense. But for backend web services, it's hard not to go with Java imo.

fwiw - My favorite language is Rust, but Async Rust has ruined it for me.


Yeah, async Rust is needlessly difficult. I can't quite put my finger on it but having to sift through 10+ crates docs definitely left a very sour taste when I had to modernize one tokio 0.1 app to a 1.x one.

I do love Rust a lot as well but most of the time I am finding myself using either Elixir or Golang.


There's an attempt to make linux kernel threads context switching much faster (150-200us vs 2500-3000us) and if that happens, I'll really hope the rust community pivots from Async for backend development to normal threading. And if that happens, I'll happily use Rust like I used to.


it's now production ready I think, there is a book and udemy course, a demo is at https://demo.fyne.io/

wails does not have a mobile option still


I had this book, it's well written.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: