[ prog / sol / mona ]

prog


 

Mahou Gengo Lyrical ☆ Lisp

1 2024-11-23 04:22

Someone needs to translate this ASAP...
https://vndb.org/v7754

2


VIP:

do not edit these



 

What shell do you use?

1 2021-10-12 12:07

I am thinking of using Dash because it is less bloated than other shells in the Bourne shell family (e.g. Bash and zsh).

251

52 2024-09-21 18:33

Rash: The Reckless Racket Shell
https://rash-lang.org

53 2024-10-14 08:13

PowerShell is kind of interesting. I'm still very new,. Are you interested in trying it: https://books.goalkicker.com/PowerShellBook/

# help system
Update-Help -ErrorAction Continue
help Get-Process   # alias for Get-Help foobar | more
Get-Help -examples Out-GridView
Get-Process | Get-Member  # pipe object, not text
Get-Command *json*  # which commands contain "json"?
Get-alias select
Get-Verb
Show-Command Get-Process  # open a GUI for command

# List processes without active windows.
# it's formatted in a GUI table thing.
# You could also use Format-Table or Format-List
#
# let's checks if mainWindowTitle property for each process is $null and select those objects:
Get-Process | Where-Object -EQ -value $null  {$_.mainWindowTitle} | Out-GridView

# who is using up teh RAM?
Get-Process | Sort-Object -Property WS | Select-Object -Last 5

# calculate file checksum
Get-FileHash gentoo.iso

# find new files added in the last 7 days
Get-ChildItem -Path Downloads -Recurse | Where-Object CreationTime -gt (Get-Date).AddDays(-7)

# find large files, convert size to MB with 2 decimal places, sort by the new "Size (MB)" property and format as table
Get-ChildItem -Path Downloads -Recurse | Where-Object { $_.Length -gt 255MB } | Select-Object FullName, @{Name="Size (MB)"; Expression={ [math]::Round(($_.Length / 1MB), 2) }} | Sort-Object -Property "Size (MB)" | Format-Table
54 2024-10-31 16:39

IM A FAT NIGGER BTW

55 2024-11-12 13:53 *

>>25

if you are crazy enough, you could set Emacs as your login shell?

EXWM

56 2024-11-22 16:56

Fish, because it has the best default settings.

57


VIP:

do not edit these



 

Do people learn Lisp to feel smart?

1 2021-09-11 15:23

What motivates people to learn and use Lisp? Do they do it for an ego boost? e.g. I've learned Lisp ... I'm enlightened (unlike all the ignorant programmers out there) ... I'm so smart ... I'm better than other people!

223

24 2024-08-16 21:51

I learned Clojure because I wanted
- a functional language that helps me write code with less bugs
- runs on a lot of different platforms
- has a good standard library

25 2024-08-17 08:40

If that was the goal, they would be better off learning Python. Learning Lisp will make you feel dumb; it's a very humbling experience.

26 2024-08-19 09:45

What if Lisp and Lisp-like languages are simply better or more enjoyable than most other programming languages? The core features of Lisp or Scheme are also very simple. Common Lisp spec is frozen so your all programs just work. Some languages keep on breaking old code. But this doesn't mean that Common Lisp is obsolete because you can extend it and new useful features that are integrated seamlessly with the rest of language.

I haven't used any other programming language that's as coherent as Common Lisp or Scheme. Because of this (and the fact that Lisp syntax is same for almost everything), Common Lisp and Scheme tends to have less mental overhead than many other languages.

27 2024-08-24 14:49

Lisp is for wizards.

28 2024-11-22 16:16

I learned Clojure because I wanted a functional programming language that I could use for making websites.

Before switching to Clojure I tried using JS with a bunch of functional programming packages, but it was very unergonomic and cumbersome.

29


VIP:

do not edit these



 

Next Big Tech Hype

1 2024-09-12 09:38

So we already had
* AI bubble strawberry counting edition
* Video games bubble, covid edition
* Electric cars and associated paraphernalia
* Drone bubble
* Blockchain (kinda over)
* Linux
* DotCom bubble
* PC bubble
* AI bubble electric boogaloo edition
* Video Games crash
* AI bubble

whats next?

I suggest some air drone delivery services bubble, driven by the shoplifting and flashmob looting. Had I been Amazon, I would be organizing these niggers to loot more local stores.

230

31 2024-11-09 01:24

security is a bubble because it rides on the bubble of mounting complexity brought by the self-sustaining superstructure of programmers giving themselves work by stacking "features" and rolling releases so that somewhat old versions of perfectly good working hardware become obsolete so you have to UPGRADE and buy the smartest smartphone if you want to keep running essential apps.

32 2024-11-09 01:24

>>31
s/smartest/latest/

33 2024-11-10 00:32

latest bubble is jumping on linux because windows 11 ai bad

34 2024-11-10 12:33

