Better HN
topnewbestaskshowjobs
Log inSign up

usrbinbash

4,687 karma · joined Dec 4, 2021 (4y ago) · 1,693 submissions

Submissions

comment 4y ago · link · parent

Am I the only one who doesn't see the point of typescript?

It's still JavaScript, all it does is making the code more verbose and catch some really trivial errors at "compile"-time (transpile != compile), which can be checked by much easier and more general approaches, aka. code discipline, proper design and avoiding code smells.

comment 4y ago · link · parent

I try to set myself a fixed number of pages I manage to crunch per day. 20 is a good place to start.

And then I read them whenever I can, including train, toilet, waiting, etc.

comment 4y ago · link · parent

>companies are highly willing and able to pay for software and services that accelerate the companies' goals.

The are also willing to buy things and keep everyone else from using them.

comment 4y ago · link · parent

> Most importantly, the creation of metaverse would solve the consumption part of the equation beyond transportation.

Will people eat less meat because of the metaverse? No.

Will people be happy with "virtual travel" as a substitute for actually visiting places? "Hey guys, look at these cool screenshots of my avatar in the virtual Desert! Hello? Anyone? No? Okay..."

Will peoples homes require less energy if we all stay at home all the time? No. In fact they will require more: AC, heating, lights, and all these VR devices which are suddenly online 24/7...

Also, work-in-VR may be possible if one is in design, management, or as a coder, etc. ... but blue collar workers will still need to get to the their factories, construction sites, supermarkets, etc.; as will doctors, nurses, hairdressers, cleaning personnel, delivery people, technicians, security personnel, ... aka. all the people who actually keep the system going.

comment 4y ago · link · parent

Have you tried Fyne?

https://github.com/fyne-io/fyne

comment 4y ago · link · parent

So I pipe their output into a file, or into a logger engine. Problem solved.

comment 4y ago · link · parent

>which is often the only thing that one really needs)

    tail 1_gb_of.txt
...will get the last line of output long before the rendering engine finished initializing. And it will probably do so even on a 10year old laptop with no GPU, in virtual console, while the system is running under load ;-)

comment 4y ago · link · parent

What's much worse: These popups have basically trained the average user to simply click the biggest, most colorful button with "OK" | "Accept All" on it, whenever something suddenly pops up on a website.

This is what happens when politicians, completely divorced from technical realities design "solutions" to something...

comment 4y ago · link · parent

>Any millisecond that you spend blocking on outputting your terminal is time that your build can't take.

Many Build tools don't just pipe the output of every program to their own STDOUT, but redirect them to a logger, which usually runs asyncronously, so from the PoV of the compiler, its output is processed without delay.

Secondly, if I know that the build produces a huge amount of output, I redirect it to a file instead. If I don't know the first time, I interrupt, correct my command and re-build.

comment 4y ago · link · parent

So then I hit Ctrl-C and issue the correct command. How does a GPU based renderer improve on that use-case?

comment 4y ago · link · parent

And when do I want to `cat` 1GiB of text?

I cannot process it with my human eyes, so what does it matter if the CPU rendering can keep up or not?

    cat 1_gb_of.txt | less
Is what I want to do, and this is easily rendered even on older hardware.

comment 4y ago · link · parent

> In both cases, you'll want to have your terminal to be responsive again as soon as possible.

My terminal emulator doesn't become unresponsive just because the renderer cannot keep up. It still processes input, so if I accidentially

    cat some-linux-distro-1of4.iso
...I can still Ctrl-C it and stop the process.

> it doesn't interrupt other applications.

It can't do that anyway in an environment that does preemptive multitasking.

comment 4y ago · link · parent

And what exactly is the use case for this?

If I want to work with images, animations, etc. I use a GUI library. These in turn already use hardware accelerated rendering.

And I already have powerful, optimized, tested, reliable software that enables me to work with terminal and GUI functionality side by side; the DESKTOP ENVIRONMENT.

comment 4y ago · link · parent

But what's the use case for this?

When do I actually need to DISPLAY megabytes worth of output as lag-free as possible on a terminal?

