Skip to content

Instantly share code, notes, and snippets.

View LeebDeveloper's full-sized avatar

Ignat Tolchanov LeebDeveloper

View GitHub Profile
@stolen
stolen / otp_compat_transform.erl
Created June 5, 2018 11:34
build code both in OTP20 and OTP21 without deprecation warnings
-module(otp_compat_transform).
-export([parse_transform/2]).
-export([add_otp21_nowarn/1]). % Export to avoid unused function warning on OTP20
%% OTP_RELEASE is defined in OTP21, not before
-ifdef(OTP_RELEASE).
parse_transform(AST, _) ->
add_otp21_nowarn(AST).
-else.
parse_transform(AST, _) ->

 "картинка для привлечения внимания"

О специальной олимпиаде Haskell vs Python (pypy) vs всё остальное

Первоначально задача возникла в https://t.me/haskellru и формулировалась примерно так: почему следующий код на Haskell

%% ---------------------------------------------------------------------
%%
%% Copyright (c) 2007-2015 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% except in compliance with the License. You may obtain
%% a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0