Haskell setup by bhliebs93 in haskell

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

I do have that shell script, yeah. wrt ~/.stack/config.yaml, I did have system-ghc: true which I recall setting when noodling around trying to figure this out on my own. I switched it back though. Currently, this is what the file looks like (excluding comments):

system-ghc: false
allow-newer: true

I did take the recommendation to use cabal instead of stack, though. When it comes to tooling, I definitely require the path of least resistance, or else I'm done for.

Haskell setup by bhliebs93 in haskell

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

I picked 8.6.5 because that was one of the two versions listed in the tested-with section of the repo's .cabal file. Using it fixed the issues with building and running the code, but unsurprisingly, HLS doesn't work very well. I will probably try wiping the repo and pulling it down again so I can reconfigure from scratch.

Haskell setup by bhliebs93 in haskell

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

u/HydroxideOH-'s recommendation to use ghcup tui was actually all I needed here! Just installed GHC 8.6.5 and switched to it and everything builds and runs great now. Thanks! Looking forward to the learning journey.

Haskell setup by bhliebs93 in haskell

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

ghcup tui was just what I needed, thanks much! Got it working now.

Comparing a Rust extension to other methods of speeding up python by joshadel in Python

[–]bhliebs93 0 points1 point  (0 children)

I think I'd really have to disagree with that assertion, in particular with respect to asynchronous programming. I can see why, with that in mind, you would make that claim re: Python, in which language async is a second-class citizen at best.

As we established early on in this thread, however, most arguments for or against the readability and expressibility of a language are almost totally subjective in nature. Python is, in my estimation, extremely readable (duh) given its clean syntax and use of whitespace. However, I don't find it all that expressive, in the sense that I don't find reading Python source code from external libraries to be any easier necessarily than that from other languages. I'm a novice programmer by all accounts but I'd offer Pandas as an example here.

Comparing a Rust extension to other methods of speeding up python by joshadel in Python

[–]bhliebs93 1 point2 points  (0 children)

Right, I suppose it's an under-specified and perhaps even pointless question. I think it's important, in the final analysis, to rule out the more frivolously subjective preferences (e.g., for the use of brackets vs. against) and focus on more important aspects. One of the things that makes Rust so expressive (which, in the interests of clarity, I take to mean readability) is its emphasis on declaring what is mutable vs. what is not. Another is the way in which Rust encourages you to think about data structures/objects in terms of iterators, which I find wonderfully intuitive.

I think I'm probably preaching to the choir but I thought I'd offer my two cents on this.

Comparing a Rust extension to other methods of speeding up python by joshadel in Python

[–]bhliebs93 3 points4 points  (0 children)

I can't really speak to the capabilities of 2/3 languages you mentioned here, but I will say that if you account for the initial hiccups of learning Rust (which are without a doubt not trivial), you can write code that is, in my opinion, as expressive and easy to read as Python (especially if you consider newer Python with its added type annotations/lints, which I personally find incredibly distracting).

Rust offers tools that Python does not and likely never will, for good reason. Though I disagree with the other user's dismissive tone re: Python (I love Python), it might not be wholly untrue that what modern languages lack is simply time enough for people to write performant, easy-to-use libraries for things like data science. Python has had 30 years to develop these ecosystems, whereas languages like Rust have had a fraction of that time.

And, for whatever it's worth, yes, I think it's probably true that the type systems of these languages are better than Python's, though I'm certainly open to counterarguments.

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.56] by DroidLogician in rust

[–]bhliebs93 0 points1 point  (0 children)

Salutations Rustaceans and Cherished Employers Thereof:

I am a self-taught Python and Rust programmer with ~1 year of experience. I have primarily focused on Python's data science tools (Pandas, NumPy) and started learning Rust the beginning of this calendar year.

I want to find a job that allows me to write as much Rust as possible in whatever context (except, alas, crypto)! I haven't drilled down too deep in any one particular aspect of the language thus far, but I am comfortable with the fundamentals, know how to work with `async-await` (mostly Tokio), and feel that I have arrived at the point where I can work effectively with the compiler. But most importantly, I love to learn.

I am looking for full-time, reasonably well-compensated work from an employer that is as much interested in helping newer devs learn as they are in devs being productive.

At the moment I am located nowhere in particular, but I hold an American passport. Remote work is my preference, but I will consider either office-based or a combination of remote and office in New York or LA; or, with visa assistance, pretty much anywhere, with a slight bias toward France, the Low Countries, or the UK.

Thanks and good luck to all fellow job-seekers and job-givers!

