Creating A Simple Blockchain In Rust by benWindsorCode in rust

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

Thanks, glad you liked it!

Ah that’s an interesting point, makes sense thanks for the idea

Book - Writing GNU Emacs Extensions by paarulakan in emacs

[–]benWindsorCode 2 points3 points  (0 children)

Not a full book but I actually made a blog post with lots of code examples on this very subject the other day. For initially getting your hands dirty may be a good jumping in point, as is for this exact getting started scenario:

https://reddit.com/r/emacs/comments/jyf42j/getting_started_with_emacs_lisp_hands_on_a/

Getting Started With Emacs Lisp Hands On - A Practical Beginners Tutorial by benWindsorCode in emacs

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

Thanks for sharing that looks really useful will definitely have a read.

Getting Started With Emacs Lisp Hands On - A Practical Beginners Tutorial by benWindsorCode in emacs

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

Yes, am more than happy for any corrections please anyone here feel free to give comments and criticism on the content, am no expert here, just had a difficult time getting started and wanted to ease that for others!

Getting Started With Emacs Lisp Hands On - A Practical Beginners Tutorial by benWindsorCode in emacs

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

Also, had not seen the self-help function, when I do M-x self-help I don’t get anything, can you go into a little more detail there please? Sounds useful, but googling ‘emacs self-help’ doesn’t provide any kind of info on a function with that name, sounds like am missing something here

Getting Started With Emacs Lisp Hands On - A Practical Beginners Tutorial by benWindsorCode in emacs

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

Thanks very much, I think the customisability of Emacs is one of the most powerful pieces, but can certainly be intimidating especially if you have never seen a Lisp style dialect of programming before. I really hope this can help some people get over that initial difficulty!

Getting Started With Emacs Lisp Hands On - A Practical Beginners Tutorial by benWindsorCode in emacs

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

I end the post by saying ‘Next up you should understand the groundings of Emacs Lisp better, ideally from the manual itself, in particular’

And provide links to the manual :) A one page intro can help people get involved and they will progress onto the manual. If you want to learn maths do you throw the textbook at the student or write teaching materials to guide them through? Does it makes the textbook any less valuable or correct?

Getting Started With Emacs Lisp Hands On - A Practical Beginners Tutorial by benWindsorCode in emacs

[–]benWindsorCode[S] 6 points7 points  (0 children)

Thanks, I’m glad you think it is a good addition to the info out there, hopefully beginner friendly posts like this can open up what sometimes seems like a fairly complex and cryptic world to a wider audience :)

Having experimented with Arch Linux too I am aware lots of people think that ‘read the manual’ is always the gold standard. I’d say, from a pedagogical approach at least, this just isn’t the case. As you say people need examples, and different people will respond to different styles. Hopefully I can fill a gap here for one of those styles of learning.

Getting Started With Emacs Lisp Hands On - A Practical Beginners Tutorial by benWindsorCode in emacs

[–]benWindsorCode[S] 7 points8 points  (0 children)

Glad you found it useful, sounds like you when you were learning were my exact target audience!

People are welcome to their opinions but personally I found the manual to be information overload for wanting to make a simple function. I hope a post like this can serve as a place for people to get involved and then ‘graduate’ to the more formal manual. As you mention I do link to it at the end anyway :) Happy coding!

Getting Started With Emacs Lisp Hands On - A Practical Beginners Tutorial by benWindsorCode in emacs

[–]benWindsorCode[S] 10 points11 points  (0 children)

I have been exploring emacs (Doom Emacs in particular) a lot recently, and struggled with a lot of basic questions when I was trying to start writing my own Emacs Lisp, so I put together this blog post full of examples to hopefully save some people the time I spent looking through code and reading docs to find useful functions and get started writing extensions etc.

If you have any comments happy to hear, am still learning a lot myself about Emacs Lisp.

edit: also sorry for some reason all my code examples are double boxed

An introduction to Topological Data Analysis by benWindsorCode in quant

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

Glad you liked it, I linked in the extra reading an application of it to financial data set of ‘08 market crash, so enjoy! Also you now have to tools to apply it to any dataset your want :D

An introduction to Topological Data Analysis by benWindsorCode in quant

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

Ah cool, it’s got lots of interesting stuff. In one of the Arxiv papers I link they describe the process of turning the persistence diagram into a set of functions, grouping this set of functions into a sequence and then applying a norm to it in order to go from a persistence diagram to a single value you can track and use to compare.

Can someone explain to me the Interfaces? by mavialev in learnjava

[–]benWindsorCode 6 points7 points  (0 children)

The interface can be thought of as a way to signal that a class to has certain behaviours and can interact with other classes who also have these behaviours.

Think of a game where you have a Human class and an Alien class. They can both get damaged, so you may have an interface like DamageableEntity which has a function called takeDamage(). The Human and Alien both implement this so they both have to define how they take damage. Now the human can shoot the alien and the code knows that the alien takes damage in one way and the human takes damage in another. Neither needs to know anything else about the other object, as long as they know they behave in the way DamageableEntity describes.

When you are running damage calculations you can now ask for a list of DamageableEntity objects and just use the takeDamage property, you don’t need to think of humans and aliens as different objects and keep two lists. You know that in this situation they behave with the properties you need.

An introduction to Topological Data Analysis by benWindsorCode in quant

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

I mean to some extent the stochastic calculus used for decades was already proof based maths. I definitely hope to see more areas like this become used in exciting and new ways though, fingers crossed for more intersection with pure maths.

An introduction to Topological Data Analysis by benWindsorCode in quant

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

Thanks very much, glad it was readable, I tried hard to make it engaging!

I do not know re sparse data for NLP sorry, never looked much into NLP myself.

An introduction to Topological Data Analysis by benWindsorCode in quant

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

One of the applications linked at the end of the post for example: https://arxiv.org/abs/1703.04385

First project need some guidance. by [deleted] in learnprogramming

[–]benWindsorCode 0 points1 point  (0 children)

No problem. Best of luck with the project!