There is no way for the intended recipient of displayed information (aka. the user) to process any of it, so what's the point of eliminating lag?

comment 4y ago · link · parent

> until you accidentally unleash a lot of output at once

The only time this happens, is when I do something wrong, like `cat`-ing the 12MB binary instead of the config.json, or `tail -f` into the output device of the core logging endpoint and forget to pipe into `grep`.

If that happens, I usually terminate the process anyway.

comment 4y ago · link · parent

> While VLC had so many options for nothing I'd need.

This has next to zero impact on its performance, as the ncurses player talks exactly to the parts of libVLC it has to.

>Instantly. Sometimes on even older systems than yours. With probably less RAM. Say 8GB, with something booted from USB, running 'live', so only 7GB, no SWAP.

The system I tested this on has 4GiB of RAM. And I have used `VLC -I ncurses` from live systems-on-a-stick as well. It runs before my finger leaves the ENTER key, same as mpv.

> Maybe you compiled yours with all the bells&whistles which aren't needed for sufficient local playback?

I'd be happy to repeat the measurement with different settings.

comment 4y ago · link · parent

How can I use my keyboard in VR?

There are only 2 options:

Either I see the keyboard through some sort of passthrough, in which case the entire VR experience is basically just an overly expensive desktop background.

Or the keyboard is replaced by a VR representation, which relies on the device knowing where the keyboard is. Obviously, that will require a special keyboard with IR markers, so good bye custom keyboard, good bye laptop keyboard.

Oh, and I cannot see my hand movements on it, which kinda defeats the purpose of seeing the keyboard, because current hand tracking technology cannot keep up.

Neither of these offer me any benefit over the cheaper, easier and functional technology that I am using right now.

comment 4y ago · link · parent

> You can place that in any kind of environment you find comfortable working in.

That's exactly what I did with my 4 high resolution monitors. And my current setup even lets me go to the kitchen to make a really tasty espresso or a snack without having to disentangle myself from a headset first. And I can even continue to listen to the music from my speakers while sipping aforementioned coffee.

>If it means 4 screens on the balcony of a Tuscan villa instead of a tiny desk in a depressing space? Maybe.

But they still feel the tiny desk in front of them, and still see it through the mentioned "keyboard window", still hear the janitor vacuuming his merry way down the hallway.

So essentially, this would be a desktop background, which costs 400$ and requires recharging a headset every 2h.

> What about if it's a 100g headset

Then they better start making meetings REALLY short, unless they want the battery go flat halfway through the second slide.

> The benefits for shared movies, group gatherings, co-working, and social gaming are very compelling.

Shared movies: big screen + streaming + comfy couch

Group Gatherings: until such time as VirtualReality figures out how to get me an ActualReality beverage, I pass.

Co-Working: Teams/Zoom/etc.

Social Gaming: Already possible, metaverse not required.

comment 4y ago · link · parent

Nothing is stopping me from writing a google-ASR powered program hooked into my terminal, and start yelling my code into the computer either.

But as long as this isn't faster, easier or more reliable than typing it on a keyboard, I won't.

People don't work a certain way because it's possible. People work a certain way because it saves time, money, sanity, or simply because it's convenient.

If wearing a VR headset while coding isn't providing substantial benefits over what my current system provides, why would I do it?

comment 4y ago · link · parent

The difference: It's not up to the companies in most of western Europe. These services are guaranteed by law, and provided by the state.

>but increased savings from increased salary can make up for that (not to mention 401k).

And huge medical bills can quickly eat up even substantial savings...that doesn't happen as easily when medical services are provided by universal coverage.

Also, state guaranteed pensions aren't lost if some company in a portfolio crashes.

comment 4y ago · link · parent

Not to mention the person in Berlin has access to state funded medical support, a state funded pension, paid sick leave, paid ma/paternity leave, ...

Salaries are lower, but expenses for essential services are simply A LOT less in most of Europe.

comment 4y ago · link · parent

>But! Maintainers need to be legible to the big company department that approves and processes those invoices.

