60 karma · joined Jul 27, 2012 (14y ago) · 28 submissions
comment 3w ago · link · parent
It would be great if you had a simple website that allowed you to enter SOML and see the JSON side-by-side (similar to typescript playground https://www.typescriptlang.org/play/).
3.
Show HN: Use macOS shortcuts on Windows(shafqat.dev ↗)
2 points · by priomsrb · 1mo ago · discuss
comment 3y ago · link · parent
comment 4y ago · link · parent
- 5ms network latency
- 2ms display latency (includes decoding + vsync latency)
I'm assuming that the mouse/keyboard can begin processing as soon as the network call is done. If true that's about 5ms.
Keep in mind that different mice vary in their latency. Even wired mice can vary from 1.5ms to more than 25ms in click latency [1]. So if you use a low latency mouse over the network, it could be faster than some mice that are plugged in directly.
comment 4y ago · link · parent
I have my gaming PC in another room and stream it to my laptop using Nvidia's GameStream and Moonlight. I run it at 1440p with 120fps. With everything connected via ethernet, I get an end-to-end latency of 7ms. This means my stream is only just 1 frame behind the PC.
I use this setup for fast-paced games as well as regular PC usage. 99% of the time, I can't tell that it's a remote stream.
The advantages of the setup are:
1. Don't have to deal with the heat and noise of my gaming PC being in my room.
2. Switching between my laptop and gaming PC is faster than using a hardware KVM switch.
3. I can easily stream games or use my PC remotely with tablets and phones.
Disadvantages are:
1. Gamestream and Moonlight don't support streaming dual screens at once.
2. Gsync doesn't work over streaming. So lower frame rates (< 60fps) aren't as smooth as native.
comment 6y ago · link · parent
Part of conveying information should be about making the information easy to digest. Sometimes a spreadsheet fits that bill. Other times a crafted UI works better.
comment 6y ago · link · parent
I agree that VSCode is unlikely to reach the level of emacs in terms of being a fully programmable environment. But what it does offer is an easy and modern out-of-the-box experience.
15.
Show HN: Trigger and Await for the Shell(github.com ↗)
2 points · by priomsrb · 7y ago · discuss
comment 8y ago · link · parent
(Disclaimer: I am the author of vimswitch)
comment 10y ago · link · parent
wget https://bit.ly/vimswitch && chmod +x vimswitch
./vimswitch priomsrb
This gives me my vim config along with all my plugins.Disclaimer: I am the developer of VimSwitch
comment 11y ago · link · parent
It would be interesting to know what compression algorithms work well for this kind of application. One example I can think of is Run Length Encoding. Or perhaps an algorithm that is trained on example datasets and finds bit patterns that repeat often.
comment 12y ago · link · parent
# log into production server
$ vimswitch priomsrb/vimrc
# -- work --
$ vimswitch default
$ logout
This puts vim back into it's original state for the next person who logs in.In future versions I hope to make the above workflow even simpler:
# log in to production server
$ vimswitch --launch priomsrb/vimrc
# log out
The --launch command will launch vim with your settings without altering the home directory.comment 14y ago · link · parent
To me the IDE features make up for the minor annoyances of using vi/vim emulation.
comment 14y ago · link · parent
This approach would be better because there will be a single effort rather than each editor writing its own vi/vim mode. Also when a new feature is added to the engine it would be available on all editors.