>>33
"Apple Removes Ability to Run Unsigned Apps in macOS 15.1"
https://news.ycombinator.com/item?id=42032444

35 2024-11-20 15:45

>>34
was a bug. hopefully not an A/B test.

36


VIP:

do not edit these



 

Do you guys use pen and paper to write code?

1 2024-02-20 16:34

You guys usually use pen and paper to write and study code before punching the keys into the screen, right?

244

45 2024-11-09 01:25

>>43

I don't get flowcharts either, but I find statecharts very useful for µC programming.

https://statecharts.dev/

46 2024-11-12 13:48 *

What do you people think about mindmaps?

47 2024-11-16 00:08

>>46
Cool stuff. It gets a lot of data and knowledge onto a single space and then connects them in logical ways.

48 2024-11-16 09:34

before smartphones were ubiquitous I used to do this sometimes. Now I just type my notes into emacs on my phone.

49 2024-11-19 09:37

I don't program, I'm only here for the SICP yuri fanfics.

50


VIP:

do not edit these



 

What good i2p places are?

1 2023-01-06 09:08

Give me some links, where are all the chuds
bitchan.i2p - i know, what else?

2

3 2023-01-06 15:56 *

It's been ages since I last used it. I used to download close to everything from the torrent tracker to "help the network". I came across some very fine metal albums this way.

4 2023-01-07 02:14

I'd recommend kycklingar.i2p but the eepsite seems to be down
You can always browse zzz.i2p for some neat technical discussion
legwork.i2p is the best search engine IMO but it's a bit unstable compared to i2psearch.i2p

5 2023-01-07 02:16

>>4
I should also mention 3chv2.i2p but I don't use it much, only really know it's another imageboard like bitchan

6 2024-11-18 17:27

Current i2p checksums are mixed up!

from their official website (Linux .jar):
== ea3872af06f7a147c1ca84f8e8218541963da6ad97e30e1d8f7a71504e4b0cee ==

calculated from my downloads folder:

d70ee549b05e58ded4b75540bbc264a65bdfaea848ba72631f7d8abce3e3d67a  Downloads/i2pinstall_2.7.0.jar
ea3872af06f7a147c1ca84f8e8218541963da6ad97e30e1d8f7a71504e4b0cee  Downloads/i2pinstall_2.7.0_windows.exe
7 2024-11-22 07:33 *

>>6
they fixed it.

8


VIP:

do not edit these



 

Docker advocates? anyone? Enlighten me.

1 2024-11-09 21:54

Can you evangelise Docker to me?

I don't get it, it seems dead. Why people keep copulating dead corpse of Kubernetes?!

