New around here? Register your SA Forums Account here!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

BobHoward posted:

tcl is ok for real short stuff but I'm frequently annoyed by it when writing longer scripts that have to manipulate data. I have to do this because xilinx tools use tcl as an embedded scripting language. there is no bridging to anything else, hope u like tcl friendo

for calibration purposes, annoyed means I often find myself wishing it had the features and documentation quality of perl

I've done an awful lot of Vivado scripting - my takeaway is that TCL is actually a p. dece language, except for the fact that it's completely unlike everything else out there.

also I'm not the biggest fan of "everything is a string" scripting languages

Poopernickel fucked around with this message at 01:32 on Oct 3, 2017

Adbot
ADBOT LOVES YOU

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Sapozhnik posted:

even java is a better scripting language than bash

if only there was some kind of java...script....yees

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Phobeste posted:

vi is built into busybox which for those of you lucky enough to not be immediately triggered is a single binary minimal Linux user space intended for embedded applications. it’s got a bunch of poo poo built in like a dash (lol) implementation and among other things a vi which when I used it didn’t have features like “undo”.

busybox's vi is trash - lots of basic things don't work (yanking, word skip, undo, etc), it's the single worst thing about the busybox userspace IMO

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Sapozhnik posted:

pretty sure all of those things work on latest busybox?

Finally busybox lets me yank it

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
Emacs gives you a lisp

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

fritz posted:

wasted years playing nethack means i got hjkl down

fucken same

did you know they released a new version last year?

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
you can play ascii on nethack.alt.org and that owns because you find other peoples' bones files

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Sapozhnik posted:

there is no useful debugger for shell scripts and the language itself is awful and full of gotchas.

you can make it work, but it is strictly worse than a great many other solutions out there (chiefly python)

Shell scripts work and are easy, sorry if you can't be bothered to learn how to string commands together bruv

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
"Oh no I can't figure how to use if statements and for-loops in a shell script, better install docker and nodejs for my deployment task"

Anybody who develops for Linux hardware knows shell scripts are easy and devastatingly common

You get them in build systems, init scripts, makefiles, script APIs in editors, CI systems, etc

They're literally everywhere because they're so simple and easy

Poopernickel fucked around with this message at 19:56 on Oct 27, 2017

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
Yes the syntax is weird and everything is string-based, but so what - it's not that hard

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Sapozhnik posted:

much like chlamydia, shell scripts can be found in all sorts of surprising places!

Embrace the clap, you'll never cure it

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
for you non shellhavers, here's your chance to heckle the man responsible:

https://blog.bluzelle.com/ask-me-anything-with-brian-fox-open-source-advisor-to-bluzelle-64749fc58b64

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Sapozhnik posted:

i use gnome to do work and it is very needs suiting

i can write code that runs on our embedded boards and other code that runs on our aws instances and test them out by running and debugging them locally on my machine, because it runs the same operating system that both of those things run.

if our original hardware designer wasn't a goddamn greybeard then our microcontrollers would also be arm based and i could develop code for that under linux too instead of having to use IAR in a windows vm

What did he stick u with? 8051s? Some kind of Z80 monstrosity? If you say AVR anything, you can totally Linux those fyi

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
I feel your pain

idk if it's any good or not, but there's a commercial-grade C compiler for the stm8 that's free as in beer and might let you do a linux: http://www.cosmic-software.com/stm8.php

with that said I've never used the STM8 so take that for what its worth


never mind, they don't do a linux except through wine

actually as i investigate more, i'm not sure? maybe email them - they're legit giving the compiler away because nobody buys it any more

Poopernickel fucked around with this message at 05:29 on Oct 30, 2017

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

its me, I'm the

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
Shell scripts would be fine, it only needs to work once

And I'd either deploy it with a Makefile or maybe ansible

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
Fucken lol

That could happen just as easily in any language though, nothing shell specific about it

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
embedded linux, ship shell scripts eery day

eery goddam day

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Condiv posted:

i thought embedded devs gave a poo poo about performance

aren't bash scripts even slower than ruby?

not too common to use bash where speed is concerned, for sure - probably you're gonna ship something with a compiled language (or a plang if you're nasty)

but it's super common to use shell scripts in the init system, and anything related to it

also it's pretty common to grant single-command sudo privileges to a user so that programs they own can run a shell script that does very specific things like "delete these 12 files and then reboot"