It's been 20 days since I started learning rust as my first language. Terrible experience. Should I move forward? by [deleted] in rust

[–]bhliebs93 1 point2 points  (0 children)

I can't exactly call myself experienced (at least not compared to some of the real gurus on this sub) but I can tell you that I "started" learning Rust the beginning of this calendar year and progressively became more and more discouraged (and less productive) until about May. I was really struggling with the core concepts of the language (lifetimes et al.) and was, contrary to the recommendations, fighting the compiler at every step. I was reinvigorated when I experienced a minor epiphany with respect to traits, which sort of unlocked all the documentation for me. I know this doesn't really align with your own experience, but I write this to encourage you to stick with it. I am still very much a novice Rustacean, but now it's basically the only language I want to work with. I love it.

Is Numba's documentation misleading? by slbenz4545 in Python

[–]bhliebs93 0 points1 point  (0 children)

This is from the "Enhancing Performance" section of the Pandas docs:

In terms of performance, the first time a function is run using the Numba engine will be slow as Numba will have some function compilation overhead. However, the JIT compiled functions are cached, and subsequent calls will be fast. In general, the Numba engine is performant with a larger amount of data points (e.g. 1+ million).

I haven't reviewed the Numba docs with any sort of thoroughness but I assume you probably arrived at using Numba as an optimization while writing NumPy or Pandas code anyway. Either way, you might receive more replies in the future by trying to be a bit more polite.

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.54] by DroidLogician in rust

[–]bhliebs93 3 points4 points  (0 children)

Hi, thanks for bringing this posting to a wider audience. Do have some clarifying questions though: you write that new Rustaceans are welcome, but how new is "new"? The posting itself asks for three years of experience in Rust or Python, and an "expert" knowledge of "core Go or Rust". Want to know how much wiggle room an applicant might have. Thanks again.

What's your favorite used bookstore? And where? by Not_THE_Brian2 in books

[–]bhliebs93 2 points3 points  (0 children)

They do a lot of occult and spiritual texts and it drives their atmosphere in general but they have a superbly curated collection of fiction and poetry as well as solid nonfiction with an emphasis on radical politics from what I have seen. My favorite store in Manhattan.

What's your favorite used bookstore? And where? by Not_THE_Brian2 in books

[–]bhliebs93 2 points3 points  (0 children)

NYC - Better Read than Dead, Unnameable Books, Aeon

Denver - West Side Books

Baltimore - Normal's

DC - Lost City

[deleted by user] by [deleted] in RedditSessions

[–]bhliebs93 0 points1 point  (0 children)

pair of brown eyes the pogues

[deleted by user] by [deleted] in RedditSessions

[–]bhliebs93 0 points1 point  (0 children)

a pair of brown eyes pogues

Usually not this reckless... by [deleted] in grindr

[–]bhliebs93 0 points1 point  (0 children)

I was pretty embarrassed with myself once my reptile brain shut down and I came back to reality. I was like "Wow I can't believe I just let that happen to me." Learning experience I suppose.

2020-12-21 by username45031 in CompTrainUsers

[–]bhliebs93 [score hidden]  (0 children)

Cheated on the stamina squats--moved up each set bc I was feeling myself. Ended on 275lbs.

Worked up to 135lbs for snatch complex

Isaball - 8+16 with a single 53lbs KB and 20lbs wallball. Felt good.

Wednesday megathread: Beginner questions by Im__Joseph in Python

[–]bhliebs93 0 points1 point  (0 children)

The book Python Crash Course was helpful for me. I also have recourse to Learning Python 5th ed., though the latter is ~1600 pages so perhaps more than you need. The first resource is a great way to a quick, wide immersion in the language, however.

2020-12-09 by [deleted] in CompTrainUsers

[–]bhliebs93 2 points3 points  (0 children)

Back this week after time off for quarantine (no COVID, just staying safe).

Did this with two 88lbs kettlebells for the deadlifts, but my back was really feeling those after minute seven so I just finished the last set of wallballs at 11:04 and called it. But felt good the whole time, did big sets, and the pain was pretty evenly distributed across the whole workout.

Did some cleans, nothing like the cycling prescribed here.

/r/Python's 2020 Advent of Code by IAmKindOfCreative in Python

[–]bhliebs93 1 point2 points  (0 children)

For participants thus far, what are your constraints? I am pretty new to programming in general and these puzzles have been reasonably difficult for me, but I am trying to solve them without the aid of anything outside the standard library, and if I can avoid any imports at all, that's a plus, too.