SkillsC, C++, Haskell, SML, Twelf, Erlang, F#, Python, Rust, SystemVerilog, Bluespec
LocationIndia / USA
Joined devRant on 9/14/2017
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
AAARGH ELECTRON IS SO FUCKING...decently pleasant to use?
So I've been working on a FPGA based synthesizer on a Xilinx Arty A7 board (that little Artix 35T chip is surprisingly capable), and since I hate typing commands into a serial stream for anything even decently complex just like any sane person should, I needed something to build a UI for controlling it and other synth projects while I make the Eurorack compatible enclosure and knobs and stuff. I chose Electron because they said it was simple and easy to make cool looking stuff, fast.
And they were right. In like two hours, with Electron and p5.js, starting from zero since I don't know jack about frontend, I had a pretty nice UI driving the hardware synth and effects modules. Not bad. I should use this more often.12
Spent an hour trying to optimize some code but none of the stuff I was trying (rearranging/overlapping DMA transfers with other stuff for some ye olde concurrency) seemed to be doing anything.
Aaand obviously the stupid thing was set to autobuild Debug config on save but I was testing Release config. Sigh.1
*windows update gets stuck on a black screen*
MOTHERFUCKING WIND-oh wait it rolled back the update and booted fine on its own.
Gotta hand it to whoever at Microsoft implemented this, was smooth af.5
Any recommendations for a terminal app for iPad? I only need it to ssh into Linux servers and run stuff/vim/htop/etc., don't really care about fancy features or local device access. Good performance and security would be pluses. I don't mind paying if it's worth it. Coming from Termux on Android the ones I've tried so far (Termius, Shelly, LibTerm) have felt pretty crap so far, though I guess Shelly is the best one out of them.1
When working with hardware some mistakes can be literally painful. Thankfully this was all during undergrad and I'm only around computer hardware now lol.
>Misprogrammed a software kill switch so a sensor that should not have been sending data was actually sending data which caused the system to activate a piston that went WHAM! into the face of a teammate working on replacing some part of it...
>Misprogrammed a controller so it drew too much power from the supply and the puny supply wires literally burst into flame and fell across my arm.
>Spun a 9000rpm CNC spindle the wrong way and caused an attached screw to go rocketing upwards instead of downwards and almost break the (pretty expensive) thing (uh...we were trying to use it as a power screwdriver essentially but I set the rpm to about 100x what I wanted and the direction wrong so yeah).
>Switched a -1 with a +1 in a robot's control system sending it careening into a teammate's leg... let's just say mecanum wheels are paaaainful.11
pyparsing is fucking awesome and so pleasant to use. This is coming from an attoparsec enthusiast.
Any recommendations for a $100 or so mechanical keyboard, a bit on the quieter side? I used a Cherry MX Blue board back at home and while it felt great, it's not going to fly in my current environment, so I'm looking at reds or browns (I do game a fair bit so reds are okay too, but would prefer browns, hopefully they're quiet enough).
Perhaps not a full sized one, maybe tenkeyless or something. I've been eyeing the Ducky One 2 Horizon mini, love the colours and it looks pretty much exactly like what I want, but I'd like to see what you guys think.
(I would like to build one but don't have the time)
Location: the US4
Apart from the usuals like K&R, John McCarthy, Simon Peyton-Jones, Joe Armstrong, Bjarne Stroustroup, and so on, I'd like to mention one more, sort of different from the rest.
He started Blender and oversaw its crowdfunded release as an open source project (look it up, it's pretty cool), provides excellent leadership at the Blender Foundation, is a crack programmer, very nice dude and down to earth. His leadership, vision, and handling of Blender's growth as FOSS software and artist-focused DCC tool is amazing. He might not be the brains behind Blender's technical advances all that much (now) but he's a great example of what one can do for software beyond just programming.
GhostBSD is a pretty nice try at an out-of-the-box BSD experience. Almost everything works fine on my laptop, the only issues so far being screen tearing in Firefox and flaky WiFi (what else, this is a *nix after all).
Check it out if you're interested in trying a BSD without a lot of config headache.
(That said OpenBSD is still my favourite)
Anyone here uses System76 laptops? How was your experience with the company and the product? I'm asking about the Galago Pro specifically but even general information would be nice, thanks.6
The AMD song, to the tune of Sam Riegel's DnD Beyond jingle:
You got the perfect casing
Its drive bays and supplies
But you need something to run your stuff
Cause you're late for that deadline
You click open a web page
You've heard about Phoronix test suite
And now you see a red company rise
In a field of blue and green
It's AMD! (AMD)
Yeah! AMD Radeon!
Yeah! AMD! (AMD)
Yeah! AMD Radeon!
You've got your motherboard
You've got your processors
And you've got Socket AM4!
It's AMD (AMD)
Ranters in the US, do y'all want to try to organize a meetup? I'll be visiting the US in a while (hopefully, that is), so not anytime soon, but maybe we can at least form a group and discuss possible opportunities.14
Spent a few hours wrestling with AMD ROCm to get it working. Had to change my kernel a few times, install different versions of the rocm packages, and in one case selectively upgrade a package. I also need to run my programs with a few shady environment variable exports to work around some bugs. The whole thing looks shaky right now, nowhere near as simple as CUDA. Also, horrid names (seriously AMD, what's with the 3dgy names).
However once I got it working it works pretty well, happily training stuff via tensorflow-rocm, with decent performance. This is also probably a good project to contribute to, I'm nowhere close to AMD's engineers at this stuff but basic bug fixing and quality of life stuff are probably within reach.3
It's kinda cool how a $5 VPS (Linode Nanode) is able to run a vanilla Minecraft Spigot server for like 6-7 people and still can serve some basic stuff just fine. I get monitoring warnings about >90% CPU usage sometimes, but everything is more or less lagless.
Time to try hosting some other games: CS1.6, Doom Classic, and UT2004 up next.6
Overall, pretty good actually compared to the alternatives, which is why there's so much competition for dev jobs.
On the nastier end of things you have the outsourcing pools, companies which regularly try to outbid each other to get a contract from an external (usually foreign) company at the lowest price possible. These folks are underpaid and overworked with absolutely terrible work culture, but there are many, many worse things they could be doing in terms of effort vs monetary return (personal experience: equally experienced animator has more work and is paid less). And forget everything about focus on quality and personal development, these companies are here to make quick money by just somehow doing what the client wants, I'm guessing quite a few of you have experienced that :p
Startups are a mixed bag, like they are pretty much everywhere in the world. You have the income tax fronts which have zero work, the slave driver bossman ones, the dumpster fires; but also really good ones with secure funding, nice management, and cool work culture (and cool work, some of my friends work at robotics startups and they do some pretty heavy shit).
Government agencies are also a mixed bag, they're secure with low-ish pay but usually don't have much or very exciting work, and the stuff they turn out is usually sub-par because of bad management and no drive from higher-ups.
Big corporates are pretty cool, they pay very well, have meaningful(?) work, and good work culture, and they're better managed in general than the other categories. A lot of people aim for these because of the pay, stability, networking, and resume building. Some people also use them as stepping stones to apply for courses abroad.
Research work is pretty disappointing overall, the projects here usually lack some combination of funding, facilities, and ambition; but occasionally you come across people doing really cool stuff so eh.
There's a fair amount of competition for all of these categories, so students spend an inordinate amount of time on stuff like competitive programming which a lot of companies use for hiring because of the volume of candidates.
All this is from my experience and my friends', YMMV.1
How do you guys prefer to hide the API keys you use in your (native) Android apps?
I'm an Android noob and the app I'm building uses some NLP services which are accessed through a key. I searched around and found a few techniques (obfuscation, serverside storage, etc.), just wanted to know what you folks recommend.5
Is a used ThinkPad T440/440s (or T430) worth it right now? Assume that it's powerful enough to run whatever I need, and weight isn't really a concern because it's going to spend most of the time sitting on a desk or in the library where the extended battery will come in handy.
I'm eyeing it because build quality and keyboard, and because I can get one for a pretty good price (if I buy a new laptop at the same price I'll get a shitty celeron or low end i3 based thing)3
I think I may be ending my distro hopping here (for a while anyway). Linux Lite looks pretty good, seems stable, isn't bloated af, works good OOTB (finally, a distro other than Ubuntu in which WiFi works just fine), and is decently hackable. I've been using it on and off for a bit, finally replaced Manjaro with it.8
Anyone else excited about the Pinebook Pro? It looks exactly like what I've been wanting in a cheap laptop for carrying around - an ARM based Linux laptop that has decently usable specs (unlike the original Pinebook).1
Why the actual fuck would you #define function calls into value-like things?!
Found when exploring the example code for some Chinese company's display module.12
Opinions on the current gen iPad mini/air (apart from "reeeee Apple")? iPad 4 was a brilliant device, loved it, looking for a similar thing. Can't find any decent Android tablet and honestly, not sure if I want Android at all.
I basically want a companion device with superb battery life, a larger screen than my phone, and good and useful apps (used Garageband, Magellan, and Voice Synth quite a bit on the old iPad). Will be going to college in a few months so something useful for carrying around too that's more portable than my laptop.
Considered a Celeron laptop, but it's basically useless for anything but text editing and basic browsing.9
Unexpected downside to studying/having an interest in computer graphics - it's not that widespread a field so not many of the books have local editions. Which means I need to spend like $60+ for the good books (Real-time Rendering, Physically Based Rendering, etc.) (and sometimes international shipping too), which is a pretty large amount for a student here. It's sad because local editions of technical books rarely go above $20 (heck, above $15 is rare too).
Still worth it though, those books are easily good enough that the return on investment in knowledge/future prospects will be massive (highly recommend those two if you're into graphics btw, two of the best technical books I have).6
I play guitar so...
Sticker was given to me by @ceee, who seems to have an endless supply of them.8
Got a Radeon RX 570 to complete my light gaming and rendering setup. This is easily the most powerful GPU I have ever owned, super hyped to try out all my games on this now. Works great after it crashed under Linux a few times for god knows what reasons but hey, not disappointed at all so far.
All AMD setup here (Ryzen + Radeon), feels good to be back on AMD after a long Intel/Nvidia stint.10
So I gave i3 a try today via Manjaro i3 (don't have time to get a config of my own from scratch, would rather have a working setup which I can fiddle around with).
It's pretty...good actually. Doesn't work quite as well as I'd hoped because of my laptop's small screen, but still nice. Works well with my Blender and editing workflow too, so that's a plus.
After I'd spent an hour fixing audio and WiFi issues, of course, because Linux, but then that's just part of the fun amirite4