Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Sapozhnik
Jan 2, 2005

Nap Ghost
lucky ducky typing!!

Adbot
ADBOT LOVES YOU

syntaxrigger
Jul 7, 2011

Actually you owe me 6! But who's countin?

Mr Dog posted:

lucky ducky typing!!

mods?

Police Academy III
Nov 4, 2011
speaking of p-languages, can someone w/ clojure installed run this and tell me what happens?
code:
(defmulti fart identity)
(defmethod fart 1 [x] "one")

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Police Academy III posted:

speaking of p-languages, can someone w/ clojure installed run this and tell me what happens?
code:
(defmulti fart identity)
(defmethod fart 1 [x] "one")

(fart 1)
prints "one"
any other call to fart will not dispatch
hth

JawnV6
Jul 4, 2004

So hot ...

Mr Dog posted:

lucky ducky typing!!

tyvm this is v. good

Police Academy III
Nov 4, 2011

trex eaterofcadrs posted:

(fart 1)
prints "one"
any other call to fart will not dispatch
hth

did you actually run it though? because I get
code:
Exception in thread "main" java.lang.IllegalArgumentException: No matching method: addMethod, compiling:(fart-failure.clj:2)
but only if the method is named fart, anything else works as expected.

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip


someone with artistic talent should make an av to go with your name

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Tiny Bug Child posted:

just because it's on the production server doesn't mean it has to be live. like, put it in some subdirectory with a big long name so you're sure no traffic is going to it and test it there. agile web engineering while maintaining security

security through obscurity, like not knowing how insecure md5 is

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Police Academy III posted:

did you actually run it though? because I get
code:
Exception in thread "main" java.lang.IllegalArgumentException: No matching method: addMethod, compiling:(fart-failure.clj:2)
but only if the method is named fart, anything else works as expected.

what v of clojure are you runngin cause

All Hat
Jul 11, 2008

He that is without int among you, let him first cast a long


Mods.

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
REPL started; server listening on localhost port 24357
user=> (defmulti fart identity)
#'user/fart
user=> (defmethod fart 1 [x] "one")
#<MultiFn clojure.lang.MultiFn@2d97d09f>
user=> (fart 1)
"one"
user=> (fart 2)
java.lang.IllegalArgumentException: No method in multimethod 'fart' for dispatch value: 2 (NO_SOURCE_FILE:0)
user=>

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Otto Skorzeny posted:

someone with artistic talent should make an av to go with your name

that would be cool

Police Academy III
Nov 4, 2011

trex eaterofcadrs posted:

what v of clojure are you runngin cause


code:
user=> *clojure-version*
{:major 1, :minor 4, :incremental 0, :qualifier nil}
I was hoping I'd found the greatest bug ever :(

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Police Academy III posted:

code:
user=> *clojure-version*
{:major 1, :minor 4, :incremental 0, :qualifier nil}
I was hoping I'd found the greatest bug ever :(

i found a really bad one regarding ASM and groovy and spring. gently caress i still haven't completely figured it out but it was turning the clojure reader into poo poo

Meiwaku
Jan 10, 2011

Fun for the whole family!

trex eaterofcadrs posted:

i found a really bad one regarding ASM and groovy and spring. gently caress i still haven't completely figured it out but it was turning the clojure reader into poo poo

Related note;
Mixing JVM languages is a little like mixing alcohol, when done well it's great, but done poorly it'll make you want to vomit.

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post
using jvm is like ingesting poison into your body

Sweeper
Nov 29, 2007
The Joe Buck of Posting
Dinosaur Gum

0xB16B00B5 posted:

using jvm is like ingesting poison into your body

sorry no, the jvm is awesome

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post
my apps may be slow and bloated, but at least they run everywhere!

now with node theres no reason to turn to the jvm, minus the 3rd party libraries for java

coaxmetal
Oct 21, 2010

I flamed me own dad
wait how is node related to java at all, I thought node was just some lovely standalone js implementation.

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope
javascript, it's right there in the name duh

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Ronald Raiden posted:

wait how is node related to java at all, I thought node was just some lovely standalone js implementation.

it's a javascript webserver, lmao

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post

Ronald Raiden posted:

wait how is node related to java at all, I thought node was just some lovely standalone js implementation.

you get the same cross platform efficiencies with node, with the addition of the web and mobile.

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

0xB16B00B5 posted:

you get the same cross platform efficiencies with node, with the addition of the web and mobile.

stfu troll

Max Facetime
Apr 18, 2009

lol javascript is slow!!!

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Win8 Hetro Experie posted:

lol javascript is slow!!!

it's a huge pile.

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post
its slightly slower for certain things but getting faster each and every day. who knows what itll be in a year. i dunno.

most people's apps, for the scale they ahve to support, dont need crazy fast overkill backends. ill take simplicity of development over the fear i wont be able to scale to 1000s of simultaneous users that easily.

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

0xB16B00B5 posted:

its slightly slower for certain things but getting faster each and every day. who knows what itll be in a year. i dunno.

most people's apps, for the scale they ahve to support, dont need crazy fast overkill backends. ill take simplicity of development over the fear i wont be able to scale to 1000s of simultaneous users that easily.

yea, so not javascript then.

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe
Just gonna drop this here:

Wav file sample rate generator.c (by ulillillia)

Asshole Masonanie
Oct 27, 2009

by vyelkin
you really shouldn't ever use js for anything besides ui, animation and maybe front-end form validation.

Asshole Masonanie
Oct 27, 2009

by vyelkin

HTML5 posted:

you really shouldn't ever use js for anything

haha

coaxmetal
Oct 21, 2010

I flamed me own dad

this is beautiful

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

0xB16B00B5 posted:

using jvm is like ingesting poison into your body

lol what the gently caress is this nonsense

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip

trex eaterofcadrs posted:

lol what the gently caress is this nonsense

a joke about alcohl probably

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post

Otto Skorzeny posted:

a joke about alcohl probably

youre very generous calling that a joke

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip
The Lord loveth a cheerful giver.

Police Academy III
Nov 4, 2011
tiny fart bug update: apparently it's caused by having a file called fart.class in your classpath (which obviously i do since i'm a literal child). i have no idea why defmethod is loading class files but i can't even report it since the clojure bug tracker is down!

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

Ronald Raiden posted:

this is beautiful
looks like most code written by EEs

Sapozhnik
Jan 2, 2005

Nap Ghost

quote:

write server-side code in javascript

please go ahead and create a site with horrible latency. i'll be over here taking all ur customers by providing a comparable service that has really good latency :tipshat:

"what do you mean we can't make the site load faster by throwing more servers at it?"

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post
memory is cheap these days, you should be caching as much as you can anyway.

if your app is hitting your backend often youre probably doing something wrong

Adbot
ADBOT LOVES YOU

Shaggar
Apr 26, 2006
lmao

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply