Fork me on GitHub
#clojure-uk
<
2016-08-19
>
agile_geek07:08:18

Is there a Clojure library that helps you work out the optimum packing strategy for a suitcase?

malcolmsparks07:08:39

@agile_geek - of course, core.logic 🙂

malcolmsparks07:08:59

(now you have two problems)

agile_geek07:08:07

Excited by submissions to CfP for Clojure eXchange this year! There are some great sounding talks but there's room for more. Submit here. CfP for Clojure eXchange in London 1st-2nd December closes on Tuesday 30th August. If you've been working on a Clojure open source library, have an experience report on how you've used Clojure, or have a creative music/art project using Clojure please submit a talk. https://skillsmatter.com/conferences/7430-clojure-exchange-2016#get_involved

malcolmsparks07:08:32

Do you accept rejects from EuroClojure?

agile_geek07:08:46

@malcolmsparks: I had put money on someone mentioning core.logic 😀

malcolmsparks07:08:14

I'm hearing the QI siren 🙂

malcolmsparks07:08:22

with 'core.logic' flashing up

agile_geek07:08:53

Of course we accept rejects from EuroClojure... European CfPs will always be welcome at Clojure eXchange regardless of how the committee votes in September.

malcolmsparks07:08:13

at college we had to write a program to solve pentominos, which is a similar problem. I used brute forced and it took about 10mins but the winners caught it down into seconds so there's obviously an algorithm out there. We didn't have the web in those days so much harder to find these algorithms

malcolmsparks08:08:01

you need the box version

malcolmsparks08:08:15

it still talks about backtracking algos so core.logic will feature somewhere

malcolmsparks08:08:47

first you need to approximate all your possessions into coarse voxel structures

malcolmsparks08:08:35

Mind you, I would still recommended a 'brute force algorithm' when packing luggage - haha!

malcolmsparks08:08:19

I just spend 20 mins trying to figure out why I'd lost the ability to CIDER nrepl-jump in to libraries (jumping into source code is fine, but not code in Java libs) - it turns out I didn't have 'unzip' on my new laptop

malcolmsparks08:08:00

That's the real lesson of Ubuntu versus Arch - Ubuntu would have shipped unzip, in Arch, it's an 'option'.

malcolmsparks08:08:14

If Arch were a car, windscreen wipers would be an option

malcolmsparks08:08:22

(and rightly so)

agile_geek08:08:25

I took a bottom-down approach to packing.

chrisjd08:08:00

It’s an NP-hard problem. 🙂

agile_geek08:08:08

It got the case closed.

rickmoynihan08:08:58

Writing an algorithm to solve the bin packing problem over a telephone - worst tech interview ever!

xlevus08:08:10

@rickmoynihan and I bet the job was making a CMS for a crappy website

quentin08:08:10

@malcolmsparks: I installed moved from osx to ubuntu recently (new laptop) and was really happy about the experience. special keyboards functions working out of the box, painless graphics driver install… The user experience is really close to osx. The 2 things really missing are “more applications working on linux” and having a range of pc shipping with ubuntu preinstalled.

reborg08:08:11

I know the case was closed, but hey agile_geek, you never know about your next bag 🙂 https://github.com/reborg/binpack

reborg09:08:46

although you are more searching for https://en.wikipedia.org/wiki/Knapsack_problem for a bag.

practicalli-johnny09:08:17

@quentin: I have the same missing things about going from Ubuntu (personal) to MacOSX (work). There is a far greater number of the apps I use available on Ubuntu compared to MacOSX, but then maybe I am more familiar with the Ubuntu ones. The Mac laptop is nowhere near as nice as the Lenovo X series in my opinion and you don't get much choice of hardware with a Mac.

practicalli-johnny09:08:59

@quentin: there is a range of certified Ubuntu laptops available http://www.ubuntu.com/certification/

agile_geek09:08:29

reborg: I vaguely remember having a go at solving the Knapsack problem some years ago but I can't find my solution anymore. Might give it another go for practice.

djtango09:08:40

@jr0cket ❤️ X series

djtango09:08:03

only problem is that blasted clickpad on the x240 series. Will need to mod it to the x250 at some point

djtango09:08:00

@malcolmsparks interested to know how you're finding Arch - seems to have a cult following amongst Thinkpad users

guy10:08:00

might be nice to have a break?

agile_geek10:08:07

guy: yeah. otfrom: has already suggested an OSS project for me to do while I'm off.

guy10:08:18

neat 😄

djtango10:08:41

28 years is a long time - what's the longest vacation you took during this period?

agile_geek11:08:44

Two maybe two and half weeks

otfrom11:08:50

agile_geek: I can give you a whole series of projects. ;-)

practicalli-johnny14:08:33

@djtango: I just tun the trackpad off in Ubuntu system settings... It's not needed for Emacs...

dominicm14:08:19

I just don't install the drivers for the touchpad.

djtango15:08:19

Are you guys on x240s or other?

dominicm15:08:27

I'm on x230

quentin15:08:09

@jr0cket: I know about the certification but I think it’s still a bit lacking - and not as nice as what you get with osx / windows on this regard (which makes sense of course)

quentin15:08:50

also, I like to have discrete GPU which is possible but not easy to find in their UI

djtango16:08:42

x240's buttons are in the touchpad so you can't disable it 😞

agile_geek16:08:37

djtango: what's the issue with the touchpad? I have an x1 carbon with Ubuntu and the touchpad works fine.

djtango16:08:15

the touchpad has soft buttons rather than hard buttons - you have to click the actual touchpad to activate a click. When I press the buttons the cursor moves if I'm using the trackpoint

agile_geek16:08:55

djtango: I'm on Ubuntu 16.04LTS and it works fine on my X1 Carbon. Worked on 15 as well.

djtango16:08:52

hmm, I was on Mint 17 on that device (Ubuntu 14.04). Don't use it so much since I got my work device. (x240 is my personal one)

djtango16:08:08

Will give updating to ubuntu 16 a try

agile_geek16:08:21

Drivers have probably been updated in core since then

djtango16:08:21

does your carbon also have the soft buttons?

djtango16:08:57

I'm still pretty keen to mod out the touchpad tbh, the soft buttons are really annoying

otfrom18:08:26

probably a dumb question: is it possible to use a reducer as the reducing function when doing tranducers in order to get parallelism when reducing?

agile_geek18:08:51

@otfrom: I am not sure but i wouldn't bet on the parallelism working. You could definitely do this using core.async pipeline with transducers

agile_geek18:08:15

Actually thinking about it that won't reduce in parallel will it. Just transform I think.

otfrom19:08:12

Got the pipeline working. Will push a repo this weekend

otfrom21:08:03

just a way to push a file though something that might do quite a bit of work on each record (thus the pipeline)