When docker just arrived >+10yrs ago, I was like: wow, light weight lightspeed vm`s, nice!

but now I feel pain & frustration :::
- whole big rebranding split of community\enterprise\desktop pay for win versions + ... vm (?!) which was unavoidale and was ultimate solution from the beginning.
- can't easy install & run rootless without hustle
- we can simply use lxc or other light weight containers
- everyone enforcing podman or rkt or some their own new sh1t as replacement
- can't offer secure protection from running untrusted malware code
- docker seems good if we build apps from 0, but when it came to just running instalation of some 3rd party server app proprietary binary - it failed.
- used wrongly for wrong reasons as package system or build system isolation
- nixos replaces case above ^
- just use lightweight vm, Cloud on demand as a Service.

Maybe I'm dumb, and don't get geniuses who pay & earn 10k/mo with Kubernetes? Elaborate.

2

3 2024-11-10 13:44

Also, docker has very convenient UX. You can download, configure & run any container with just one command. Compare with virtualbox or qemu. You can say that docker is like flatpak for servers.

Plus, its isolation helps against dumb bugs in shitty software you just wanted to run once, e.g. [1]. I'm not talking about security here, only dumb bugs.

[1]: https://github.com/ValveSoftware/steam-for-linux/issues/3671

4 2024-11-10 16:13

way to check the system for known CVEs

how do you usually check, what tools you use?

can you recommmend good FLOSS scaner + antivirus, with fastest regular crowd contributed updates?

antivirus alone doesn't fix or protect from arbitrary code expoiting CVE.

clamAV if even with recent signatures doesn't detect unix (or crossplatform) badware.

----------------
2c

1 in nixpkgs you supposed to read, audit code yourself, trust build intstruction, hash demonstrates build reproducibility. But there are other specific designated tools out there for reproducible builds other that nix.

2 in theory nothing prevents you to run offline customized CVE scan script, just get and compare installed versions vs vulnerable. + optional exploit check via nix-env .

5 2024-11-11 20:41

I like Guix because it uses Scheme.

6 2024-11-12 23:28

>>5

Did you migrate from NixOS? I'm considering it and am looking for stories from the frontlines.

7 2024-11-16 07:47

>>6
From a practical point of view, they're equivalent. From a stylistic point of view, customizing your packaging system is easy with the power of Guile. I am a fan of Scheme and it's cool to manipulate Guix to do little things that it wasn't explicitly programmed to do.

8


VIP:

do not edit these



 

YAML what is this shit?

1 2024-06-06 10:21

There are people using that to store data?

28

9 2024-11-11 20:42

Why not use S-expressions instead?

10 2024-11-12 13:46 *

>>9 Because there are no tools that understand sexps. It's a chicken-and-egg problem.

11 2024-11-12 19:58

Chicken understands sexps: https://www.call-cc.org/

12 2024-11-12 23:26 *

>>11 I meant DevOps tools.

13 2024-11-15 23:59

>>10
You can write all the S-exp tools you want using Lisp.

14


VIP:

do not edit these



 

Lisp advantages over Python/Ruby/Perl/Js/PHP .. other dynamic langs

1 2024-10-17 13:50

I kno I'm risking to get 403'd for this thread, from textboarder Scheme tsar, but YOLO, I've been 403'd so many times I have no hope to stay here & might leave this place (so I may just leave & become friends with feds), so this could be my last thread here, I really want to know

So I just noticed this board focused primarily on Lithp derrived family of langs

I mainly been writing in dynamic langs whole my life, and I've seen your infiltration psy-op squadron on Hackernews & everywhere all over the internet brainwhashing me to learn Lisp, with Ritch Hickey & other more mature 'programming uncles' prophets, evangelists earning gazillions of USD from Oracle.

Is there any practical serious benefit for me ($INSERTDYNLANGNAME)ist to not just learn but actually USE Lisp in my day to day projects, life???

I've tried Dereck Banas yt tutorial & a bit of SICP, made Hanoi Towers, and seen some of MIT video lectures Sus man & Abelson ... It has not done miracles to me idk why, I can't grasp Lithp magic or what's so lovely about it that I'll feel the need that'll must use it everyday everythere.

Lisp kind of may be cool in comparison to C C++ Java 1.4 ... but for person using ruby/python/js I don't see benefits of ditching them for Lisp.

The most oversold overhyped biggest selling feature is Metaprogramming with macro. Well, maybe it does feel slightly more natural do do that in Lisp, write DSLs, define own syntax, or write code that generates code, since everything is a List. But I can do SAME, ALL of THIS & everything in Python AST. I can parse it, I can make DSL, define new syntax, new operators, generate code, eval it on the fly.
So why you keep telling me in my face & insisting me that Lisp is better & I have to use it?

Is it me being stupid here, not grasping some aspects of Lisp, or you trying to justify 50k annual spend on your Comp Sci degree by telling everyone what to do?

27

8 2024-10-24 12:53 *

I know about Carp, and some low level dialects of Lisp/Scheme designed to run on microcontrollers.

But that is such a micro portion of marketshare.

9 2024-10-24 17:21 *

>>7

Your post/reply >>6, is so vague and abstract without comparison of code side by side, makes me wonder if you posted gpt reply, or ai actually writes & understands subject better than you.

I was phoneposting whilst intoxicated. Sorry for not posting code examples. I still won't post any but I'll reply again later to clear up some vagueness.

10 2024-11-01 10:40

>>4
Refresh your memory of Abelson's foreword to EOPL.

11 2024-11-13 22:15

Shit, colleagues, do you eat shit?
The other colleague is right, and I'll tell you something else: 99% of the code written out there could just as well be written in server-side-includes, which is Turing-complete.

12 2024-11-14 12:21 *

>>11 Now I want to see an OS written in server-side includes

13


VIP:

do not edit these



 

APL.

1 2021-07-24 02:34

Please redpill me on APL.
Does it have modern relevance?

27

8 2024-11-01 13:11

Nice vintage REPL!
https://www.youtube.com/watch?v=_DTpQ4Kk2wA

9 2024-11-10 14:57

>>7

Yes, it's a nice mind-bender! Though you'd want to start with a simpler dialect, e.g. K, BQN or uiua.

https://xpqz.github.io/kbook/
https://mlochbaum.github.io/BQN
https://www.uiua.org/

I'd say uiua is the nicest to beginners, but it's not pure APL — it was just as influcenced by FORTH (it's a win in my book).

10 2024-11-12 09:23

>>7
There is a new APL MOOC by University Of Helsinki

https://dyalog.tv/Dyalog24/?v=2wdtPPqdECo
https://aplmooc.fi

11 2024-11-12 09:25 *

Will there be Ivy (or any array programming language) for Android phones?
https://pkg.go.dev/robpike.io/ivy

12 2024-11-12 12:57

>>11

Probably no native apps, but termux has `kona` (K language), or you can use https://www.uiua.org/pad or http://johnearnest.github.io/ok/mobile.html

13


VIP:

do not edit these



New Thread





do not edit these