I imagine this could be a hard sell to people who just want to build some cool software and maintain it. Setting up an account, okay, that may be possible, but that's not the end of it. Companies pay invoices FOR something. That something means contracts, potentially about substantial sums, that means getting legal support to navigate said contracts & obligations.

comment 4y ago · link · parent

   export EDITOR="vim"
Done. I now have my favorite editor set up to write commit messages. And yes, vim is aware of first-line-character limit, does syntax highlighting of commit messages, and can deal with emojis.

comment 4y ago · link · parent

What if I don't want an overlay but actual VR? Goodbye prism-projection, hello splitlense-screen and all the form restrictions to the device that brings with it.

Besides, the hardware doesn't get much smaller than it is. The chips are not the problem, the problem is the power supply.

We have already reached a limit for phones, and that only because advertising somehow managed to convince people that it's okay for one of their most important personal electronic devices to go flat in less than a day (quick reminder that mobile phones used to last 4-5 without recharging ;-) )

So, what do we do? Put super small Li-Ion batteries into our "metaverse" devices? Not much of an immersive experience if the thing goes down after 20 minutes. So, big heavy battery it is then, and that's that about slim, cool, SciFi VR glasses.

And what about input? Displaying information is not enough, the whole thing is supposed to be interactive. Voice control only gets you so far, and is unsuitable for most interesting things we want to do (virtual keyboards, games, movement, etc.), not to mention it's not even possible in most scenarios without being permanently online to contact the ASR service (oh, did I mention that the WiFi and LTE/5G modules also gobble up power like noones business?).

So it's not just the headset, I also need an input device, or rather 2.

comment 4y ago · link · parent

> If I could have a virtual workspace that rivaled 4k monitors and brought my real keyboard / mouse into the VR world

IF that happens, and IF the input devices are not weighty headsets, and IF they offer the same level of haptic feedback, count me in.

comment 4y ago · link · parent

But these mass-market applications all have one thing in common:

They are games. What's more, most of them are rather simple games, and their only novelty is the IO device they were designed for.

This is a far far far cry from the supposed applications promised by the "metaverse" clamor as a place to do serious work and basically spend a substantial portion of our lives in.

Is it cool that I can put on a headset and hunt some robots in VR, aiming with my hands and dodging stuff by moving around? Absolutely! Is it cool that this is possible wo. being connected to a computer because the headset itself is so powerful? Undeniably!

Is it cool that these devices are becoming actually affordable for the masses, and easy&intuitive to use on top if that? Hell yeah!

But the technological & societal revolution that "metaverse" is presented as? Not by a long shot.

comment 4y ago · link · parent

Thanks, looks like an interesting project, will definitely keep it on my radar.

However, after compiling it and measuring it on an older machine (a Lenovo T430 running Arch) against the out-of-the-box vlc install, I can see no advantage in memory footprint or cpu usage, they are about the same. (I compared mvp running in terminal against vlc running with ncurses interface module)

Since mpv doesn't offer an ncurses interface, and is still in development, I will, for now, stick with vlc.

However, the scripting options definitely seem great, as I said i will keep it on my radar.

comment 4y ago · link · parent

That depends entirely on the use case and the user.

I have the choice of many many many text editors and IDEs to manage my source code.

What do I use? vim. In a terminal(-emulator).

Why? Because I like my editor to be ready the moment my finger leaves the ENTER key, I like direct interoperability with the terminal, I like that I can hack together even the most absurd things in .vimrc, and I like that I have the same editor with the same settings on all servers I take care of, even when I connect to them via ssh.

I also use vlc for playing audio and video. Are there players that have a more edge UX? Sure. Do they come with builtin-full support for almost all formats, have a tiny memory footprint, can be used to convert stuff, don't spy on me and can be controlled via a terminal (hello ncurses mode!)? Nope.

comment 4y ago · link · parent

Not really, because there is always a high demand for good software. Just because cookware nowadays is usually made from cheap, industrially pressed sheet metal, doesn't mean high-quality copper and cast-iron cookware is no longer made.
1
5354555657