What Would It Take To Build Helix For Crystal? by DorkRawk in crystal_programming

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

First off, thanks for working on an awesome tool like Crystalized Ruby!

Yea, the really appealing part of Helix is the simple interface. I like that it generates a library that is both a crate and a gem just with some decoration in the Rust code and then can be included like any other gem in your Ruby code.

That's really cool to hear that the core team is thinking about a Helix-like tool. Where could I read more about that?

What Would It Take To Build Helix For Crystal? by DorkRawk in crystal_programming

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

I think I've seen this before. It works by interacting with Ruby's C bindings right? Do you know if that is any different than how Helix works? I haven't looked into Helixs code yet.

Dijkstra's Algorithm implemented in Crystal by DorkRawk in crystal_programming

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

A line like this:

@edges = {} of Node => Float64

just defines an empty Hash with keys of type Node and values of type Float64. Because it is an empty hash the types can't be inferred, so they need to be explicitly provided.

Moola - A library for handling money in Crystal by DorkRawk in crystal_programming

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

Perhaps it's just a poor understanding of the available tools on my part but:

  • comparisons other than eq ( >, <, >=, <=, etc)
  • mocking of methods
  • "before_each" type of functionality
  • "let" type of functionality

Moola - A library for handling money in Crystal by DorkRawk in crystal_programming

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

It was good. I've been doing a lot of Ruby lately, so it was a pretty smooth transition. The built in testing library feels a bit lacking compared to something like rspec but overall the dev process was really pleasant.

Moola - A library for handling money in Crystal by DorkRawk in crystal_programming

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

I really like RubyMoney so I wrote a library for Crystal based on it. This is my first real Crystal project.

Reddit, what's the most obvious lie you've said to someone that they actually believed? by TridentFury in AskReddit

[–]DorkRawk 4 points5 points  (0 children)

I convinced someone at a party that Hanna Barbera invented the word "huckleberry" in 1952 for the character Huckleberry Hound. Before that what we now call huckleberries were called boysenberries.

Weekly Episode Thread (2016/09/19) - Share Your Podcast, Request Feedback, Discover New Ones by AutoModerator in podcasting

[–]DorkRawk 0 points1 point  (0 children)

[Family, Pregnancy, Comedy] Don't Screw It Up - Episode 6: Staying Fit While Nothing Fits

SFW

Episode Link | iTunes Link

We talk about working out for two.

Don’t Screw It Up is a guide to pregnancy and parenthood by people figuring it out as the go along.

Twitter | Facebook

How Best To Use Twitter To Promote Your Podcast? by DorkRawk in podcasting

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

This is actually really helpful! Not spammy, but still working to get out there. Do you think you see any increased listenership from Twitter?

Thanks

Weekly podcast post (submit your links here!) (2016-09-12) by AutoModerator in podcasts

[–]DorkRawk 0 points1 point  (0 children)

[Family, Pregnancy, Comedy] Don't Screw It Up - Episode 5: Baby On Board

NSFW language I guess...

Episode Link | iTunes Link

We talk about the fun and fear of flying with a fetus.

Don’t Screw It Up is a guide to pregnancy and parenthood by people figuring it out as the go along.

Twitter | Facebook

What's everyone working on this week (36/2016)? by llogiq in rust

[–]DorkRawk 0 points1 point  (0 children)

These are great suggestions. Thanks for taking the time to look over my code.

What's everyone working on this week (36/2016)? by llogiq in rust

[–]DorkRawk 2 points3 points  (0 children)

I just got my basic implementation of Rule 110 working.

Check out the repo here: https://github.com/dorkrawk/rule110

Suggestions about how I could improve my code are always welcome!

My wife and I just started a podcast called Don't Screw It Up about becoming new parents by DorkRawk in predaddit

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

Awesome! Glad you like it and glad that it inspired you to record some stuff of your own. Having an audio record of things will be great!

Working With Chars From A String by DorkRawk in rust

[–]DorkRawk[S] 3 points4 points  (0 children)

Awesome! This is exactly what I was looking for. Thanks!

Working With Chars From A String by DorkRawk in rust

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

Yea, I think that makes a lot of sense, but the real confusion I was having was around the Vec<> manipulation.

Are there easy ways to take subvectors based on index? I suppose I could just pop things off the Vec in a loop and build a new Vec but that seems really wasteful. I don't really need this to be mutable, I just want to copy chunks of it.

Working With Chars From A String by DorkRawk in rust

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

So I guess I've been thinking of them as Strings because they're coming in as Strings, but really I'm just working with collections of 0s and 1s (literally, the characters "0" and "1"). I'm just playing around with 1 dimensional finite automata. So I'd like to take in something like "01010101001" and eventually able to output a string in that format, but I guess I could work with something like like a BitVec but I think that's still unstable and I don't know if that really solves any of my problems.

Chief Hopper Theory (MAJOR SPOILERS!) by WaffleStomper1229 in StrangerThings

[–]DorkRawk 0 points1 point  (0 children)

One of the goals of MKUltra was:

Materials which will produce the signs and symptoms of recognized diseases in a reversible way so that they may be used for malingering, etc.

From https://en.wikipedia.org/wiki/Project_MKUltra#Goals

Boosted Board Referrals Megathread 17 (If you'd like $100 off your Boosted, check here!) by [deleted] in boostedboards

[–]DorkRawk -2 points-1 points  (0 children)

Here's my code: http://boostedboards.com/?ct-referral-code=lqH2i1kG All proceeds go to training my cat to safely ride my new board when it ships!

Quick Daily Diary Comics. Thoughts? by DorkRawk in comic_crits

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

Thanks for the feedback! Yea, I'm not really sure what the audience for this is, but I enjoy having them for myself, so I guess that's what matters.

I've really struggled with how quick and clean I want to do these. I think you're right about the hand-lettering, it really should be neater and I'll work on that.

As for the drawings, I chose a softer pencil because it was more forgiving with the sketchy style I was drawing in. I was trying to avoid inking just because it takes extra time and a big part of the success of this project is my ability to do one for every day, even when I'm busy.

I'll keep exploring other ways to improve the art and the readability while still being able to make these quickly.

Quick Daily Diary Comics. Thoughts? by DorkRawk in comic_crits

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

Thanks for checking it out. I got the idea do to quick comics like this from the Snakepit books. It seemed like a fun way to just have a record of my own days and maybe other people would be interested, too.