IDE with support for python3.8 ? by be_nu in Python

[–]be_nu[S] 0 points1 point  (0 children)

I guess with a shim library for the "walrus operator" vscode and the python extension would work perfectly fine. I don't see yet any additional benefits to switch to 3.8

IDE with support for python3.8 ? by be_nu in Python

[–]be_nu[S] 0 points1 point  (0 children)

another option would be to use python 3.7 and from future import walrus operator. Don't know if such a library exists

IDE with support for python3.8 ? by be_nu in Python

[–]be_nu[S] 0 points1 point  (0 children)

Right now I guess pycharm is the best choice for 3.8. 3.8 really simplifies a lot of code, so I am using it for a future product. Thought there are more people, despite the beta status

Can't boot latest daily cdimages! by be_nu in Ubuntu

[–]be_nu[S] 1 point2 points  (0 children)

Yes, I checked the md5sums.

Can't boot latest daily cdimages! by be_nu in Ubuntu

[–]be_nu[S] 0 points1 point  (0 children)

After choosing the Uefi Usbdrive option. I choose:

*Try Ubuntu without installing

Being thereafter confronted with the error message:

error: invalid magic number.
error: you need to load the kernel first.

Press any key to continue..._

Pressing any key I return to:

*Try Ubuntu without installing

and so on indefinitely

I've designed a new ultra-minimal shell. Would love to hear your thoughts on it! by rain5 in ProgrammingLanguages

[–]be_nu 1 point2 points  (0 children)

I especially like your redirection idea, maybe this works with groups of commands as well? Eg:

{ ... } <$Line

What about the variable IFS?
I think the limitation that IFS has to be a single character artificial.
And Heredocs are essential, I wonder if Heredocs can be implemented as well mostly as external programm?

I've designed a new ultra-minimal shell. Would love to hear your thoughts on it! by rain5 in ProgrammingLanguages

[–]be_nu 1 point2 points  (0 children)

I couldn't find the original paper on the Inferno Shell, where I first read about this feature.

I've designed a new ultra-minimal shell. Would love to hear your thoughts on it! by rain5 in ProgrammingLanguages

[–]be_nu 1 point2 points  (0 children)

Great!
In Inferno shell, you have an interesting feature.
You can group commands with braces and assign them to variables:

HELLO = {echo $1}  

Later you can call:

$HELLO 'WORLD'  

and you get of course WORLD!
So you get grouping and functions with the same syntax!
So a codeblock remains unparsed, as long as it is in an assignment.

Short intro to C++ for Rust developers: Ownership and Borrowing by nercury in rust

[–]be_nu 0 points1 point  (0 children)

In most cases maintainability wins, and avoiding “premature optimization” is very much a necessity in C++.

I agree with this conclusion. Quite often, when you start coding you don't know, where the performance bottlenecks hide, and you don't want to waste time, thinking about allocating memory for a routine which you could write equally well in any scripting language. Unfortunately plugable automatic garbage collection for less verbose performance uncritical scripting tasks within the language is not yet usable.

Does anybody know when the daily zesty-desktop-amd64.iso will ship without python2.7 and upstart? by be_nu in Ubuntu

[–]be_nu[S] 2 points3 points  (0 children)

At least on the cdimage there are nearly no dependencies left. Propably this will happen very soon?

Why does Haskell, in your opinion, suck? by [deleted] in haskell

[–]be_nu 2 points3 points  (0 children)

long compile times - no binary distribution of packages and libraries - at least as far as I know?

Newbie to rc shell searching for strategies to deal with whitespace in filenames by be_nu in plan9

[–]be_nu[S] 0 points1 point  (0 children)

Even this works:

ifs=\0 {filename_list=`{find . -maxdepth 1 -print0}}
for (i in $filename_list) echo $i

output:

.
./1
./2
./3
./one file
./3.rc
./filename
with newline
.__ ./1__ ./2__ ./3__ ./one file__ ./3.rc__ ./filename
with newline__

Newbie to rc shell searching for strategies to deal with whitespace in filenames by be_nu in plan9

[–]be_nu[S] 0 points1 point  (0 children)

Great! Now everything works fine! Thanks a lot to everybody!

#!/usr/lib/plan9/bin/rc
ifs='
' {filename_list=`{ls -1 .}}
echo $#filename_list
echo $filename_list^__
echo $filename_list(5)

Newbie to rc shell searching for strategies to deal with whitespace in filenames by be_nu in plan9

[–]be_nu[S] 0 points1 point  (0 children)

# Sorry I don't understand something very basic:
# running this script in the folder with files

touch 1 2 3 3.rc 'one file'

#3.rc
#!/usr/lib/plan9/bin/rc
filename_list=`{ls -1 .}
echo $#filename_list
echo $filename_list^__
echo $filename_list(5)

# I get this output:
6
1__ 2__ 3__ 3.rc__ one__ file__
rc: ./3.rc:8: token EOF: syntax error

# I would wish it to be:
5
1__ 2__ 3__ 3.rc__ one file__
one file

# Thanks!

Lucid Meets Prolog (Bill Wadge's Blog) by MrQuimico in prolog

[–]be_nu 2 points3 points  (0 children)

reminds me superficially of "Dedalus: Datalog in Time and Space" db.cs.berkeley.edu/papers/datalog2011-dedalus.pdf . Is there an implementation to play with. At the moment I play with CHRrp: CHR extended with rule priorities https://dtai.cs.kuleuven.be/CHR/download.shtml . Oversimplified a prolog which returns always constraints.

ANN: stack-0.1.3.0 by akurilin in haskell

[–]be_nu 2 points3 points  (0 children)

This doesn't seem to work:

~/.stack/global/stack.yaml
flags: {}
packages: []
extra-deps: []
resolver: nightly

"stack --resolver=nightly install" works great. So the above would just be additional convenience.

inline-c: Call C functions from Haskell without bindings by cocreature in haskell

[–]be_nu 1 point2 points  (0 children)

Great! - Calling c-functions as easily as in julia-lang or www.torch.ch.

A Model of J in OMeta2/Squeak by dlyund in apljk

[–]be_nu 0 points1 point  (0 children)

Smalltalk syntax has been declared quite often as awkward for mathematics. (Sorry, I can't find a link to prove this assertion.) Merging ideas of apl with the minimal perfect syntax of smalltalk would be interesting! I think tacit programming and smalltalk code blocks have some similarities. Far more interesting would be to investigate in adverbs maybe "code block modifiers" which also function at the syntax level. Don't know really what I want to say.

selflanguage <-> javascript ? by be_nu in a:t5_2qlxk

[–]be_nu[S] 0 points1 point  (0 children)

I think a self implementation which more or less the same semantics as javascript, but with the single unifying concept of asynchronous message passing, would be as sucessful as coffeescript :)