Poopernickel fucked around with this message at 00:21 on Nov 2, 2017

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
IMO well-written shell scripts start to fall apart around the 150 line mark, and bad ones around the 10-line mark

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Soricidus posted:

one time I replaced hundreds of lines of ksh

your problems:
- ksh
- hundreds of lines

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
if you're janitoring Makefiles also, those are 95% shell script

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
systemd is good, discuss

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

moonshine is...... posted:

i just had a linux guy tell me it's easier to manage bins that everyone on the system needs if you symlink them from a users home instead of putting them in /usr/local/bin. then when you need to remove the user you just go through the whole directory structure and sort them out and leave it on the system. because it's easier than putting it in /usr/local/bin

lolled @ this

best way I've found to solve that problem is GNU stow, which is halfway in-between a package manager and a symlink gordian knot

it works pretty well overall though, and its what I use when I need to compile and install a thing on my linux

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
its short for dank nugs, fedora

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

akadajet posted:

If you use linux you pretty much gave up on life

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
ah butterFS, the filesystem of choice for pancake eaters

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
anybody up in this sliz ever use runit (or busybox's sv/runsv)? I wanna know what works good and what doesn't

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Poopernickel posted:

anybody up in this sliz ever use runit (or busybox's sv/runsv)? I wanna know what works good and what doesn't

Cocoa Crispies posted:

that’s one of those wrapper scripts that just makes sure a service is running right?

just use the normal service thing like launchd/smf/systemd to run your poo poo

no, it's a standalone service manager (and a tiny init system) based on daemontools - more like a replacement for systemd that does a lot less stuff

Systemd is totally fine and maybe even good on the desktop, but it sucks poo poo balls for use on a cheap ARMv7 running a Yocto build. Plus my coworkers are crusty graybeards who think sysvinit is fine and just dump everything into a single rcS script attached to a single runlevel

I'm thinking of pitching the 'service manager' concept for our next major product, and runit seemed like it might be greybeard-approvable. But I wanted to figure out what would be in store for me

Poopernickel fucked around with this message at 16:08 on Jan 31, 2018

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
I'd just like to interject for a moment. What you’re referring to as Linux, is in fact, GNU/GNU/Linux, or as I’ve recently taken to calling it, GNU plus GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU Plus GNU system made useful by the GNU Plus GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX. Many computer users run a modified version of the GNU Plus GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called “GNU Plus Linux”, and many of its users are not aware that it is basically the GNU Plus GNU system, developed by the GNU Plus GNU Project. There really is a GNU Plus Linux, and these people are using it, but it is just a part of the system they use. GNU Plus Linux is the kernel: the program in the system that allocates the machine’s resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. GNU Plus Linux is normally used in combination with the GNU Plus GNU operating system: the whole system is basically GNU Plus GNU with GNU Plus Linux added, or GNU Plus GNU/GNU Plus Linux. All the so-called “GNU Plus Linux” distributions are really distributions of GNU Plus GNU/GNU Plus Linux.

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
Edgy

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
vim

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Sapozhnik posted:

i'd love to know what sort of insanely stupid trivial task those monster c++ code bases perform

sorry you apparently live in hell though

Template<template<template<template>>>
Template<template<template<template>>>
Template<template<template<template>>>
Template<template<template<template>>>
Template<template<template<template>>>
Template<template<template<template>>>
Template<template<template<template>>>
Template<template<template<template>>>
Template<template<template<template>>>

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

ratbert90 posted:

wayland refuses to let any graphical app run as root. This is by design and there’s no way around it or to turn it off. :allears:

how do things like gparted or synaptic run?

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
systemd is a good init system/service manager bundled with a shitload of terrible things that don't belong in either

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

hifi posted:

why didnt the girl from goofy movie turn hordes of teens into insane furries like lola bunny did (i know the answer)

reasonable answers:
1. max's girlfriend in goofy movie doesn't have a tail, furries are into that poo poo
2. goofy movie came out before the internet Was A Thing, and I'm pretty sure the internet invented furries
3. something something dolan

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

Cocoa Crispies posted:

4. nobody watched the goofy movie

oh yeah that too

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

bssoil posted:

So, uh, anyone know what happens if you have set up a vm that is your real hard drive, and you are running Fedora and want to run an installed windows on another partition, but don't get to grub in your vm in time and accidentally start up Fedora, which you are currently running?

<inception horn>

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
what happens though, for real?

Adbot
ADBOT LOVES YOU

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
Install gentoo

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply